Commit 8dc9fa25 authored by J-P Nurmi's avatar J-P Nurmi
Browse files

FancyTabWidget: use QStyleFactory to create windows style



Qt 5 will not expose QWindowsStyle, use QStyleFactory instead.

Change-Id: Id4ec0a4812cd8f8378ad1e493796c6110080c0ae
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent a9186a84
......@@ -37,7 +37,7 @@
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QMouseEvent>
#include <QWindowsStyle>
#include <QStyleFactory>
#include <QPainter>
#include <QSplitter>
#include <QStackedLayout>
......@@ -81,7 +81,7 @@ FancyTabBar::FancyTabBar(QWidget *parent)
m_hoverIndex = -1;
m_currentIndex = -1;
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
setStyle(new QWindowsStyle);
setStyle(QStyleFactory::create(QLatin1String("windows")));
setMinimumWidth(qMax(2 * m_rounding, 40));
setAttribute(Qt::WA_Hover, true);
setFocusPolicy(Qt::NoFocus);
......
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