#include <QtGui/qvalidator.h>
#ifndef QVALIDATOR_H
#ifndef QT_NO_VALIDATOR
class QValidator: public QObject{
   /* Some contents are skipped to improve readability */
   public: enum State{
      /* ... */
      Invalid = 0,
      /* ... */
   };
   /* ... */
};
#endif // QT_NO_VALIDATOR
#endif // QVALIDATOR_H