Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
VariableCheckBox.h
Go to the documentation of this file.
1#pragma once
2#include <gii/global.h>
4
5namespace sf
6{
7
11class QDESIGNER_WIDGET_EXPORT VariableCheckBox : public VariableWidgetBase
12{
13 Q_OBJECT
14 Q_PROPERTY(int nameLevel READ nameLevel WRITE setNameLevel)
15
16 public:
20 explicit VariableCheckBox(QWidget* parent = nullptr);
21
25 [[nodiscard]] int nameLevel() const;
29 void setNameLevel(int level = -1);
30
31 protected:
35 bool isRequiredProperty(const QString& name) override;
36
40 void applyReadOnly(bool yn) override;
41
42 private:
46 struct Private;
47
48 Q_DISABLE_COPY(VariableCheckBox)
49};
50
51}// namespace sf
Widget for editing sf::Variable value types integer, floating point and single line string.
Definition VariableCheckBox.h:12
VariableCheckBox(QWidget *parent=nullptr)
Constructor.
void setNameLevel(int level=-1)
Sets the name level shown.
bool isRequiredProperty(const QString &name) override
Overridden from base class 'sf::ObjectExtension'.
int nameLevel() const
Gets the name level shown.
void applyReadOnly(bool yn) override
Overridden from base class 'sf::VariableWidgetBase'.
Base class for sf::Variable based widgets.
Definition VariableWidgetBase.h:22
Definition Application.h:10