Skip to content

Commit

Permalink
Reset version of QStyleOption types to 1 for Qt 6
Browse files Browse the repository at this point in the history
Amends 7ff26c7 and
729f1ab.

Change-Id: I7d3cea42318faffc9dee48d51ae9f890bb1e7a56
Fixes: QTBUG-84221
Reviewed-by: Christian Ehrlicher <[email protected]>
  • Loading branch information
vohi committed Aug 16, 2020
1 parent e1536e3 commit 2f9a294
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/widgets/styles/qstyleoption.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtWidgets module of the Qt Toolkit.
Expand Down Expand Up @@ -127,7 +127,7 @@ class Q_WIDGETS_EXPORT QStyleOptionFrame : public QStyleOption
{
public:
enum StyleOptionType { Type = SO_Frame };
enum StyleOptionVersion { Version = 3 };
enum StyleOptionVersion { Version = 1 };

int lineWidth;
int midLineWidth;
Expand Down Expand Up @@ -155,7 +155,7 @@ class Q_WIDGETS_EXPORT QStyleOptionTabWidgetFrame : public QStyleOption
{
public:
enum StyleOptionType { Type = SO_TabWidgetFrame };
enum StyleOptionVersion { Version = 2 };
enum StyleOptionVersion { Version = 1 };

int lineWidth;
int midLineWidth;
Expand Down Expand Up @@ -183,7 +183,7 @@ class Q_WIDGETS_EXPORT QStyleOptionTabBarBase : public QStyleOption
{
public:
enum StyleOptionType { Type = SO_TabBarBase };
enum StyleOptionVersion { Version = 2 };
enum StyleOptionVersion { Version = 1 };

QTabBar::Shape shape;
QRect tabBarRect;
Expand Down Expand Up @@ -259,7 +259,7 @@ class Q_WIDGETS_EXPORT QStyleOptionTab : public QStyleOption
{
public:
enum StyleOptionType { Type = SO_Tab };
enum StyleOptionVersion { Version = 4 };
enum StyleOptionVersion { Version = 1 };

enum TabPosition { Beginning, Middle, End, OnlyOneTab };
enum SelectedPosition { NotAdjacent, NextIsSelected, PreviousIsSelected };
Expand Down Expand Up @@ -328,7 +328,7 @@ class Q_WIDGETS_EXPORT QStyleOptionProgressBar : public QStyleOption
{
public:
enum StyleOptionType { Type = SO_ProgressBar };
enum StyleOptionVersion { Version = 2 };
enum StyleOptionVersion { Version = 1 };

int minimum;
int maximum;
Expand Down Expand Up @@ -381,7 +381,7 @@ class Q_WIDGETS_EXPORT QStyleOptionDockWidget : public QStyleOption
{
public:
enum StyleOptionType { Type = SO_DockWidget };
enum StyleOptionVersion { Version = 2 };
enum StyleOptionVersion { Version = 1 };

QString title;
bool closable;
Expand All @@ -403,7 +403,7 @@ class Q_WIDGETS_EXPORT QStyleOptionViewItem : public QStyleOption
{
public:
enum StyleOptionType { Type = SO_ViewItem };
enum StyleOptionVersion { Version = 4 };
enum StyleOptionVersion { Version = 1 };

enum Position { Left, Right, Top, Bottom };

Expand Down Expand Up @@ -455,7 +455,7 @@ class Q_WIDGETS_EXPORT QStyleOptionToolBox : public QStyleOption
{
public:
enum StyleOptionType { Type = SO_ToolBox };
enum StyleOptionVersion { Version = 2 };
enum StyleOptionVersion { Version = 1 };

QString text;
QIcon icon;
Expand Down Expand Up @@ -591,7 +591,7 @@ class Q_WIDGETS_EXPORT QStyleOptionComboBox : public QStyleOptionComplex
{
public:
enum StyleOptionType { Type = SO_ComboBox };
enum StyleOptionVersion { Version = 2 };
enum StyleOptionVersion { Version = 1 };

bool editable;
QRect popupRect;
Expand Down

0 comments on commit 2f9a294

Please sign in to comment.