show hand context menu when hand counter is rightclicked

This commit is contained in:
Max-Wilhelm Bruker 2011-10-16 11:51:06 +02:00
parent 683c57bb88
commit 3211801e39
5 changed files with 26 additions and 3 deletions

View file

@ -11,8 +11,12 @@ class HandCounter : public AbstractGraphicsItem {
Q_OBJECT
private:
int number;
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
public slots:
void updateNumber();
signals:
void showContextMenu(const QPoint &screenPos);
public:
enum { Type = typeOther };
int type() const { return Type; }