diff -r 0bba81dde1bc -r 36eb4b8f409e shortcuts.cpp --- a/shortcuts.cpp Fri Feb 19 13:47:03 2010 +0000 +++ b/shortcuts.cpp Thu Feb 25 11:03:52 2010 +0000 @@ -1,8 +1,11 @@ -#include "shortcuts.h" +#include +#include #include using namespace std; +#include "shortcuts.h" + ///////////////////////////////////////////////////////////////// // Shortcut ///////////////////////////////////////////////////////////////// @@ -17,20 +20,24 @@ { } -void Switchboard::addConnection (QAction *a, const QString &desc) +void Switchboard::addConnection (QAction *a, const QString &group) { - QKeySequence ks=QKeySequence::fromString (desc); - actions.append (a); - if (!desc.isEmpty()) keys.append (new QKeySequence (ks)); - if (a) a->setShortcut (ks); + actions.insert(group,a); } void Switchboard::print () { - for (int i=0;ishortcut().toString().toStdString(); - cout << " Action: " <text().toStdString(); + cout <<"Group: "< values=actions.values(g); + for (int i=0;itext().left(30),30) + .arg(values.at(i)->shortcut().toString()).toStdString()<