Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
VariableComboBox.h
Go to the documentation of this file.
1
#pragma once
2
#include <
gii/qt/VariableWidgetBase.h
>
3
4
namespace
sf
5
{
6
10
class
QDESIGNER_WIDGET_EXPORT
VariableComboBox
:
public
VariableWidgetBase
11
{
12
Q_OBJECT
13
Q_PROPERTY(
bool
focusFrame READ hasFocusFrame WRITE setFocusFrame)
14
Q_PROPERTY(
int
nameLevel READ nameLevel WRITE setNameLevel)
15
16
public:
20
explicit
VariableComboBox
(QWidget* parent =
nullptr
);
21
26
void
setFocusFrame(
bool
yn);
27
32
[[nodiscard]]
bool
hasFocusFrame() const;
33
37
[[nodiscard]]
int
nameLevel() const;
41
void
setNameLevel(
int
level = -1);
42
43
protected:
47
bool
isRequiredProperty(const QString& name) override;
48
52
void
applyReadOnly(
bool
yn) override;
53
54
private:
58
struct Private;
59
60
Q_DISABLE_COPY(
VariableComboBox
)
61
};
62
63
}
// namespace sf
VariableWidgetBase.h
sf::VariableComboBox
Widget for editing sf::Variable value types integer, floating point and single line string.
Definition
VariableComboBox.h:11
sf::VariableWidgetBase
Base class for sf::Variable based widgets.
Definition
VariableWidgetBase.h:22
sf
Definition
Application.h:10
src
com
gii
qt
VariableComboBox.h
Generated by
1.9.8