equal
deleted
inserted
replaced
395 void ActionTreeView::contextMenuEvent(QContextMenuEvent *event) |
395 void ActionTreeView::contextMenuEvent(QContextMenuEvent *event) |
396 { |
396 { |
397 emit contextMenuRequested(event, m_model->actionAt(indexAt(event->pos()))); |
397 emit contextMenuRequested(event, m_model->actionAt(indexAt(event->pos()))); |
398 } |
398 } |
399 |
399 |
400 void ActionTreeView::currentChanged(const QModelIndex ¤t, const QModelIndex &/*previous*/) |
400 void ActionTreeView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) |
401 { |
401 { |
402 emit currentChanged(m_model->actionAt(current)); |
402 emit currentChanged(m_model->actionAt(current)); |
|
403 QTreeView::currentChanged(current, previous); |
403 } |
404 } |
404 |
405 |
405 void ActionTreeView::slotActivated(const QModelIndex &index) |
406 void ActionTreeView::slotActivated(const QModelIndex &index) |
406 { |
407 { |
407 emit activated(m_model->actionAt(index)); |
408 emit activated(m_model->actionAt(index)); |
476 void ActionListView::contextMenuEvent(QContextMenuEvent *event) |
477 void ActionListView::contextMenuEvent(QContextMenuEvent *event) |
477 { |
478 { |
478 emit contextMenuRequested(event, m_model->actionAt(indexAt(event->pos()))); |
479 emit contextMenuRequested(event, m_model->actionAt(indexAt(event->pos()))); |
479 } |
480 } |
480 |
481 |
481 void ActionListView::currentChanged(const QModelIndex ¤t, const QModelIndex & /*previous*/) |
482 void ActionListView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) |
482 { |
483 { |
483 emit currentChanged(m_model->actionAt(current)); |
484 emit currentChanged(m_model->actionAt(current)); |
|
485 QListView::currentChanged(current, previous); |
484 } |
486 } |
485 |
487 |
486 void ActionListView::slotActivated(const QModelIndex &index) |
488 void ActionListView::slotActivated(const QModelIndex &index) |
487 { |
489 { |
488 emit activated(m_model->actionAt(index)); |
490 emit activated(m_model->actionAt(index)); |