diff options
author | kh1 <qt-info@nokia.com> | 2010-03-29 14:00:41 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2010-03-30 17:51:38 +0200 |
commit | 89d20924c805a9acd04d0a2c8786132ed55b05f4 (patch) | |
tree | 5c6da6e961fc3dc8084514bf09bc31f984e099c6 /src/plugins/help/generalsettingspage.cpp | |
parent | 8b96dbf74770ffc02ee194eb883517c85a8b743a (diff) | |
download | qt-creator-89d20924c805a9acd04d0a2c8786132ed55b05f4.tar.gz |
Add some more constants and make use where possible. More to come.
Diffstat (limited to 'src/plugins/help/generalsettingspage.cpp')
-rw-r--r-- | src/plugins/help/generalsettingspage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/help/generalsettingspage.cpp b/src/plugins/help/generalsettingspage.cpp index 0df4288670..defe4dfb64 100644 --- a/src/plugins/help/generalsettingspage.cpp +++ b/src/plugins/help/generalsettingspage.cpp @@ -106,7 +106,7 @@ QWidget *GeneralSettingsPage::createPage(QWidget *parent) m_homePage = engine.customValue(QLatin1String("HomePage"), QString()).toString(); if (m_homePage.isEmpty()) { m_homePage = engine.customValue(QLatin1String("DefaultHomePage"), - QLatin1String("about:blank")).toString(); + Help::Constants::AboutBlank).toString(); } m_ui.homePageLineEdit->setText(m_homePage); @@ -178,7 +178,7 @@ void GeneralSettingsPage::apply() QString homePage = m_ui.homePageLineEdit->text(); if (homePage.isEmpty()) - homePage = QLatin1String("about:blank"); + homePage = Help::Constants::AboutBlank; engine->setCustomValue(QLatin1String("HomePage"), homePage); const int startOption = m_ui.helpStartComboBox->currentIndex(); @@ -199,7 +199,7 @@ void GeneralSettingsPage::setCurrentPage() void GeneralSettingsPage::setBlankPage() { - m_ui.homePageLineEdit->setText(QLatin1String("about:blank")); + m_ui.homePageLineEdit->setText(Help::Constants::AboutBlank); } void GeneralSettingsPage::setDefaultPage() |