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
nodecompoundeditbutton.h
Go to the documentation of this file.
1
19
#ifndef NODECOMPOUNDEDITBUTTON_H
20
#define NODECOMPOUNDEDITBUTTON_H
21
22
#include <QWidget>
23
24
#include "
ui/properties/nodecompoundeditref.h
"
25
26
class
QPushButton;
27
28
class
NodeCompoundEditButton
:
public
QWidget
29
{
30
Q_OBJECT
33
Q_PROPERTY(
NodeCompoundEditRef
value
34
READ
value
WRITE
setValue
USER
true
NOTIFY
valueChanged
)
35
36
public
:
37
explicit
NodeCompoundEditButton
(QWidget *
parent
=
nullptr
);
38
39
[[nodiscard]]
NodeCompoundEditRef
value
() const noexcept {
return
m_ref; }
40
void
setValue
(
const
NodeCompoundEditRef
&
ref
);
41
42
signals:
47
void
valueChanged
();
48
49
private
slots:
50
void
onClicked();
51
52
private
:
53
void
refreshLabel();
54
55
NodeCompoundEditRef
m_ref;
56
QPushButton *m_btn =
nullptr
;
57
};
58
59
#endif
// NODECOMPOUNDEDITBUTTON_H
NodeCompoundEditButton
Definition
nodecompoundeditbutton.h:29
NodeCompoundEditButton::setValue
void setValue(const NodeCompoundEditRef &ref)
Definition
nodecompoundeditbutton.cpp:34
NodeCompoundEditButton::valueChanged
void valueChanged()
NodeCompoundEditButton::value
NodeCompoundEditRef value
Definition
nodecompoundeditbutton.h:34
NodeCompoundEditButton::value
NodeCompoundEditRef value() const noexcept
Definition
nodecompoundeditbutton.h:39
nodecompoundeditref.h
ref
EdgeRef ref
Definition
pslgminsize.cpp:377
parent
QVector< int > parent
union-find
Definition
pslgminsize.cpp:176
NodeCompoundEditRef
Definition
nodecompoundeditref.h:32
include
ui
properties
nodecompoundeditbutton.h
Generated by
1.9.8