#include <QtGui/qspinbox.h> #ifndef QSPINBOX_H #ifndef QT_NO_SPINBOX class QDoubleSpinBox: public QAbstractSpinBox{ /* Some contents are skipped to improve readability */ public: void setDecimals(int prec); /* ... */ }; #endif // QT_NO_SPINBOX #endif // QSPINBOX_H