[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-usability
Subject:    Re: Sorry about this...
From:       Fredrik =?iso-8859-1?q?H=F6glund?= <fredrik () kde ! org>
Date:       2002-10-13 22:45:45
[Download RAW message or body]

On Sunday 13 October 2002 22:04, John Firebaugh wrote:
> On Sunday 13 October 2002 12:44, Aaron J. Seigo wrote:
> > john firebaugh posted a patch that implements your suggestion for
> > mac-os-like menus (that's what you are refering to, right?).. i'm running
> > qt w/john's patch right now and it works great. the patch was posted to
> > this list and there were two replies to it.
>
> Here's an updated version that fixes a slight bug.
>
> -John

John, I think what this patch does is a great idea, but I have a problem
with the implementation.

As you can see QPopupMenu gets the submenu popup delay by calling
style().styleHint(QStyle::SH_PopupMenu_SubMenuPopupDelay, this).

The reason it does that is so that the widget style can specify the delay.
For example the Motif style has a 96 ms delay while the Windows style
has a 256 ms delay. On Windows I believe the style actually obtains this
value from the system registry, allowing Qt apps to honor the system
wide settings.

In KStyle we've taken advantage of this to make the delay configurable
for KDE styles. Try adding PopupMenuDelay = <num> to your
~/.qt/kstylerc file.

Your patch breaks these features.

Fredrik


_______________________________________________
kde-usability mailing list
kde-usability@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-usability
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic