diff options
author | Rohan Garg <rohan@kde.org> | 2013-08-08 10:45:22 +0530 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-20 20:09:20 +0200 |
commit | e2322c885f6dd67834c5110c6b7e2b63ea8b6186 (patch) | |
tree | f3d42b0f3060dbdf7b30f3acd44c39dc5a89332b /tests/auto/widgets/widgets/qsplitter | |
parent | 692bee634e9add44ae38fe2e4dd140319687facd (diff) |
Extend QStyle API with a SH_Splitter_OpaqueResize styleHint
Currently the default for QSplitter::opaqueResize is hard coded,
which is less than ideal. Instead this should be provided as a
style hint via QStyle so as to give a more uniform look to all
applications.
Change-Id: I5711811f7b672e36aafcd292ed320308570a0390
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/widgets/widgets/qsplitter')
-rw-r--r-- | tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp b/tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp index 340eefbf17..8de3291207 100644 --- a/tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp +++ b/tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp @@ -109,6 +109,8 @@ void tst_QSplitter::getSetCheck() QSplitter obj1; // bool QSplitter::opaqueResize() // void QSplitter::setOpaqueResize(bool) + bool styleHint = obj1.style()->styleHint(QStyle::SH_Splitter_OpaqueResize); + QCOMPARE(styleHint, obj1.opaqueResize()); obj1.setOpaqueResize(false); QCOMPARE(false, obj1.opaqueResize()); obj1.setOpaqueResize(true); |