LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0047-fix-kmenu-width.diff of Package qt3 (Project openSUSE:Factory)

qt-bugs@ issue: N46882
bugs.kde.org number: 77545
applied: no
author: Stephan Binner <binner@kde.org>

Fix wrong K menu width for the case of enabled side pixmap and a menu title
(like "Recently Used Applications") being longer than every other entry.

Solution: Respect PanelKMenu::setMaximumSize() as up to Qt 3.2.3

Index: src/widgets/qpopupmenu.cpp
--- src/widgets/qpopupmenu.cpp
+++ src/widgets/qpopupmenu.cpp
@@ -2530,7 +2530,7 @@
     QPopupMenu* that = (QPopupMenu*) this;
     //We do not need a resize here, just the sizeHint..
-    return that->updateSize(FALSE, FALSE).expandedTo( QApplication::globalStrut() );
+    return that->updateSize(FALSE).expandedTo( QApplication::globalStrut() );