diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-04-27 15:39:36 +0200 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-04-28 12:18:20 +0000 |
commit | b0cc12406ca853c0395f71436b3ef653eb383e97 (patch) | |
tree | 61a0a939a4aec11a2aac35e85200fced6517b9f6 /src/quick/items/qquickimagebase_p.h | |
parent | 4be29bdbd5fc5d9751ff07718dcf04c256d4bd34 (diff) |
QQuickImageBase: Avoid a signal connection altogether
7568922fa240e6e9440e9c6e93bf8ec00c06ec17 already made this faster (by making it
not string-based, and used when it was required).
We can do one better after d870ea28656a2155c39a1aabefa1c56871a017e4, by
avoiding the connection altogether, and explicitly only updating when
the DPI changes.
This doesn't affect qmlbench performance a great deal AFAICT (presumably
because ItemSceneChange events don't just fall out of the sky); but it will help
when they do happen, and it will also no longer allocate memory (for the
connection).
Change-Id: I043f6e22565554cee9ce6346fa7feefadfff0c7a
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quick/items/qquickimagebase_p.h')
-rw-r--r-- | src/quick/items/qquickimagebase_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/items/qquickimagebase_p.h b/src/quick/items/qquickimagebase_p.h index 532f6ce683..54b1f789c9 100644 --- a/src/quick/items/qquickimagebase_p.h +++ b/src/quick/items/qquickimagebase_p.h @@ -123,7 +123,6 @@ protected: private Q_SLOTS: virtual void requestFinished(); void requestProgress(qint64,qint64); - void handleScreenChanged(QScreen *screen); private: Q_DISABLE_COPY(QQuickImageBase) |