Options: Sort by category, id.

Separate category and trCategory and introduce sorting characters
to the categories. Same for id/name.
This commit is contained in:
Friedemann Kleint
2009-11-27 16:12:12 +01:00
parent f928145163
commit a8ac34c347
51 changed files with 262 additions and 123 deletions

View File

@@ -28,6 +28,7 @@
**************************************************************************/
#include "generalsettings.h"
#include "coreconstants.h"
#include <utils/stylehelper.h>
#include <utils/qtcolorbutton.h>
@@ -37,6 +38,7 @@
#include <QtGui/QMessageBox>
#include <QtCore/QCoreApplication>
#include <QtCore/QTextStream>
#include "ui_generalsettings.h"
@@ -51,7 +53,7 @@ GeneralSettings::GeneralSettings():
QString GeneralSettings::id() const
{
return QLatin1String("General");
return QLatin1String("A.General");
}
QString GeneralSettings::trName() const
@@ -61,12 +63,12 @@ QString GeneralSettings::trName() const
QString GeneralSettings::category() const
{
return QLatin1String("Environment");
return QLatin1String(Core::Constants::SETTINGS_CATEGORY_CORE);
}
QString GeneralSettings::trCategory() const
{
return tr("Environment");
return QCoreApplication::translate("Core", Core::Constants::SETTINGS_TR_CATEGORY_CORE);
}
QWidget *GeneralSettings::createPage(QWidget *parent)