OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
aLabelWidget.h
Go to the documentation of this file.
1
/*
2
* File: aLabelWidget.h
3
* Package: akWidgets
4
*
5
* Created on: October 27, 2020
6
* Author: Alexander Kuester
7
* Copyright (c) 2022 Alexander Kuester
8
* This file is part of the uiCore component.
9
* This file is subject to the terms and conditions defined in
10
* file 'LICENSE', which is part of this source code package.
11
*/
12
13
#pragma once
14
15
// Qt header
16
#include <qlabel.h>
// Base class
17
#include <qstring.h>
// QString
18
19
// AK header
20
#include <
akWidgets/aWidget.h
>
21
#include <
akCore/globalDataTypes.h
>
22
23
namespace
ak
{
24
25
class
UICORE_API_EXPORT
aLabelWidget
:
public
QLabel,
public
aWidget
26
{
27
Q_OBJECT
28
public
:
29
aLabelWidget
(QWidget * _parent =
nullptr
);
30
31
aLabelWidget
(
const
QString & _text, QWidget * _parent =
nullptr
);
32
33
virtual
~aLabelWidget
();
34
35
// #############################################################################################################################
36
// Base class functions
37
39
virtual
QWidget * widget(
void
)
override
;
40
41
Q_SIGNALS:
42
void
clicked
();
43
44
protected
:
45
bool
event(QEvent *myEvent);
46
47
private
:
48
aLabelWidget
(
const
aLabelWidget
&) =
delete
;
49
aLabelWidget
& operator = (
const
aLabelWidget
&) =
delete
;
50
};
51
}
// namespace ak
globalDataTypes.h
UICORE_API_EXPORT
#define UICORE_API_EXPORT
Definition
globalDataTypes.h:20
aWidget.h
ak::aLabelWidget
Definition
aLabelWidget.h:26
ak::aLabelWidget::clicked
void clicked()
ak::aWidget
This class provides a interface that represents a widget. Every class derived from this class must be...
Definition
aWidget.h:27
ak
Definition
uiAPI.h:45
Libraries
uiCore
include
akWidgets
aLabelWidget.h
Generated by
1.10.0