#include "Label.h"
Signals | |
void | mousePressed (void) |
Public Member Functions | |
Label (QWidget *_parentWidget=(QWidget *) nullptr) | |
Label (const QString &_text, QWidget *_parentWidget=(QWidget *) nullptr) | |
virtual | ~Label () |
virtual QWidget * | getQWidget (void) override |
Returns a pointer to the root widget of this object. | |
virtual void | mousePressEvent (QMouseEvent *_event) override |
![]() | |
QWidgetInterface () | |
virtual | ~QWidgetInterface () |
void | setOTWidgetFlags (const WidgetFlags &_flags) |
const WidgetFlags & | otWidgetFlags (void) const |
virtual void | otWidgetFlagsChanged (const WidgetFlags &_flags) |
void | centerOnParent (const QWidget *const _parentWidget) |
Centers this widget on the parent. If no parent is provided the widget will center on the screen. | |
QPoint | calculateCenterOnParentPos (const QWidget *const _parentWidget) |
Calculates the top left corner of this widget centered on the parent widget. If no parent is provided the widget will center on the screen. | |
Additional Inherited Members | |
![]() | |
WidgetFlags | m_widgetFlags |
ot::Label::Label | ( | QWidget * | _parentWidget = (QWidget*)nullptr | ) |
ot::Label::Label | ( | const QString & | _text, |
QWidget * | _parentWidget = (QWidget*)nullptr ) |
|
inlinevirtual |
|
inlineoverridevirtual |
Returns a pointer to the root widget of this object.
Implements ot::QWidgetInterface.
|
signal |
|
overridevirtual |