diff options
| author | Morten Sørvig <morten.sorvig@qt.io> | 2023-03-03 16:00:47 +0100 |
|---|---|---|
| committer | Morten Sørvig <morten.sorvig@qt.io> | 2023-04-11 17:13:14 +0100 |
| commit | 3965d808c086af9a4e4740ab2c7efe1a7ef6cb01 (patch) | |
| tree | e6ef7c027ea46d96382441539d8e0ad5abf2942a /src/plugins/sqldrivers/mysql/qsql_mysql.cpp | |
| parent | fc9853dcbf546c82a46cd526c04b80d4e59e99f0 (diff) | |
QWindow: Cache the devicePixelRatio value
Make each QWindow instance cache the current DPR value.
This will make calling QWindow::devicePixelRatio() less
costly, since it now does not have to compute the DPR
value on each call.
The cache is invalidated when the DevicePixelRatioChange
event is sent. The common logic for handling this is
implemented in QWindowPrivate::updateDevicePixelRatio().
Change-Id: I97231a230347358d8e565d2fd62e8a398adaedfc
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
