[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Menu key doesn't work
From: André Wöbbeking <Woebbeking () onlinehome ! de>
Date: 2003-05-27 22:06:08
[Download RAW message or body]
On Saturday 24 May 2003 16:48, André Wöbbeking wrote:
> I'm using KDE and Qt from CVS HEAD. If I press the Menu key (i.e in
> konqueror) no context menu is opened. Does anyone know why?
Ok, Trolltech changed the inline ctor of QContextMenuEvent which is used in
qapplication_x11.cpp:
@@ -400,7 +400,7 @@ class Q_EXPORT QContextMenuEvent : publi
public:
enum Reason { Mouse, Keyboard, Other };
QContextMenuEvent( Reason reason, const QPoint &pos, const QPoint &globalPos, int state )
- : QEvent( ContextMenu ), p( pos ), gp( globalPos ), accpt( FALSE ), consum(FALSE),
+ : QEvent( ContextMenu ), p( pos ), gp( globalPos ), accpt( TRUE ), consum( TRUE ),
reas( reason ), s((ushort)state) {}
QContextMenuEvent( Reason reason, const QPoint &pos, int state );
the result is that the menu key is not propagated anymore and KListView
can't emit the signal contextMenu().
BTW: In qapplication.cpp in line 2422
if ( res || cevent->isConsumed() || w->testWFlags( WNoMousePropagation ) )
the propagation of the event can be disabled by the window flag
WNoMousePropagation. Is this correct for Key_Menu?
@ KMail:
You use the signal QListView::contextMenuRequested() so you ignore the
KDE settings for the menu shortcut.
Cheers,
André
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic