OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
Label.h
Go to the documentation of this file.
1
4
// ###########################################################################################################################################################################################################################################################################################################################
5
6
#pragma once
7
8
// OpenTwin header
9
#include "
OTWidgets/OTWidgetsAPIExport.h
"
10
#include "
OTWidgets/QWidgetInterface.h
"
11
12
// Qt header
13
#include <QtWidgets/qlabel.h>
14
15
namespace
ot
{
16
17
class
OT_WIDGETS_API_EXPORT
Label
:
public
QLabel,
public
ot::QWidgetInterface
{
18
Q_OBJECT
19
public
:
20
Label
(QWidget* _parentWidget = (QWidget*)
nullptr
);
21
Label
(
const
QString& _text, QWidget* _parentWidget = (QWidget*)
nullptr
);
22
virtual
~Label
() {};
23
25
virtual
QWidget*
getQWidget
(
void
)
override
{
return
this
; };
26
27
virtual
void
mousePressEvent(QMouseEvent* _event)
override
;
28
29
Q_SIGNALS:
30
void
mousePressed(
void
);
31
};
32
}
OTWidgetsAPIExport.h
OT_WIDGETS_API_EXPORT
#define OT_WIDGETS_API_EXPORT
Definition
OTWidgetsAPIExport.h:12
QWidgetInterface.h
ot::Label
Definition
Label.h:17
ot::Label::~Label
virtual ~Label()
Definition
Label.h:22
ot::Label::getQWidget
virtual QWidget * getQWidget(void) override
Returns a pointer to the root widget of this object.
Definition
Label.h:25
ot::QWidgetInterface
Definition
QWidgetInterface.h:18
ot
Definition
Connector.h:8
Libraries
OTWidgets
include
OTWidgets
Label.h
Generated by
1.10.0