summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-10 06:02:56 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-10 06:02:56 (GMT)
commit5f10fa564830cbfb79061c6108098c7e133b79aa (patch)
tree13f28695714c3f1bee5b2dd0a708328b44497018 /src/declarative/graphicsitems/qdeclarativegridview_p.h
parent858e01e954ac9f3203ada6b61b47c418cc4b0a82 (diff)
downloadQt-5f10fa564830cbfb79061c6108098c7e133b79aa.zip
Qt-5f10fa564830cbfb79061c6108098c7e133b79aa.tar.gz
Qt-5f10fa564830cbfb79061c6108098c7e133b79aa.tar.bz2
Schedule view relayout after itemsInserted/Removed()
So that they handle model changes involving multiple insertion and deletion without entering the event loop.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativegridview_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview_p.h b/src/declarative/graphicsitems/qdeclarativegridview_p.h
index 183bb05..8e253e5 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview_p.h
+++ b/src/declarative/graphicsitems/qdeclarativegridview_p.h
@@ -164,6 +164,7 @@ Q_SIGNALS:
void snapModeChanged();
protected:
+ virtual bool event(QEvent *event);
virtual void viewportMoved();
virtual qreal minYExtent() const;
virtual qreal maxYExtent() const;
@@ -181,7 +182,6 @@ private Q_SLOTS:
void destroyRemoved();
void createdItem(int index, QDeclarativeItem *item);
void destroyingItem(QDeclarativeItem *item);
- void layout();
private:
void refill();