Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtwidgets/files/
Date: Thu, 14 Feb 2019 18:37:11
Message-Id: 1550169370.9517aac5911fee1affc31802dc293be19b997dcf.asturm@gentoo
1 commit: 9517aac5911fee1affc31802dc293be19b997dcf
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Feb 12 16:58:29 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 14 18:36:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9517aac5
7
8 dev-qt/qtwidgets: remove unused patch(es)
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/11036
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 ...5.9.6-QDockWidget-revert-restore-geometry.patch | 115 ---------------------
15 1 file changed, 115 deletions(-)
16
17 diff --git a/dev-qt/qtwidgets/files/qtwidgets-5.9.6-QDockWidget-revert-restore-geometry.patch b/dev-qt/qtwidgets/files/qtwidgets-5.9.6-QDockWidget-revert-restore-geometry.patch
18 deleted file mode 100644
19 index 3123fc3e50f..00000000000
20 --- a/dev-qt/qtwidgets/files/qtwidgets-5.9.6-QDockWidget-revert-restore-geometry.patch
21 +++ /dev/null
22 @@ -1,115 +0,0 @@
23 -From 57bc08dac38b02128031357976436fa0f68bd574 Mon Sep 17 00:00:00 2001
24 -From: Andreas Sturmlechner <asturm@g.o>
25 -Date: Wed, 20 Jun 2018 20:18:11 +0200
26 -Subject: [PATCH] Revert "Fix restoring geometry of dockwidget"
27 -
28 -See also: Regression caused by the fix for QTBUG-16252
29 -QTBUG: https://bugreports.qt.io/browse/QTBUG-68939
30 -
31 -This reverts commit cbfb6bda1d1ce3e169db6a0deb9bd901076653e4.
32 ----
33 - src/widgets/widgets/qdockarealayout.cpp | 20 ++------------------
34 - src/widgets/widgets/qdockarealayout_p.h | 1 -
35 - 2 files changed, 2 insertions(+), 19 deletions(-)
36 -
37 -diff --git a/src/widgets/widgets/qdockarealayout.cpp b/src/widgets/widgets/qdockarealayout.cpp
38 -index bef7214c75..21d1d4cb85 100644
39 ---- a/src/widgets/widgets/qdockarealayout.cpp
40 -+++ b/src/widgets/widgets/qdockarealayout.cpp
41 -@@ -226,7 +226,7 @@ static quintptr tabId(const QDockAreaLayoutItem &item)
42 - static const int zero = 0;
43 -
44 - QDockAreaLayoutInfo::QDockAreaLayoutInfo()
45 -- : restoredSizeHint(0,0), sep(&zero), dockPos(QInternal::LeftDock), o(Qt::Horizontal), mainWindow(0)
46 -+ : sep(&zero), dockPos(QInternal::LeftDock), o(Qt::Horizontal), mainWindow(0)
47 - #if QT_CONFIG(tabbar)
48 - , tabbed(false), tabBar(0), tabBarShape(QTabBar::RoundedSouth)
49 - #endif
50 -@@ -236,7 +236,7 @@ QDockAreaLayoutInfo::QDockAreaLayoutInfo()
51 - QDockAreaLayoutInfo::QDockAreaLayoutInfo(const int *_sep, QInternal::DockPosition _dockPos,
52 - Qt::Orientation _o, int tbshape,
53 - QMainWindow *window)
54 -- : restoredSizeHint(0,0), sep(_sep), dockPos(_dockPos), o(_o), mainWindow(window)
55 -+ : sep(_sep), dockPos(_dockPos), o(_o), mainWindow(window)
56 - #if QT_CONFIG(tabbar)
57 - , tabbed(false), tabBar(0), tabBarShape(static_cast<QTabBar::Shape>(tbshape))
58 - #endif
59 -@@ -407,9 +407,6 @@ QSize QDockAreaLayoutInfo::sizeHint() const
60 - if (isEmpty())
61 - return QSize(0, 0);
62 -
63 -- if (!restoredSizeHint.isNull())
64 -- return restoredSizeHint;
65 --
66 - int a = 0, b = 0;
67 - int min_perp = 0;
68 - int max_perp = QWIDGETSIZE_MAX;
69 -@@ -2376,7 +2373,6 @@ bool QDockAreaLayout::restoreState(QDataStream &stream, const QList<QDockWidget*
70 - stream >> size;
71 - if (!testing) {
72 - docks[pos].rect = QRect(QPoint(0, 0), size);
73 -- docks[pos].restoredSizeHint = size;
74 - }
75 - if (!docks[pos].restoreState(stream, dockwidgets, testing)) {
76 - stream.setStatus(QDataStream::ReadCorruptData);
77 -@@ -2678,8 +2674,6 @@ void QDockAreaLayout::getGrid(QVector<QLayoutStruct> *_ver_struct_list,
78 - center_rect.setBottom(rect.bottom() - docks[QInternal::BottomDock].rect.height() - sep);
79 -
80 - QSize left_hint = docks[QInternal::LeftDock].size();
81 -- if (!docks[QInternal::LeftDock].restoredSizeHint.isNull())
82 -- left_hint = docks[QInternal::LeftDock].restoredSizeHint;
83 - if (left_hint.isNull() || fallbackToSizeHints)
84 - left_hint = docks[QInternal::LeftDock].sizeHint();
85 - QSize left_min = docks[QInternal::LeftDock].minimumSize();
86 -@@ -2687,8 +2681,6 @@ void QDockAreaLayout::getGrid(QVector<QLayoutStruct> *_ver_struct_list,
87 - left_hint = left_hint.boundedTo(left_max).expandedTo(left_min);
88 -
89 - QSize right_hint = docks[QInternal::RightDock].size();
90 -- if (!docks[QInternal::RightDock].restoredSizeHint.isNull())
91 -- right_hint = docks[QInternal::RightDock].restoredSizeHint;
92 - if (right_hint.isNull() || fallbackToSizeHints)
93 - right_hint = docks[QInternal::RightDock].sizeHint();
94 - QSize right_min = docks[QInternal::RightDock].minimumSize();
95 -@@ -2696,8 +2688,6 @@ void QDockAreaLayout::getGrid(QVector<QLayoutStruct> *_ver_struct_list,
96 - right_hint = right_hint.boundedTo(right_max).expandedTo(right_min);
97 -
98 - QSize top_hint = docks[QInternal::TopDock].size();
99 -- if (!docks[QInternal::TopDock].restoredSizeHint.isNull())
100 -- top_hint = docks[QInternal::TopDock].restoredSizeHint;
101 - if (top_hint.isNull() || fallbackToSizeHints)
102 - top_hint = docks[QInternal::TopDock].sizeHint();
103 - QSize top_min = docks[QInternal::TopDock].minimumSize();
104 -@@ -2705,8 +2695,6 @@ void QDockAreaLayout::getGrid(QVector<QLayoutStruct> *_ver_struct_list,
105 - top_hint = top_hint.boundedTo(top_max).expandedTo(top_min);
106 -
107 - QSize bottom_hint = docks[QInternal::BottomDock].size();
108 -- if (!docks[QInternal::BottomDock].restoredSizeHint.isNull())
109 -- bottom_hint = docks[QInternal::BottomDock].restoredSizeHint;
110 - if (bottom_hint.isNull() || fallbackToSizeHints)
111 - bottom_hint = docks[QInternal::BottomDock].sizeHint();
112 - QSize bottom_min = docks[QInternal::BottomDock].minimumSize();
113 -@@ -3288,10 +3276,6 @@ int QDockAreaLayout::separatorMove(const QList<int> &separator, const QPoint &or
114 - int delta = 0;
115 - int index = separator.last();
116 -
117 -- for (int i = 0; i < QInternal::DockCount; ++i)
118 -- if (!docks[i].restoredSizeHint.isNull())
119 -- docks[i].restoredSizeHint = QSize(0, 0);
120 --
121 - if (separator.count() > 1) {
122 - QDockAreaLayoutInfo *info = this->info(separator);
123 - delta = pick(info->o, dest - origin);
124 -diff --git a/src/widgets/widgets/qdockarealayout_p.h b/src/widgets/widgets/qdockarealayout_p.h
125 -index ea397e00ac..82244c192e 100644
126 ---- a/src/widgets/widgets/qdockarealayout_p.h
127 -+++ b/src/widgets/widgets/qdockarealayout_p.h
128 -@@ -189,7 +189,6 @@ public:
129 -
130 - QMainWindowLayout *mainWindowLayout() const;
131 -
132 -- QSize restoredSizeHint;
133 - const int *sep;
134 - mutable QVector<QWidget*> separatorWidgets;
135 - QInternal::DockPosition dockPos;
136 ---
137 -2.17.1