OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::ToolButton Class Reference

#include "ToolButton.h"

Inheritance diagram for ot::ToolButton:
ot::QWidgetInterface

Public Member Functions

 ToolButton ()
 
 ToolButton (const QString &_text)
 
 ToolButton (const QIcon &_icon, const QString &_text)
 
virtual ~ToolButton ()
 
virtual QWidget * getQWidget (void) override
 Will return the widgets widget to display it.
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (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

- Protected Attributes inherited from ot::QWidgetInterface
WidgetFlags m_widgetFlags
 

Constructor & Destructor Documentation

◆ ToolButton() [1/3]

ot::ToolButton::ToolButton ( )

◆ ToolButton() [2/3]

ot::ToolButton::ToolButton ( const QString & _text)

◆ ToolButton() [3/3]

ot::ToolButton::ToolButton ( const QIcon & _icon,
const QString & _text )

◆ ~ToolButton()

ot::ToolButton::~ToolButton ( )
virtual

Member Function Documentation

◆ getQWidget()

virtual QWidget * ot::ToolButton::getQWidget ( void )
inlineoverridevirtual

Will return the widgets widget to display it.

Implements ot::QWidgetInterface.


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