[PATCH] KLineEdit Context Menu

Leandro Emanuel Lopez lopezlean at gmail.com
Fri Jul 20 19:18:27 BST 2007


El Viernes, 20 de Julio de 2007 13:12, Leandro Emanuel Lopez escribió:
> El Viernes, 20 de Julio de 2007 07:40, Thomas Zander escribió:
> > On Wednesday 18 July 2007 23:35:51 Leandro Emanuel Lopez wrote:
> > > > this is from the "most obscure use of the ?: operator" department ...
> > >
> > > Ok, i changed that in the new attached file
> >
> > What about using the form of
> >
> > QLineEdit::setContextMenuPolicy(
> > showMenu ? Qt::DefaultContextMenu : Qt::NoContextMenu)
> >
> > Which I think is the most common usage of that concept :)
>
> Thanks... this is the best way :)

Also, can I remove :  
Q_PROPERTY( bool contextMenuEnabled READ   isContextMenuEnabled WRITE 
setContextMenuEnabled ) 
from header klineedit.h file. 
Because isContextMenuEnabled and setContextMenuEnabled are deprecated.
?

Thanks.

-- 
Leandro Emanuel López
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070720/2270574d/attachment.sig>


More information about the kde-core-devel mailing list