#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 */
   private: double b;
   /* ... */
};
#endif // QT_NO_REGEXP
#endif // QT_NO_VALIDATOR
#endif // QVALIDATOR_H