Engauge Digitizer 2
|
Show a button with text for clicking ion. The button is implemented using layering of two graphics items (text and rectangle) More...
#include <TutorialButton.h>
Signals | |
void | signalTriggered () |
Signal that button was triggered. |
Public Member Functions | |
TutorialButton (const QString &text, QGraphicsScene &scene) | |
Single constructor. Position is set after creation using setGeometry. | |
~TutorialButton () | |
void | handleTriggered () |
Callback to be called when button was triggered by mouse event. | |
void | setGeometry (const QPoint &pos) |
Set the position. This is called after creation so screen extent is available for positioning calculations. | |
QSize | size () const |
Size of this button. |
Show a button with text for clicking ion. The button is implemented using layering of two graphics items (text and rectangle)
Definition at line 20 of file TutorialButton.h.
TutorialButton::TutorialButton | ( | const QString & | text, |
QGraphicsScene & | scene ) |
Single constructor. Position is set after creation using setGeometry.
Definition at line 21 of file TutorialButton.cpp.
TutorialButton::~TutorialButton | ( | ) |
Definition at line 30 of file TutorialButton.cpp.
void TutorialButton::handleTriggered | ( | ) |
Callback to be called when button was triggered by mouse event.
Definition at line 69 of file TutorialButton.cpp.
void TutorialButton::setGeometry | ( | const QPoint & | pos | ) |
Set the position. This is called after creation so screen extent is available for positioning calculations.
Definition at line 77 of file TutorialButton.cpp.
|
signal |
Signal that button was triggered.
QSize TutorialButton::size | ( | ) | const |
Size of this button.
Definition at line 62 of file TutorialButton.cpp.