Make possible to 'select' an handler by ctrl+click

Make possible to select an handler by ctrl+click on it,
this will be used in the future for the shortcut actions,
like delete, arrow keys, and such.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-07-04 11:01:59 -03:00
parent ae08a81739
commit f457415f7a
2 changed files with 18 additions and 1 deletions

View file

@ -28,6 +28,9 @@ public:
QGraphicsLineItem *to;
int sec;
int mm;
protected:
void mousePressEvent(QGraphicsSceneMouseEvent* event);
};
class Ruler : public QGraphicsLineItem{