summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-03-22 15:24:29 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-03-22 16:19:38 (GMT)
commit9641be2ac53f77c3037038aaa008010eff1e1d68 (patch)
tree4b795aa50d0948379988003babfa214a4a1421f6 /src/gui
parent188b3b9e2f863b9b95e24b08e58ecd1f48f5966a (diff)
downloadQt-9641be2ac53f77c3037038aaa008010eff1e1d68.zip
Qt-9641be2ac53f77c3037038aaa008010eff1e1d68.tar.gz
Qt-9641be2ac53f77c3037038aaa008010eff1e1d68.tar.bz2
small little change to the initialization of item views
we don't need to calldoDelayedItemLayout, setting the flag that the widget needs the item layout is enough
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index 0f99949..a4722f7 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -104,7 +104,7 @@ QAbstractItemViewPrivate::QAbstractItemViewPrivate()
horizontalScrollMode(QAbstractItemView::ScrollPerItem),
currentIndexSet(false),
wrapItemText(false),
- delayedPendingLayout(false)
+ delayedPendingLayout(true)
{
}
@@ -131,8 +131,6 @@ void QAbstractItemViewPrivate::init()
viewport->setBackgroundRole(QPalette::Base);
- doDelayedItemsLayout();
-
q->setAttribute(Qt::WA_InputMethodEnabled);
#ifdef QT_SOFTKEYS_ENABLED