tst_QLayout: use QStyleFactory instead of QWindowsStyle

QWindowsStyle is soon to become an internal class.

Change-Id: I25ac344d349d07db94e2fbc9ef943e09c399f913
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
J-P Nurmi 2012-11-23 15:13:41 +01:00 committed by The Qt Project
parent cefc0551df
commit 50a22d8418

View File

@ -50,7 +50,7 @@
#include <qsizegrip.h> #include <qsizegrip.h>
#include <qlabel.h> #include <qlabel.h>
#include <QtWidgets/QFrame> #include <QtWidgets/QFrame>
#include <QtWidgets/QWindowsStyle> #include <QtWidgets/QStyleFactory>
#include <QtWidgets/QSizePolicy> #include <QtWidgets/QSizePolicy>
#include <QtWidgets/QComboBox> #include <QtWidgets/QComboBox>
#include <QPushButton> #include <QPushButton>
@ -124,7 +124,7 @@ void tst_QLayout::geometry()
{ {
// For QWindowsStyle we know that QWidgetItem::geometry() and QWidget::geometry() // For QWindowsStyle we know that QWidgetItem::geometry() and QWidget::geometry()
// should be the same. // should be the same.
QApplication::setStyle(new QWindowsStyle); QApplication::setStyle(QStyleFactory::create(QLatin1String("Windows")));
QWidget topLevel; QWidget topLevel;
QWidget w(&topLevel); QWidget w(&topLevel);
QVBoxLayout layout(&w); QVBoxLayout layout(&w);