# HG changeset patch # User Santeri Piippo # Date 1372714065 -10800 # Node ID 7e2cc227cfa014049034f1910038b436b8f41553 # Parent 97620579d86ce747406a014222e899c2e0964a88 Turns out I overlooked a slot and didn't need to derive from QSpinBox after all diff -r 97620579d86c -r 7e2cc227cfa0 src/widgets.cpp --- a/src/widgets.cpp Tue Jul 02 00:15:52 2013 +0300 +++ b/src/widgets.cpp Tue Jul 02 00:27:45 2013 +0300 @@ -174,17 +174,4 @@ bool CheckBoxGroup::buttonChecked (int key) { return m_vals[key]->isChecked (); -} - -SpinBox::SpinBox( QWidget* parent ) : QSpinBox( parent ) {} -SpinBox::SpinBox() : QSpinBox() {} - -void SpinBox::enable() -{ - setEnabled( true ); -} - -void SpinBox::disable() -{ - setEnabled( false ); } \ No newline at end of file diff -r 97620579d86c -r 7e2cc227cfa0 src/widgets.h --- a/src/widgets.h Tue Jul 02 00:15:52 2013 +0300 +++ b/src/widgets.h Tue Jul 02 00:27:45 2013 +0300 @@ -108,22 +108,4 @@ void buttonChanged (); }; -// ============================================================================= -// SpinBox -// ============================================================================= -class SpinBox : public QSpinBox -{ - Q_OBJECT -public: - explicit SpinBox( QWidget* parent = 0 ); - SpinBox(); - -public slots: - void enable(); - void disable(); - -private: - Q_DISABLE_COPY( SpinBox ) -}; - #endif // WIDGETS_H \ No newline at end of file