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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to