[PATCH] KLineEdit Context Menu

Thomas Zander zander at kde.org
Fri Jul 20 11:40:31 BST 2007


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 :)
-- 
Thomas Zander
-------------- 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/0de0cff6/attachment.sig>


More information about the kde-core-devel mailing list