Bug 71529 - KMenu has wrong width when recently used apps != 0
Summary: KMenu has wrong width when recently used apps != 0
Status: RESOLVED DUPLICATE of bug 77545
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kstyle (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Karol Szwed
URL:
Keywords:
: 75514 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-31 02:01 UTC by Tobias Koenig
Modified: 2004-04-22 23:08 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Koenig 2003-12-31 02:01:31 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc3.3 
OS:          Linux

When you use Plastik with the current qt-copy snapshot (Qt 3.3) the KMenu in kicker is to small, so the arrows to the
submenus are missing and the submenus appears 10 pixels
away from the main menu. I guess something is wrong with
the sizeHint() calculation in the style...
Comment 1 Andreas Scherf 2004-01-20 23:20:28 UTC
Same for me for RC1. The KMenu seems to be cut off on the right side. And the
menues are 10 pixels too far away. Using qt3.3 snapshot from 13.01.2004 ...
Comment 2 Tobias Koenig 2004-01-21 07:06:24 UTC
Subject: 
Hi,

I can't reproduce this bug with current CVS HEAD and qt-copy anymore,
so it seems to be fixed during the last month.
Thank you!

Ciao,
Tobias
Comment 3 Andreas Scherf 2004-02-03 22:19:51 UTC
I've downloaded 3.2 (SuSE 9.0) rpms and i still have the problem.
Comment 4 Igge 2004-02-07 16:23:45 UTC
I have this problem, too. (KDE 3.2, qt 3.3.0, SuSE 9.0)

With the following trick the bug goes away:
Click with the right mouse button on Kicker, choose "Configure Panel". Then go to "Menus" and choose "Name (Description)" or "Description (Name)" instead of "Name only".
Comment 5 Maksim Orlovich 2004-02-07 17:58:22 UTC
#73237 is the same issue, still open, so don't worry about this one being closed

Comment 6 Tommi Tervo 2004-02-18 14:52:47 UTC
*** Bug 75514 has been marked as a duplicate of this bug. ***
Comment 7 Pär Ekholm 2004-04-19 18:26:52 UTC
Hi!

As of kde 3.2.2 and qt-copy 20040412 the issue is still there. Only thing to do is to set number of recently used applications to 0. Don´t know what it is though. Use stock redhat 9 and precompiled binaries from kde-redhat-project.
Comment 8 Andreas Scherf 2004-04-20 01:51:34 UTC
Reopened again with KDE3.2.2 didnt had the Problem with 3.2.1 !!
Comment 9 eli 2004-04-22 15:39:07 UTC
Ditto

FC1
KDE 3.2.2
QT 3.3.1

kde-redhat-redhat project
Comment 10 Rex Dieter 2004-04-22 16:10:42 UTC
Re-opening bug, pending further investigation.
Comment 11 Rex Dieter 2004-04-22 16:14:26 UTC
Confirmed, per comment #7 when # of recently used applications != 0

kde-3.2.2, qt-copy-20040412 (tested both Fedora Core 1, RedHat 7.3).
Comment 12 Tommi Tervo 2004-04-22 17:57:20 UTC
AFAIK Binner committed today pathces to qt-copy, which should fix this issue...
Comment 13 Pär Ekholm 2004-04-22 21:29:00 UTC
The issue is still there when upgrading to the suggested qt-copy 20040422. You must have recently used applications checked to 0 before changing styles then after change increase the number. And you could not change the number after that. If you do that the arrows disappear. Without these quickstart menu items it´s no problem. It´s really difficult to explain but it is not working at all. It´s working better than before though.(With qt-copy 20040412). I have tried nearly all styles and it is the same behaviour with all. 
Comment 14 Andreas Scherf 2004-04-22 23:05:36 UTC
Hello,
i looked at the kicker sources .. especially on service_mnu.cpp and k_mnu.cpp
the service_mnu is for displaying the mentioned recent apps entrys ..
now i have a question ..
const int idStart = 4242;
const int kRecentMenusOffset = 1001;
in kmenu the items actions and all programms are initialised with :
PopupMenuTitle(i18n("All Applications"), font()), -1 /* id */, 0); (ID == -1)
and in recent apps menu with:
PopupMenuTitle(s_RecentApps.caption(), font()), idStart + kRecentMenusOffset -1, 0); (ID == 4242+1001 -1 -> 5242)

My Question what about that Number ?? Anybody could give me an hint ...
Thanks
Comment 15 Stephan Binner 2004-04-22 23:08:20 UTC
Don't source in Kicker sources, the bug/behavior change is in Qt.

*** This bug has been marked as a duplicate of 77545 ***