Turns out I overlooked a slot and didn't need to derive from QSpinBox after all

Tue, 02 Jul 2013 00:27:45 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Tue, 02 Jul 2013 00:27:45 +0300
changeset 313
7e2cc227cfa0
parent 312
97620579d86c
child 314
fd3711a5457a

Turns out I overlooked a slot and didn't need to derive from QSpinBox after all

src/widgets.cpp file | annotate | diff | comparison | revisions
src/widgets.h file | annotate | diff | comparison | revisions
--- 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
--- 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

mercurial