Commit db9abb60 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by J-P Nurmi
Browse files

QmlDesigner: using QStyleFactory to create windows style



Qt 5 will not expose QWindows style directly. We use
QStyleFactory instead.

Change-Id: I06717cb5ac5b13fbeb04ca3758fdf5df985d9102
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 8dc9fa25
......@@ -44,7 +44,8 @@
#include <QDebug>
#include <QApplication>
#include <QGraphicsOpacityEffect>
#include <QWindowsStyle>
#include <QStyleFactory>
#include <QScopedPointer>
#include <QTextEdit>
......@@ -55,14 +56,14 @@ class WindowsStyleSingleton
{
public:
static WindowsStyleSingleton* instance();
QStyle* style() {return &m_style; };
QStyle* style() { return m_style.data(); };
private:
static WindowsStyleSingleton *m_instance;
QWindowsStyle m_style;
QScopedPointer<QStyle> m_style;
WindowsStyleSingleton() {}
WindowsStyleSingleton() : m_style(QStyleFactory::create(QLatin1String("windows"))) {}
WindowsStyleSingleton( const WindowsStyleSingleton& );
class WindowsWatcher {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment