diff options
| author | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
| commit | f647d78463c1250ce9c99af664615fafccf5e959 (patch) | |
| tree | 5b00428cef68aef1c9d407e2d4535687422419b6 /widgets/RestrictedSpinBox.hpp | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'widgets/RestrictedSpinBox.hpp')
| -rw-r--r--[-rwxr-xr-x] | widgets/RestrictedSpinBox.hpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/widgets/RestrictedSpinBox.hpp b/widgets/RestrictedSpinBox.hpp index 32956fa8..e984c377 100755..100644 --- a/widgets/RestrictedSpinBox.hpp +++ b/widgets/RestrictedSpinBox.hpp @@ -1,26 +1,26 @@ -#ifndef RESTRICTED_SPIN_BOX_HPP_
-#define RESTRICTED_SPIN_BOX_HPP_
-
-#include "HintedSpinBox.hpp"
-
-class QString;
-
-//
-// RestrictedSpinBox - select only from a sequence of values
-//
-class RestrictedSpinBox final
- : public HintedSpinBox
-{
-public:
- RestrictedSpinBox (QWidget * parent = nullptr)
- : HintedSpinBox {parent}
- {
- }
-
-protected:
- // override the base class validation
- QValidator::State validate (QString& input, int& pos) const override;
- void fixup (QString& input) const override;
-};
-
-#endif
+#ifndef RESTRICTED_SPIN_BOX_HPP_ +#define RESTRICTED_SPIN_BOX_HPP_ + +#include "HintedSpinBox.hpp" + +class QString; + +// +// RestrictedSpinBox - select only from a sequence of values +// +class RestrictedSpinBox final + : public HintedSpinBox +{ +public: + RestrictedSpinBox (QWidget * parent = nullptr) + : HintedSpinBox {parent} + { + } + +protected: + // override the base class validation + QValidator::State validate (QString& input, int& pos) const override; + void fixup (QString& input) const override; +}; + +#endif |
