Context menu partly hidden

Aaron J. Seigo aseigo at kde.org
Mon May 25 09:26:27 CEST 2009


On Sunday 24 May 2009, Marco Martin wrote:
> but the prolem is that with standard qwidgets you would have to dig in
> their structure, i.e accessing somehow the popup menu of a combobox or a
> text area and set the flag on that, you can iterate trough children of a
> qobject qut well, not sooo pretty :p

even worse are widgets like QTextEdit where the interesting children, in this 
case a context menu, is created and destroyed on demand and on the fly making 
intercepting it and setting flags on it properly annoying. unless Qt gets a 
way to mark a widget as "make all children not embedded" i foresee us having 
to subclass things like KTextEdit and reimplement QWidget::event, responding 
on ChildAdded events and using that subclass in Plasma::TextEdit (rinse, 
repeat for other widgets. :/ )

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090525/257b5d55/attachment.sig 


More information about the Plasma-devel mailing list