Let ModeManager::addAction take a QAction instead of Command

There was no reason, and using QAction is more flexible.
This commit is contained in:
con
2011-01-12 14:21:12 +01:00
parent e7ad89ffd8
commit 8bf142fbc3
5 changed files with 10 additions and 10 deletions

View File

@@ -43,8 +43,8 @@ QT_END_NAMESPACE
namespace Core {
class Command;
class IMode;
namespace Internal {
class MainWindow;
class FancyTabWidget;
@@ -66,7 +66,7 @@ public:
IMode* currentMode() const;
IMode* mode(const QString &id) const;
void addAction(Command *command, int priority);
void addAction(QAction *action, int priority);
void addProjectSelector(QAction *action);
void addWidget(QWidget *widget);