Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
VariableBar.h
Go to the documentation of this file.
1#pragma once
3
4namespace sf
5{
6
11{
12 Q_OBJECT
13 Q_PROPERTY(int nameLevel READ nameLevel WRITE setNameLevel)
14
15 public:
19 explicit VariableBar(QWidget* parent = nullptr);
20
24 void keyPressEvent(QKeyEvent* event) override;
25
29 [[nodiscard]] QSize minimumSizeHint() const override;
30
34 [[nodiscard]] int nameLevel() const;
35
39 void setNameLevel(int level = -1) const;
40
41 protected:
45 bool isRequiredProperty(const QString& name) override;
46
50 void applyReadOnly(bool yn) override;
51
55 void paintEvent(QPaintEvent* event) override;
56
57 private:
58 void initStyleOption(QStyleOptionFrame* option) const;
59
60 class Private;
61
62 Q_DISABLE_COPY(VariableBar)
63};
64
65}// namespace sf
Widget for showing sf::Variable value types integer and floating point having a minimum and maximum v...
Definition VariableBar.h:11
VariableBar(QWidget *parent=nullptr)
Constructor.
void setNameLevel(int level=-1) const
Sets the name level shown.
QSize minimumSizeHint() const override
Overridden from base class.
void paintEvent(QPaintEvent *event) override
Overridden from base class.
void applyReadOnly(bool yn) override
Overridden from base class 'sf::VariableWidgetBase'.
bool isRequiredProperty(const QString &name) override
Overridden from base class 'sf::ObjectExtension'.
int nameLevel() const
Gets the name level shown.
void keyPressEvent(QKeyEvent *event) override
Overridden from base class.
Base class for sf::Variable based widgets.
Definition VariableWidgetBase.h:21
#define _GII_CLASS
Definition gii/global.h:38
Definition Application.h:10