*/
SUIT_ShortcutMgr* SUIT_Application::shortcutMgr() const
{
- return SUIT_ShortcutMgr::getShortcutMgr();
+ return SUIT_ShortcutMgr::get();
}
#define DEFAULT_MESSAGE_DELAY 3000
\param toggle - if it is \c true the action will be a toggle action, otherwise it will be a command action
\param reciever - object that contains slot
\param member - slot to be called when action is activated
+ \param actionID - application-unique action ID
*/
QAction* SUIT_Application::createAction( const int id, const QString& text, const QIcon& icon,
const QString& menu, const QString& tip, const int key,
- QObject* parent, const bool toggle, QObject* reciever,
- const char* member, const QString& shortcutAction )
+ QObject* parent, const bool toggle, QObject* reciever,
+ const char* member, const QString& actionID )
{
- return createAction( id, text, icon, menu, tip, QKeySequence(key), parent, toggle, reciever, member, shortcutAction );
+ return createAction( id, text, icon, menu, tip, QKeySequence(key), parent, toggle, reciever, member, actionID );
}
/*!
\param toggle - if it is TRUE the action will be a toggle action, otherwise it will be a command action
\param reciever - object that contains slot
\param member - slot to be called when action is activated
+ \param actionID - application-unique action ID
*/
QAction* SUIT_Application::createAction( const int id, const QString& text, const QIcon& icon,
const QString& menu, const QString& tip, const QKeySequence& key,
- QObject* parent, const bool toggle, QObject* reciever,
- const char* member, const QString& shortcutAction )
+ QObject* parent, const bool toggle, QObject* reciever,
+ const char* member, const QString& actionID )
{
- QtxAction* a = new QtxAction( text, icon, menu, key, parent, toggle, shortcutAction );
+ QtxAction* a = new QtxAction( text, icon, menu, key, parent, toggle, actionID );
a->setStatusTip( tip );
if ( reciever && member )