forked from qt-creator/qt-creator
IOptionsPage: replace virtual fuctions by data members
Change-Id: I8297df85109b67b79f90c33263a5dc7b89efbb60 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user