summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qlistview_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemviews/qlistview_p.h')
-rw-r--r--src/gui/itemviews/qlistview_p.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/itemviews/qlistview_p.h b/src/gui/itemviews/qlistview_p.h
index 1131059..6c8d324 100644
--- a/src/gui/itemviews/qlistview_p.h
+++ b/src/gui/itemviews/qlistview_p.h
@@ -351,9 +351,10 @@ public:
QItemViewPaintPairs draggablePaintPairs(const QModelIndexList &indexes, QRect *r) const;
- // ### FIXME: we only need one at a time
- QDynamicListViewBase *dynamicListView;
- QStaticListViewBase *staticListView;
+ union {
+ QDynamicListViewBase *dynamicListView;
+ QStaticListViewBase *staticListView;
+ };
// ### FIXME: see if we can move the members into the dynamic/static classes