[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Patch for Plastik bug 69822
From: Sandro Giessl <ceebx () users ! sourceforge ! net>
Date: 2004-01-14 17:01:33
Message-ID: 200401141801.33853.ceebx () users ! sourceforge ! net
[Download RAW message or body]
Hi,
This small patch fixes bug 69822 ("Changing widget style make desktop
bar to small") by removing the implementation of CT_MenuBar and falling
back to the default which works fine.
I consider #69822 as grave because it makes MacOs-style menus sort of
unusable, ok commit?
Sandro
["plastik_69822.diff" (text/x-diff)]
? plastik_topmenu.diff
Index: plastik.cpp
===================================================================
RCS file: /home/kde/kdeartwork/styles/plastik/plastik.cpp,v
retrieving revision 1.28
diff -u -p -b -r1.28 plastik.cpp
--- plastik.cpp 4 Jan 2004 16:18:46 -0000 1.28
+++ plastik.cpp 14 Jan 2004 16:50:08 -0000
@@ -2828,19 +2828,6 @@ QSize PlastikStyle::sizeFromContents(Con
const QStyleOption &opt) const
{
switch (t) {
- case CT_MenuBar: {
- const QMenuBar *mb = (const QMenuBar *)widget;
- int w, h;
- {
- h = QFontInfo(mb->font()).pixelSize() + 4;
- w = 10;
- }
-
- return QSize(w, h);
-
- break;
- }
-
case CT_PopupMenuItem: {
if (!widget || opt.isDefault())
return s;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic