#include <QtGui/qdockwidget.h> #ifndef QDYNAMICDOCKWIDGET_H #ifndef QT_NO_DOCKWIDGET class QDockWidget: public QWidget{ /* Some contents are skipped to improve readability */ public: Qt::DockWidgetAreas allowedAreas() const /* ... */ }; #endif // QT_NO_DOCKWIDGET #endif // QDYNAMICDOCKWIDGET_H