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