#include <QtGui/qwidget.h> #ifndef QWIDGET_H class QWidget: public QObject, public QPaintDevice{ /* Some contents are skipped to improve readability */ #ifndef QT_NO_SHORTCUT public: void setShortcutAutoRepeat(int id, bool enable = 1); #endif /* ... */ }; #endif // QWIDGET_H