SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent) #if QT_VERSION >= 0x040500 , m_cacheEnabled(false) #endif { setupUi(this); connect(exceptionsButton, SIGNAL(clicked()), this, SLOT(showExceptions())); connect(setHomeToCurrentPageButton, SIGNAL(clicked()), this, SLOT(setHomeToCurrentPage())); connect(cookiesButton, SIGNAL(clicked()), this, SLOT(showCookies())); connect(standardFontButton, SIGNAL(clicked()), this, SLOT(chooseFont())); connect(fixedFontButton, SIGNAL(clicked()), this, SLOT(chooseFixedFont())); connect(languageButton, SIGNAL(clicked()), this, SLOT(chooseAcceptLanguage())); #if QT_VERSION < 0x040500 oneCloseButton->setVisible(false); // no other mode than one close button with qt <4.5 networkCache->setVisible(false); #else // As network cache has too many bugs in 4.5.1, do not allow to enable it. if (QLatin1String(qVersion()) == QLatin1String("4.5.1")) networkCache->setVisible(false); #endif loadDefaults(); loadFromSettings(); }
SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent) { setupUi(this); connect(exceptionsButton, SIGNAL(clicked()), this, SLOT(showExceptions())); connect(setHomeToCurrentPageButton, SIGNAL(clicked()), this, SLOT(setHomeToCurrentPage())); connect(cookiesButton, SIGNAL(clicked()), this, SLOT(showCookies())); connect(standardFontButton, SIGNAL(clicked()), this, SLOT(chooseFont())); connect(fixedFontButton, SIGNAL(clicked()), this, SLOT(chooseFixedFont())); connect(languageButton, SIGNAL(clicked()), this, SLOT(chooseAcceptLanguage())); #if QT_VERSION < 0x040500 oneCloseButton->setVisible(false); // no other mode than one close button with qt <4.5 #endif loadDefaults(); loadFromSettings(); }
SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent) , m_cacheEnabled(false) { setupUi(this); connect(exceptionsButton, SIGNAL(clicked()), this, SLOT(showExceptions())); connect(setHomeToCurrentPageButton, SIGNAL(clicked()), this, SLOT(setHomeToCurrentPage())); connect(cookiesButton, SIGNAL(clicked()), this, SLOT(showCookies())); connect(standardFontButton, SIGNAL(clicked()), this, SLOT(chooseFont())); connect(fixedFontButton, SIGNAL(clicked()), this, SLOT(chooseFixedFont())); connect(languageButton, SIGNAL(clicked()), this, SLOT(chooseAcceptLanguage())); connect(downloadDirectoryButton, SIGNAL(clicked()), this, SLOT(chooseDownloadDirectory())); // As network cache has too many bugs in 4.5.1, do not allow to enable it. if (QLatin1String(qVersion()) == QLatin1String("4.5.1")) networkCache->setVisible(false); loadDefaults(); loadFromSettings(); }