diff options
Diffstat (limited to 'src/ui/widget/spinbutton.h')
| -rw-r--r-- | src/ui/widget/spinbutton.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui/widget/spinbutton.h b/src/ui/widget/spinbutton.h index 33ff11576..c41aabf84 100644 --- a/src/ui/widget/spinbutton.h +++ b/src/ui/widget/spinbutton.h @@ -48,6 +48,10 @@ public: ~SpinButton() override = default;; + // noncopyable + SpinButton(const SpinButton&) = delete; + SpinButton& operator=(const SpinButton&) = delete; + void setUnitMenu(UnitMenu* unit_menu) { _unit_menu = unit_menu; }; void addUnitTracker(UnitTracker* ut) { _unit_tracker = ut; }; @@ -87,11 +91,6 @@ protected: * Undo the editing, by resetting the value upon when the spinbutton got focus. */ void undo(); - -private: - // noncopyable - SpinButton(const SpinButton&) = delete; - SpinButton& operator=(const SpinButton&) = delete; }; } // namespace Widget |
