From b94481065d9b121f6eba195673a312f1521b345a Mon Sep 17 00:00:00 2001 From: Sune Vuorela Date: Wed, 9 Jul 2008 00:30:07 +0000 Subject: Add 0236-qtoolbararealayout-restore.diff to fix a regression in qt4.4. Patch from Trolltech. --- debian/changelog | 2 ++ .../patches/0236-qtoolbararealayout-restore.diff | 23 ++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 26 insertions(+) create mode 100644 debian/patches/0236-qtoolbararealayout-restore.diff diff --git a/debian/changelog b/debian/changelog index 59641dd..9f86b9a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ qt4-x11 (4.4.0-4~pre1) unstable; urgency=low of Mike Hommey in the gtk webkit package. * Add 0235-qdbus-dispatch-async-timeout.diff from qt copy. Acked in qt-copy by Thiago. + * Add 0236-qtoolbararealayout-restore.diff to fix a regression in qt4.4. + Patch from Trolltech. +++ Changes by Modestas Vainius: diff --git a/debian/patches/0236-qtoolbararealayout-restore.diff b/debian/patches/0236-qtoolbararealayout-restore.diff new file mode 100644 index 0000000..df6af36 --- /dev/null +++ b/debian/patches/0236-qtoolbararealayout-restore.diff @@ -0,0 +1,23 @@ +qt-bugs@ issue : N218280 +Trolltech task ID : 218280 +bugs.kde.org number : none +applied: yes +author: TT + +QMainWindow::restoreState doesn't layout toolbars properly, regression +from Qt-4.4 + +Index: src/gui/widgets/qtoolbararealayout.cpp +=================================================================== +--- src/gui/widgets/qtoolbararealayout.cpp (revision 829449) ++++ src/gui/widgets/qtoolbararealayout.cpp (working copy) +@@ -1323,7 +1323,8 @@ bool QToolBarAreaLayout::restoreState(QD + toolBar->setVisible(shown); + toolBar->d_func()->setWindowState(floating, true, rect); + +- item.extraSpace = item.size - pick(line.o, item.sizeHint()); ++ //if it is -1, it means we should use the default size ++ item.extraSpace = (item.size == -1) ? 0 : item.size - pick(line.o, item.sizeHint()); + + + line.toolBarItems.append(item); diff --git a/debian/patches/series b/debian/patches/series index 6d385f4..041747f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -21,6 +21,7 @@ 0233-fix-q3textbrowser-image.diff # debian patches +0236-qtoolbararealayout-restore.diff 0235-qdbus-dispatch-async-timeout.diff 01_qmake_for_debian.diff 02_launch_assistant-qt4.diff -- cgit v1.2.3