summaryrefslogtreecommitdiff
path: root/src/plugins/locator
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-11-27 16:12:12 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-11-27 16:12:12 +0100
commita8ac34c34770fe329d6f0afbf60e0009fa8bb28e (patch)
tree779e96b71417ae1040aa465c091711d4ccf2c9a9 /src/plugins/locator
parentf92814516366c83a32d6e87185ca5bff53560711 (diff)
downloadqt-creator-a8ac34c34770fe329d6f0afbf60e0009fa8bb28e.tar.gz
Options: Sort by category, id.
Separate category and trCategory and introduce sorting characters to the categories. Same for id/name.
Diffstat (limited to 'src/plugins/locator')
-rw-r--r--src/plugins/locator/locatorconstants.h3
-rw-r--r--src/plugins/locator/settingspage.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/locator/locatorconstants.h b/src/plugins/locator/locatorconstants.h
index 4a78341f79..a236e403c0 100644
--- a/src/plugins/locator/locatorconstants.h
+++ b/src/plugins/locator/locatorconstants.h
@@ -36,7 +36,8 @@ namespace Locator {
namespace Constants {
const char * const FILTER_OPTIONS_PAGE = QT_TRANSLATE_NOOP("Locator", "Filters");
-const char * const LOCATOR_CATEGORY = QT_TRANSLATE_NOOP("Locator", "Locator");
+const char * const LOCATOR_CATEGORY = "G.Locator";
+const char * const LOCATOR_TR_CATEGORY = QT_TRANSLATE_NOOP("Locator", "Locator");
const char * const TASK_INDEX = "Locator.Task.Index";
} // namespace Constants
diff --git a/src/plugins/locator/settingspage.cpp b/src/plugins/locator/settingspage.cpp
index 6697fd8603..c82065d3d8 100644
--- a/src/plugins/locator/settingspage.cpp
+++ b/src/plugins/locator/settingspage.cpp
@@ -61,12 +61,12 @@ QString SettingsPage::trName() const
QString SettingsPage::category() const
{
- return Constants::LOCATOR_CATEGORY;
+ return QLatin1String(Constants::LOCATOR_CATEGORY);
}
QString SettingsPage::trCategory() const
{
- return QCoreApplication::translate("Locator", Locator::Constants::LOCATOR_CATEGORY);
+ return QCoreApplication::translate("Locator", Locator::Constants::LOCATOR_TR_CATEGORY);
}
QWidget *SettingsPage::createPage(QWidget *parent)