summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-03-18 16:05:15 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-20 16:55:23 +0100
commit07fef5f3ffd83ebece224e7fccac6749b3fc6cf7 (patch)
treedbba653591898d396a77f7ca796c4543ef0000d5 /tests
parent9ad768fd1999780df18551151b9d9fa9c354131c (diff)
QFusionStyle: support transient scrollbars
QFusionStyle doesn't make scrollbars transient by default, but the feature can be enabled with a proxy style: class MyProxyStyle : public QProxyStyle { public: int styleHint(StyleHint sh, const QStyleOption *opt = 0, const QWidget *w = 0, QStyleHintReturn *ret = 0) const { if (sh == QStyle::SH_ScrollBar_Transient) return 1; return QProxyStyle::styleHint(sh, opt, w, ret); } }; Change-Id: Ibf169e219ad920cbe7edb06e128e09ed4d8faf96 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions