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:
parent
cefc0551df
commit
50a22d8418
@ -50,7 +50,7 @@
|
||||
#include <qsizegrip.h>
|
||||
#include <qlabel.h>
|
||||
#include <QtWidgets/QFrame>
|
||||
#include <QtWidgets/QWindowsStyle>
|
||||
#include <QtWidgets/QStyleFactory>
|
||||
#include <QtWidgets/QSizePolicy>
|
||||
#include <QtWidgets/QComboBox>
|
||||
#include <QPushButton>
|
||||
@ -124,7 +124,7 @@ void tst_QLayout::geometry()
|
||||
{
|
||||
// For QWindowsStyle we know that QWidgetItem::geometry() and QWidget::geometry()
|
||||
// should be the same.
|
||||
QApplication::setStyle(new QWindowsStyle);
|
||||
QApplication::setStyle(QStyleFactory::create(QLatin1String("Windows")));
|
||||
QWidget topLevel;
|
||||
QWidget w(&topLevel);
|
||||
QVBoxLayout layout(&w);
|
||||
|
Loading…
Reference in New Issue
Block a user