src
gui
include
corbo-gui
label_horizontal_line_widget.h
Go to the documentation of this file.
1
/*********************************************************************
2
*
3
* Software License Agreement
4
*
5
* Copyright (c) 2020,
6
* TU Dortmund - Institute of Control Theory and Systems Engineering.
7
* All rights reserved.
8
*
9
* This program is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21
*
22
* Authors: Christoph Rösmann
23
*********************************************************************/
24
25
#ifndef SRC_GUI_INCLUDE_CORBO_GUI_LABEL_HORIZONTAL_LINE_WIDGET_H_
26
#define SRC_GUI_INCLUDE_CORBO_GUI_LABEL_HORIZONTAL_LINE_WIDGET_H_
27
28
#include <QLabel>
29
30
namespace
corbo
{
31
namespace
gui {
32
33
class
LabelHLineWidget
:
public
QWidget
34
{
35
Q_OBJECT
36
37
public
:
38
explicit
LabelHLineWidget
(QWidget* parent = 0) :
LabelHLineWidget
(
""
, false, parent) {}
39
explicit
LabelHLineWidget
(
const
QString& label,
bool
hline =
false
, QWidget* parent = 0);
40
41
~LabelHLineWidget
() {}
42
43
QSize
sizeHint
()
const override
;
44
45
void
setLabel
(
const
QString& label) {
_label
->setText(label); }
46
47
QLabel*
widgetLabel
() {
return
_label
; }
48
const
QLabel*
widgetLabel
()
const
{
return
_label
; }
49
50
protected
:
51
private
:
52
QLabel*
_label
;
53
};
54
55
}
// namespace gui
56
}
// namespace corbo
57
58
#endif // SRC_GUI_INCLUDE_CORBO_GUI_LABEL_HORIZONTAL_LINE_WIDGET_H_
corbo::gui::LabelHLineWidget::widgetLabel
const QLabel * widgetLabel() const
Definition:
label_horizontal_line_widget.h:48
corbo
Definition:
communication/include/corbo-communication/utilities.h:37
corbo::gui::LabelHLineWidget::LabelHLineWidget
LabelHLineWidget(QWidget *parent=0)
Definition:
label_horizontal_line_widget.h:38
corbo::gui::LabelHLineWidget::widgetLabel
QLabel * widgetLabel()
Definition:
label_horizontal_line_widget.h:47
corbo::gui::LabelHLineWidget::setLabel
void setLabel(const QString &label)
Definition:
label_horizontal_line_widget.h:45
corbo::gui::LabelHLineWidget
Definition:
label_horizontal_line_widget.h:33
corbo::gui::LabelHLineWidget::_label
QLabel * _label
Definition:
label_horizontal_line_widget.h:52
corbo::gui::LabelHLineWidget::sizeHint
QSize sizeHint() const override
Definition:
label_horizontal_line_widget.cpp:48
corbo::gui::LabelHLineWidget::~LabelHLineWidget
~LabelHLineWidget()
Definition:
label_horizontal_line_widget.h:41
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:06:57