summaryrefslogtreecommitdiff
path: root/src/plugins/help/generalsettingspage.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2012-05-22 11:17:13 +0200
committerEike Ziller <eike.ziller@nokia.com>2012-05-23 10:48:04 +0200
commitf77cd29e54f832cbb72533842acb4dda655540f1 (patch)
treee6557c80b3c1875fb0c7b215919b3fa5bee97d1c /src/plugins/help/generalsettingspage.cpp
parent444445ceb3cef3f406ae6e68ee5c2505de2762cc (diff)
downloadqt-creator-f77cd29e54f832cbb72533842acb4dda655540f1.tar.gz
IOptionsPage: replace virtual fuctions by data members
Change-Id: I8297df85109b67b79f90c33263a5dc7b89efbb60 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/help/generalsettingspage.cpp')
-rw-r--r--src/plugins/help/generalsettingspage.cpp30
1 files changed, 5 insertions, 25 deletions
diff --git a/src/plugins/help/generalsettingspage.cpp b/src/plugins/help/generalsettingspage.cpp
index 40342d117a..81fb8514af 100644
--- a/src/plugins/help/generalsettingspage.cpp
+++ b/src/plugins/help/generalsettingspage.cpp
@@ -66,31 +66,11 @@ GeneralSettingsPage::GeneralSettingsPage()
QWebSettings* webSettings = QWebSettings::globalSettings();
m_font.setPointSize(webSettings->fontSize(QWebSettings::DefaultFontSize));
#endif
-}
-
-QString GeneralSettingsPage::id() const
-{
- return QLatin1String("A.General settings");
-}
-
-QString GeneralSettingsPage::displayName() const
-{
- return tr("General");
-}
-
-QString GeneralSettingsPage::category() const
-{
- return QLatin1String(Help::Constants::HELP_CATEGORY);
-}
-
-QString GeneralSettingsPage::displayCategory() const
-{
- return QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY);
-}
-
-QIcon GeneralSettingsPage::categoryIcon() const
-{
- return QIcon(QLatin1String(Help::Constants::HELP_CATEGORY_ICON));
+ setId(QLatin1String("A.General settings"));
+ setDisplayName(tr("General"));
+ setCategory(QLatin1String(Help::Constants::HELP_CATEGORY));
+ setDisplayCategory(QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY));
+ setCategoryIcon(QLatin1String(Help::Constants::HELP_CATEGORY_ICON));
}
QWidget *GeneralSettingsPage::createPage(QWidget *parent)