OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
QWidgetInterface.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
9#include "OTCore/Flags.h"
12
13// Qt header
14#include <QtWidgets/qwidget.h>
15
16namespace ot {
17
19 public:
21 virtual ~QWidgetInterface() {};
22
24 virtual QWidget* getQWidget(void) = 0;
25
26 void setOTWidgetFlags(const WidgetFlags& _flags);
27 const WidgetFlags& otWidgetFlags(void) const { return m_widgetFlags; };
28 virtual void otWidgetFlagsChanged(const WidgetFlags& _flags) {};
29
32 void centerOnParent(const QWidget* const _parentWidget);
33
36 QPoint calculateCenterOnParentPos(const QWidget* const _parentWidget);
37
38 protected:
40
41 };
42}
#define OT_WIDGETS_API_EXPORTONLY
Definition OTWidgetsAPIExport.h:13
Definition QWidgetInterface.h:18
virtual void otWidgetFlagsChanged(const WidgetFlags &_flags)
Definition QWidgetInterface.h:28
const WidgetFlags & otWidgetFlags(void) const
Definition QWidgetInterface.h:27
QWidgetInterface()
Definition QWidgetInterface.h:20
virtual QWidget * getQWidget(void)=0
Returns a pointer to the root widget of this object.
WidgetFlags m_widgetFlags
Definition QWidgetInterface.h:39
virtual ~QWidgetInterface()
Definition QWidgetInterface.h:21
Definition Connector.h:8