#include <QtGui/qtoolbox.h> #ifndef QTOOLBOX_H #ifndef QT_NO_TOOLBOX class QToolBox: public QFrame{ /* Some contents are skipped to improve readability */ public: int indexOf(class QWidget* widget) const /* ... */ }; #endif // QT_NO_TOOLBOX #endif // QTOOLBOX_H