SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
linkcompoundeditbutton.h
Go to the documentation of this file.
1
16
#ifndef LINKCOMPOUNDEDITBUTTON_H
17
#define LINKCOMPOUNDEDITBUTTON_H
18
19
#include <QWidget>
20
21
#include "
ui/properties/linkcompoundeditref.h
"
22
23
class
QPushButton;
24
25
class
LinkCompoundEditButton
:
public
QWidget
26
{
27
Q_OBJECT
30
Q_PROPERTY(
LinkCompoundEditRef
value
31
READ
value
WRITE
setValue
USER
true
NOTIFY
valueChanged
)
32
33
public
:
34
explicit
LinkCompoundEditButton
(QWidget *
parent
=
nullptr
);
35
36
[[nodiscard]]
LinkCompoundEditRef
value
() const noexcept {
return
m_ref; }
37
void
setValue
(
const
LinkCompoundEditRef
&
ref
);
38
39
signals:
44
void
valueChanged
();
45
46
private
slots:
47
void
onClicked();
48
49
private
:
50
void
refreshLabel();
51
52
LinkCompoundEditRef
m_ref;
53
QPushButton *m_btn =
nullptr
;
54
};
55
56
#endif
// LINKCOMPOUNDEDITBUTTON_H
LinkCompoundEditButton
Definition
linkcompoundeditbutton.h:26
LinkCompoundEditButton::setValue
void setValue(const LinkCompoundEditRef &ref)
Definition
linkcompoundeditbutton.cpp:27
LinkCompoundEditButton::value
LinkCompoundEditRef value
Definition
linkcompoundeditbutton.h:31
LinkCompoundEditButton::valueChanged
void valueChanged()
LinkCompoundEditButton::value
LinkCompoundEditRef value() const noexcept
Definition
linkcompoundeditbutton.h:36
linkcompoundeditref.h
ref
EdgeRef ref
Definition
pslgminsize.cpp:377
parent
QVector< int > parent
union-find
Definition
pslgminsize.cpp:176
LinkCompoundEditRef
Definition
linkcompoundeditref.h:35
include
ui
properties
linkcompoundeditbutton.h
Generated by
1.9.8