OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ComboBox.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// Qt header
13#include <QtWidgets/qcombobox.h>
14
15namespace ot {
16
17 class OT_WIDGETS_API_EXPORT ComboBox : public QComboBox, public QWidgetInterface {
18 Q_OBJECT
19 public:
20 ComboBox(QWidget* _parent = (QWidget*)nullptr);
21 virtual ~ComboBox() {};
22
23 virtual QWidget* getQWidget(void) override { return this; };
24 virtual const QWidget* getQWidget(void) const override { return this; };
25
26 bool isPopupVisible(void) const { return m_popupVisible; };
27
28 virtual void showPopup(void) override;
29 virtual void hidePopup(void) override;
30
31 public Q_SLOTS:
32 void togglePopup(void);
33
34 private:
35 bool m_popupVisible;
36 };
37
38}
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition ComboBox.h:17
virtual const QWidget * getQWidget(void) const override
Definition ComboBox.h:24
virtual QWidget * getQWidget(void) override
Returns a pointer to the root widget of this object.
Definition ComboBox.h:23
virtual ~ComboBox()
Definition ComboBox.h:21
bool isPopupVisible(void) const
Definition ComboBox.h:26
Definition QWidgetInterface.h:18
Definition Connector.h:8