summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2016-03-21 19:40:46 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2016-03-25 16:31:40 +0000
commit95c9a0376e6e27e46ea5ad67349af0089bd2f981 (patch)
treee825065b7d2f54d5e682073ba3c6312b667f928d /src/corelib/io
parentf64640f44163d868e3d101c3b0ba41d33147a5be (diff)
QTabBar: enable high dpi moving of a tab
Moving tabs of a QTabBar goes through a temporary QWidget that captures a "screenshot" of the tab, and then gets moved around. Unfortunately, that screenshot was not using the devicePixelRatio, resulting in blurry text and icons. For some reason, setting the DPR on the pixmap isn't enough -- that causes it to be drawn twice as big (bug somewhere in Qt styles?). Work around that by not using the palette, but a simple widget which draws the pixmap (which also leads to somehow clean code). Change-Id: Id12f9251625693d108031488ddfab86277128705 Task-number: QTBUG-50898 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/io')
0 files changed, 0 insertions, 0 deletions