KClearableLineEdit
Aaron J. Seigo
aseigo at kde.org
Wed Aug 23 19:28:11 BST 2006
On Wednesday 23 August 2006 6:26, Jaroslaw Staniek wrote:
> Nice improvement. One note: what if I have already reimplemented KLineEdit
> (or want to add the 'clear' button to aneditable combo box or date/time
> edit?
if they use a KLineEdit or have the ability to have the QLineEdit they use set
(as qcombobox does) this shouldn't be a problem.
> class KClearableLineEdit : public KLineEdit, KClearableInterface
i don't see how this could be made an interface, to be honest. if you look at
the code it hooks into mouse and resize events and is pretty specific in
placement to how a lineedit is laid out. probably easier/saner to just add
the 30 or so lines of code necessary to each widget to make this happen.
--
Aaron J. Seigo
Undulate Your Wantonness
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060823/4d388972/attachment.sig>
More information about the kde-core-devel
mailing list