IOptionsPage: replace virtual fuctions by data members

Change-Id: I8297df85109b67b79f90c33263a5dc7b89efbb60
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
hjk
2012-05-22 11:17:13 +02:00
committed by Eike Ziller
parent 444445ceb3
commit f77cd29e54
101 changed files with 403 additions and 1542 deletions

View File

@@ -35,26 +35,13 @@
#include "texteditorconstants.h"
#include <QCoreApplication>
#include <QIcon>
using namespace TextEditor;
TextEditorOptionsPage::TextEditorOptionsPage(QObject *parent) :
Core::IOptionsPage(parent)
{
}
QString TextEditorOptionsPage::category() const
{
return QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
}
QString TextEditorOptionsPage::displayCategory() const
{
return QCoreApplication::translate("TextEditor", Constants::TEXT_EDITOR_SETTINGS_TR_CATEGORY);
}
QIcon TextEditorOptionsPage::categoryIcon() const
{
return QIcon(QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON));
setCategory(QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY));
setDisplayCategory(QCoreApplication::translate("TextEditor", Constants::TEXT_EDITOR_SETTINGS_TR_CATEGORY));
setCategoryIcon(QLatin1String(Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON));
}