#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
{
#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;