Engauge Digitizer 2
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
TutorialButton Class Reference

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>

Inheritance diagram for TutorialButton:

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.
 
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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TutorialButton()

TutorialButton::TutorialButton ( const QString &  text,
QGraphicsScene &  scene 
)

Single constructor. Position is set after creation using setGeometry.

Definition at line 20 of file TutorialButton.cpp.

◆ ~TutorialButton()

TutorialButton::~TutorialButton ( )

Definition at line 27 of file TutorialButton.cpp.

Member Function Documentation

◆ handleTriggered()

void TutorialButton::handleTriggered ( )

Callback to be called when button was triggered by mouse event.

Definition at line 61 of file TutorialButton.cpp.

◆ setGeometry()

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 69 of file TutorialButton.cpp.

◆ size()

QSize TutorialButton::size ( ) const

Size of this button.

Definition at line 54 of file TutorialButton.cpp.


The documentation for this class was generated from the following files: