224 // text |
224 // text |
225 item = sl[TextColumn]; |
225 item = sl[TextColumn]; |
226 item->setText(action->text()); |
226 item->setText(action->text()); |
227 item->setToolTip(action->text()); |
227 item->setToolTip(action->text()); |
228 // shortcut |
228 // shortcut |
229 const QString shortcut = actionShortCut(core, action).value().toString(); |
229 const QString shortcut = actionShortCut(core, action).value().toString(QKeySequence::NativeText); |
230 item = sl[ShortCutColumn]; |
230 item = sl[ShortCutColumn]; |
231 item->setText(shortcut); |
231 item->setText(shortcut); |
232 item->setToolTip(shortcut); |
232 item->setToolTip(shortcut); |
233 // checkable |
233 // checkable |
234 sl[CheckedColumn]->setCheckState(action->isCheckable() ? Qt::Checked : Qt::Unchecked); |
234 sl[CheckedColumn]->setCheckState(action->isCheckable() ? Qt::Checked : Qt::Unchecked); |
502 m_actionListView(new ActionListView(m_model)) |
502 m_actionListView(new ActionListView(m_model)) |
503 { |
503 { |
504 addWidget(m_actionListView); |
504 addWidget(m_actionListView); |
505 addWidget(m_actionTreeView); |
505 addWidget(m_actionTreeView); |
506 // Wire signals |
506 // Wire signals |
507 connect(m_actionTreeView, SIGNAL(contextMenuRequested(QContextMenuEvent*, QAction*)), |
507 connect(m_actionTreeView, SIGNAL(contextMenuRequested(QContextMenuEvent*,QAction*)), |
508 this, SIGNAL(contextMenuRequested(QContextMenuEvent*, QAction*))); |
508 this, SIGNAL(contextMenuRequested(QContextMenuEvent*,QAction*))); |
509 connect(m_actionListView, SIGNAL(contextMenuRequested(QContextMenuEvent*, QAction*)), |
509 connect(m_actionListView, SIGNAL(contextMenuRequested(QContextMenuEvent*,QAction*)), |
510 this, SIGNAL(contextMenuRequested(QContextMenuEvent*, QAction*))); |
510 this, SIGNAL(contextMenuRequested(QContextMenuEvent*,QAction*))); |
511 |
511 |
512 // make it possible for vs integration to reimplement edit action dialog |
512 // make it possible for vs integration to reimplement edit action dialog |
513 // [which it shouldn't do actually] |
513 // [which it shouldn't do actually] |
514 connect(m_actionListView, SIGNAL(activated(QAction*)), this, SIGNAL(activated(QAction*))); |
514 connect(m_actionListView, SIGNAL(activated(QAction*)), this, SIGNAL(activated(QAction*))); |
515 connect(m_actionTreeView, SIGNAL(activated(QAction*)), this, SIGNAL(activated(QAction*))); |
515 connect(m_actionTreeView, SIGNAL(activated(QAction*)), this, SIGNAL(activated(QAction*))); |