#include <QtGui/qtoolbutton.h> #ifndef QTOOLBUTTON_H #ifndef QT_NO_TOOLBUTTON class QToolButton: public QAbstractButton{ /* Some contents are skipped to improve readability */ #ifndef QT_NO_MENU public: void setMenu(struct QMenu* menu); #endif /* ... */ }; #endif // QT_NO_TOOLBUTTON #endif // QTOOLBUTTON_H