summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2012-11-23 15:50:48 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-26 14:16:44 +0100
commit5ad4e14fb14ae9829b09df6afd6535ffb28a743c (patch)
tree5bd62c1debe60f30ccf5b62d2127676dc009d995 /tests
parenteefec0e0be6b589ff1db8ab44a7f6d3aa2b6ec60 (diff)
tst_QComboBox: use QProxyStyle instead of QWindowsStyle
QWindowsStyle is soon to become an internal class. Change-Id: Ic76ecc20ff600a7d401b44c8dc4d93198c06becc Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
index 4f390fa2c8..8ac3fea457 100644
--- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
@@ -72,9 +72,7 @@
#include <qstylefactory.h>
#include <qabstractitemview.h>
#include <qstyleditemdelegate.h>
-#ifndef QT_NO_STYLE_WINDOWS
-#include <qwindowsstyle.h>
-#endif
+#include <qproxystyle.h>
class tst_QComboBox : public QObject
{
@@ -2428,9 +2426,11 @@ void tst_QComboBox::subControlRectsWithOffset()
#ifndef QT_NO_STYLE_WINDOWS
void tst_QComboBox::task260974_menuItemRectangleForComboBoxPopup()
{
- class TestStyle: public QWindowsStyle
+ class TestStyle: public QProxyStyle
{
public:
+ TestStyle() : QProxyStyle(QStyleFactory::create("windows")) { }
+
int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *ret) const
{
if (hint == SH_ComboBox_Popup) return 1;