forked from qt-creator/qt-creator
ActionManager API cleanup.
d-pointer instead of inheritance static methods Change-Id: I7b2f0c8b05ad3951e1ff26a7d4e08e195d2dd258 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -75,13 +75,12 @@ OutputWindow::OutputWindow(Core::Context context, QWidget *parent)
|
||||
QAction *pasteAction = new QAction(this);
|
||||
QAction *selectAllAction = new QAction(this);
|
||||
|
||||
Core::ActionManager *am = ICore::actionManager();
|
||||
am->registerAction(undoAction, Core::Constants::UNDO, context);
|
||||
am->registerAction(redoAction, Core::Constants::REDO, context);
|
||||
am->registerAction(cutAction, Core::Constants::CUT, context);
|
||||
am->registerAction(copyAction, Core::Constants::COPY, context);
|
||||
am->registerAction(pasteAction, Core::Constants::PASTE, context);
|
||||
am->registerAction(selectAllAction, Core::Constants::SELECTALL, context);
|
||||
ActionManager::registerAction(undoAction, Core::Constants::UNDO, context);
|
||||
ActionManager::registerAction(redoAction, Core::Constants::REDO, context);
|
||||
ActionManager::registerAction(cutAction, Core::Constants::CUT, context);
|
||||
ActionManager::registerAction(copyAction, Core::Constants::COPY, context);
|
||||
ActionManager::registerAction(pasteAction, Core::Constants::PASTE, context);
|
||||
ActionManager::registerAction(selectAllAction, Core::Constants::SELECTALL, context);
|
||||
|
||||
connect(undoAction, SIGNAL(triggered()), this, SLOT(undo()));
|
||||
connect(redoAction, SIGNAL(triggered()), this, SLOT(redo()));
|
||||
|
||||
Reference in New Issue
Block a user