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

List:       kde-core-devel
Subject:    Re: Small problem with tearoff menues
From:       Holger Freyther <freyther () gmx ! net>
Date:       2002-01-22 9:26:37
[Download RAW message or body]

Am Dienstag, 22. Januar 2002 09:46 schrieb Henrik Johnson:
> I have an application in which I create the menu and add it to the
> menubar. After this I add a few more items to the menu, the problem is
> that the tearoff handle of the menu isn't at the end of the menu any
> more but in the middle of the menu (Where the end was when I added it to
> the menubar)
This a feature of qt. Currently you can not pin any item to a fixed position. 
Though when I added autoInsertTearOffHandles I made it possible to pin it at 
the button.
>. Also my windowlist menu is cleared everytime it is shown
> and that menu lacks the tearoff handle all together.
Just what you say. the windowListMenu does a clear() first which deletes your 
tearOffHandle
 Is there something
> I should do to update the tearoff handle or is this a bug in KDE?
Wait for a Qt which supports it.
Currently you could do this. Create your popups
and the connect to aboutToShow()
and in the slot you do
removeItem(tearOffId);
tearOffId = insertTearOffHandle();
this should make it wotk some how

Holger
>
> /Mauritz
> GlobeCom AB
[prev in list] [next in list] [prev in thread] [next in thread] 

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