Engauge Digitizer  2
TutorialButtonText.h
1 #ifndef TUTORIAL_BUTTON_TEXT_H
2 #define TUTORIAL_BUTTON_TEXT_H
3 
4 #include <QGraphicsTextItem>
5 
6 class TutorialButton;
7 
9 class TutorialButtonText : public QGraphicsTextItem
10 {
11  public:
13  TutorialButtonText (TutorialButton &tutorialButton,
14  const QString &text,
15  TutorialButtonRect *rect);
16 
18  virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event);
19 
20  private:
22 
23  TutorialButton &m_tutorialButton;
24 };
25 
26 #endif // TUTORIAL_BUTTON_TEXT_H
Show a button with text for clicking ion. The button is implemented using layering of two graphics it...
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Forward mouse event to TutorialButton.
This class customizes QGraphicsTextItem so it performs a callback after a mouse event.
This class customizes QGraphicsRectItem so it performs a callback after a mouse event.