#include <QtGui/qvalidator.h> #ifndef QVALIDATOR_H #ifndef QT_NO_VALIDATOR #ifndef QT_NO_REGEXP class QDoubleValidator: public QValidator{ /* Some contents are skipped to improve readability */ public: inline double top() const /* ... */ }; #endif // QT_NO_REGEXP #endif // QT_NO_VALIDATOR #endif // QVALIDATOR_H