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 "generalsettingspage.h"
#include "helpconstants.h"
#include "bookmarkmanager.h"
#include "centralwidget.h"
@@ -40,6 +41,7 @@
#include <QtWebKit/QWebSettings>
#endif
#include <QtCore/QCoreApplication>
#include <QtCore/QDebug>
#include <QtGui/QFileDialog>
#include <QtHelp/QHelpEngine>
@@ -66,7 +68,7 @@ GeneralSettingsPage::GeneralSettingsPage(QHelpEngine *helpEngine,
QString GeneralSettingsPage::id() const
{
return QLatin1String("General settings");
return QLatin1String("A.General settings");
}
QString GeneralSettingsPage::trName() const
@@ -76,12 +78,12 @@ QString GeneralSettingsPage::trName() const
QString GeneralSettingsPage::category() const
{
return QLatin1String("Help");
return QLatin1String(Help::Constants::HELP_CATEGORY);
}
QString GeneralSettingsPage::trCategory() const
{
return tr("Help");
return QCoreApplication::translate("Help", Help::Constants::HELP_TR_CATEGORY);
}
QWidget *GeneralSettingsPage::createPage(QWidget *parent)