#include <QtGui/qitemselectionmodel.h> #ifndef QITEMSELECTIONMODEL_H #ifndef QT_NO_ITEMVIEWS class QItemSelectionModel: public QObject{ /* Some contents are skipped to improve readability */ public: bool hasSelection() const /* ... */ }; #endif // QT_NO_ITEMVIEWS #endif // QITEMSELECTIONMODEL_H