#include <QtGui/qtablewidget.h> #ifndef QTABLEWIDGET_H #ifndef QT_NO_TABLEWIDGET class QTableWidgetSelectionRange{ /* Some contents are skipped to improve readability */ public: inline int rowCount() const /* ... */ }; #endif // QT_NO_TABLEWIDGET #endif // QTABLEWIDGET_H