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

@@ -6,8 +6,6 @@
#include <QtCore/QCoreApplication>
#include <QtCore/QTextStream>
const char * const GDB_SETTINGS_ID = QT_TRANSLATE_NOOP("Debugger::Internal::GdbOptionsPage", "Gdb");
namespace Debugger {
namespace Internal {
@@ -17,12 +15,12 @@ GdbOptionsPage::GdbOptionsPage()
QString GdbOptionsPage::settingsId()
{
return QLatin1String(GDB_SETTINGS_ID);
return QLatin1String("M.Gdb");
}
QString GdbOptionsPage::trName() const
{
return tr(GDB_SETTINGS_ID);
return tr("Gdb");
}
QString GdbOptionsPage::category() const
@@ -32,7 +30,7 @@ QString GdbOptionsPage::category() const
QString GdbOptionsPage::trCategory() const
{
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY);
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_TR_CATEGORY);
}
QWidget *GdbOptionsPage::createPage(QWidget *parent)

View File

@@ -40,8 +40,6 @@
namespace Debugger {
namespace Internal {
const char * const TRK_SETTINGS_ID = QT_TRANSLATE_NOOP("Debugger::Internal::TrkOptionsPage", "Symbian TRK");
TrkOptionsPage::TrkOptionsPage(const TrkOptionsPtr &options) :
m_options(options)
{
@@ -53,12 +51,12 @@ TrkOptionsPage::~TrkOptionsPage()
QString TrkOptionsPage::settingsId()
{
return QLatin1String(TRK_SETTINGS_ID);
return QLatin1String("S.Trk");
}
QString TrkOptionsPage::trName() const
{
return tr(TRK_SETTINGS_ID);
return tr("Symbian TRK");
}
QString TrkOptionsPage::category() const
@@ -68,7 +66,7 @@ QString TrkOptionsPage::category() const
QString TrkOptionsPage::trCategory() const
{
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY);
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_TR_CATEGORY);
}
QWidget *TrkOptionsPage::createPage(QWidget *parent)