Changeset 5fc5d13 in confclerk_git
- Timestamp:
- 01/21/17 23:22:39 (6 years ago)
- Branches:
- master, qt5
- Children:
- c8257a4
- Parents:
- bda4629
- git-author:
- Philipp Spitzer <philipp@…> (01/21/17 23:20:26)
- git-committer:
- Philipp Spitzer <philipp@…> (01/21/17 23:22:39)
- Location:
- src/mvc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/treeview.cpp
rbda4629 r5fc5d13 45 45 46 46 // test whether we have handled the mouse event 47 if(!testForControlClicked(index, point))47 if(!testForControlClicked(index, point, aEvent->button())) 48 48 { 49 49 // pass the event to the Base class, so item clicks/events are handled correctly … … 53 53 54 54 // returns bool if some Control was clicked 55 bool TreeView::testForControlClicked(const QModelIndex &aIndex, const QPoint &aPoint )55 bool TreeView::testForControlClicked(const QModelIndex &aIndex, const QPoint &aPoint, Qt::MouseButton button) 56 56 { 57 57 bool handled = false; … … 73 73 74 74 QList<Event> conflicts = Event::conflictEvents(event.id(),Conference::activeConference()); 75 event.cycleFavourite( );75 event.cycleFavourite(button == Qt::RightButton); 76 76 event.update("favourite"); 77 77 -
src/mvc/treeview.h
rbda4629 r5fc5d13 31 31 private: 32 32 void mouseReleaseEvent(QMouseEvent *aEvent); 33 bool testForControlClicked(const QModelIndex &aIndex, const QPoint &aPoint );33 bool testForControlClicked(const QModelIndex &aIndex, const QPoint &aPoint, Qt::MouseButton button); 34 34 public slots: 35 35 void setAllExpanded(bool aExpanded); // (aExpanded==true) => expanded; (aExpanded==false) => collapsed
Note: See TracChangeset
for help on using the changeset viewer.