[PATCH] KLineEdit Context Menu
Leandro Emanuel Lopez
lopezlean at gmail.com
Fri Jul 20 17:12:36 BST 2007
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 :)
--
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/f7ee8286/attachment.sig>
More information about the kde-core-devel
mailing list