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

@@ -99,7 +99,7 @@ MaemoQemuManager::MaemoQemuManager(QObject *parent)
qemuCommand->setAttribute(Core::Command::CA_UpdateIcon);
Core::ModeManager *modeManager = core->modeManager();
modeManager->addAction(qemuCommand, 1);
modeManager->addAction(qemuCommand->action(), 1);
// listen to qt version changes to update the start button
connect(QtVersionManager::instance(), SIGNAL(qtVersionsChanged(QList<int>)),