Commit e089db4d authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed warning about non-existing group



Makes a currently non-functional 'Reformat' action visible.

Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@nokia.com>
parent 149b7fd5
...@@ -180,7 +180,6 @@ const char * const G_EDIT_OTHER = "QtCreator.Group.Edit.Other"; ...@@ -180,7 +180,6 @@ const char * const G_EDIT_OTHER = "QtCreator.Group.Edit.Other";
// advanced edit menu groups // advanced edit menu groups
const char * const G_EDIT_FORMAT = "QtCreator.Group.Edit.Format"; const char * const G_EDIT_FORMAT = "QtCreator.Group.Edit.Format";
const char * const G_EDIT_REFORMAT = "QtCreator.Group.Edit.Reformat";
const char * const G_EDIT_COLLAPSING = "QtCreator.Group.Edit.Collapsing"; const char * const G_EDIT_COLLAPSING = "QtCreator.Group.Edit.Collapsing";
const char * const G_EDIT_FONT = "QtCreator.Group.Edit.Font"; const char * const G_EDIT_FONT = "QtCreator.Group.Edit.Font";
const char * const G_EDIT_EDITOR = "QtCreator.Group.Edit.Editor"; const char * const G_EDIT_EDITOR = "QtCreator.Group.Edit.Editor";
......
...@@ -50,7 +50,7 @@ using namespace TextEditor; ...@@ -50,7 +50,7 @@ using namespace TextEditor;
using namespace TextEditor::Internal; using namespace TextEditor::Internal;
TextEditorActionHandler::TextEditorActionHandler(const QString &context, TextEditorActionHandler::TextEditorActionHandler(const QString &context,
uint optionalActions) uint optionalActions)
: QObject(Core::ICore::instance()), : QObject(Core::ICore::instance()),
m_undoAction(0), m_undoAction(0),
m_redoAction(0), m_redoAction(0),
...@@ -188,7 +188,7 @@ void TextEditorActionHandler::createActions() ...@@ -188,7 +188,7 @@ void TextEditorActionHandler::createActions()
command = am->registerAction(m_reformatAction, Constants::REFORMAT, m_contextId); command = am->registerAction(m_reformatAction, Constants::REFORMAT, m_contextId);
command->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+F"))); command->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+F")));
connect(m_reformatAction, SIGNAL(triggered()), this, SLOT(reformatAction())); connect(m_reformatAction, SIGNAL(triggered()), this, SLOT(reformatAction()));
advancedMenu->addAction(command, Core::Constants::G_EDIT_REFORMAT); advancedMenu->addAction(command, Core::Constants::G_EDIT_FORMAT);
m_cutLineAction = new QAction(tr("Cut &Line"), this); m_cutLineAction = new QAction(tr("Cut &Line"), this);
command = am->registerAction(m_cutLineAction, Constants::CUT_LINE, m_contextId); command = am->registerAction(m_cutLineAction, Constants::CUT_LINE, m_contextId);
...@@ -221,7 +221,7 @@ void TextEditorActionHandler::createActions() ...@@ -221,7 +221,7 @@ void TextEditorActionHandler::createActions()
command->setDefaultKeySequence(QKeySequence(tr("Ctrl++"))); command->setDefaultKeySequence(QKeySequence(tr("Ctrl++")));
connect(m_increaseFontSizeAction, SIGNAL(triggered()), this, SLOT(increaseFontSize())); connect(m_increaseFontSizeAction, SIGNAL(triggered()), this, SLOT(increaseFontSize()));
advancedMenu->addAction(command, Core::Constants::G_EDIT_FONT); advancedMenu->addAction(command, Core::Constants::G_EDIT_FONT);
m_decreaseFontSizeAction = new QAction(tr("Decrease Font Size"), this); m_decreaseFontSizeAction = new QAction(tr("Decrease Font Size"), this);
command = am->registerAction(m_decreaseFontSizeAction, Constants::DECREASE_FONT_SIZE, m_contextId); command = am->registerAction(m_decreaseFontSizeAction, Constants::DECREASE_FONT_SIZE, m_contextId);
command->setDefaultKeySequence(QKeySequence(tr("Ctrl+-"))); command->setDefaultKeySequence(QKeySequence(tr("Ctrl+-")));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment