diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2011-09-20 16:06:03 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-09-20 17:36:49 +0200 |
commit | 0cea87f55bede30ee563f9e939743aa7dd2fcec8 (patch) | |
tree | cddb55748370a2539f1603c4394f4c07603671a7 /src/plugins/qmljseditor | |
parent | 80c1e74abd8ed8c80c76e307dd723959fe2e0ec1 (diff) | |
download | qt-creator-0cea87f55bede30ee563f9e939743aa7dd2fcec8.tar.gz |
Move some settings pages.
Reducing vertical size of preferences dialog, and moving languages
settings adjacent.
Change-Id: I1cb5a4310350a0552c920982854f671ae443ed7e
Reviewed-on: http://codereview.qt-project.org/5251
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmljseditorconstants.h | 2 | ||||
-rw-r--r-- | src/plugins/qmljseditor/quicktoolbarsettingspage.cpp | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/qmljseditor/qmljseditorconstants.h b/src/plugins/qmljseditor/qmljseditorconstants.h index 1761838e38..f2e4d67628 100644 --- a/src/plugins/qmljseditor/qmljseditorconstants.h +++ b/src/plugins/qmljseditor/qmljseditorconstants.h @@ -49,6 +49,8 @@ const char * const M_REFACTORING_MENU_INSERTION_POINT = "QmlJSEditor.RefactorGro const char * const C_QMLJSEDITOR_ID = "QMLProjectManager.QMLJSEditor"; const char * const C_QMLJSEDITOR_DISPLAY_NAME = QT_TRANSLATE_NOOP("OpenWith::Editors", "QMLJS Editor"); const char * const TASK_SEARCH = "QmlJSEditor.TaskSearch"; +const char * const SETTINGS_CATEGORY_QML = "J.QtQuick"; +const char * const SETTINGS_TR_CATEGORY_QML = QT_TRANSLATE_NOOP("QmlJSEditor", "Qt Quick"); const char * const FOLLOW_SYMBOL_UNDER_CURSOR = "QmlJSEditor.FollowSymbolUnderCursor"; const char * const FIND_USAGES = "QmlJSEditor.FindUsages"; diff --git a/src/plugins/qmljseditor/quicktoolbarsettingspage.cpp b/src/plugins/qmljseditor/quicktoolbarsettingspage.cpp index 2d95efe9fc..b4d13af303 100644 --- a/src/plugins/qmljseditor/quicktoolbarsettingspage.cpp +++ b/src/plugins/qmljseditor/quicktoolbarsettingspage.cpp @@ -30,9 +30,10 @@ ** **************************************************************************/ -#include <qmldesigner/qmldesignerconstants.h> #include "quicktoolbarsettingspage.h" +#include "qmljseditorconstants.h" +#include <qmldesigner/qmldesignerconstants.h> #include <coreplugin/icore.h> #include <QtCore/QSettings> @@ -140,12 +141,12 @@ QString QuickToolBarSettingsPage::displayName() const QString QuickToolBarSettingsPage::category() const { - return QLatin1String("Qt Quick"); + return QLatin1String(Constants::SETTINGS_CATEGORY_QML); } QString QuickToolBarSettingsPage::displayCategory() const { - return QCoreApplication::translate("Qt Quick", "Qt Quick"); + return QCoreApplication::translate("QmlJSEditor", QmlJSEditor::Constants::SETTINGS_TR_CATEGORY_QML); } QIcon QuickToolBarSettingsPage::categoryIcon() const |