#include <QtGui/qstyleoption.h> #ifndef QSTYLEOPTION_H class QStyleOptionViewItem: public QStyleOption{ /* Some contents are skipped to improve readability */ public: enum Position{ Left = 0, Right = 1, Top = 2, Bottom = 3, }; /* ... */ }; #endif // QSTYLEOPTION_H