#include <QtGui/qwidget.h>
#ifndef QWIDGET_H
class QWidget: public QObject, public QPaintDevice{
   /* Some contents are skipped to improve readability */
#if defined(Q_WS_X11)
   protected: virtual bool x11Event(XEvent*);
#endif
   /* ... */
};
#endif // QWIDGET_H