#include <QtGui/qvalidator.h>
#ifndef QVALIDATOR_H
#ifndef QT_NO_VALIDATOR
#ifndef QT_NO_REGEXP
class QRegExpValidator: public QValidator{
   /* Some contents are skipped to improve readability */
   public: virtual ~QRegExpValidator();
   /* ... */
};
#endif // QT_NO_REGEXP
#endif // QT_NO_VALIDATOR
#endif // QVALIDATOR_H