[Kmymoney-devel] SVN commit 1086413
Fernando Vilas
fvilas at iname.com
Sun Feb 7 15:17:46 CET 2010
On Sunday 07 February 2010 04:25:14 Thomas Baumgart wrote:
> SVN commit 1086413 by tbaumgart:
>
> Renamed setHint() to setClickMessage()
> Replaced own logic with standard KLineEdit::setClickMessage()
>
[...]
>
> -void KMyMoneyCombo::setHint(const QString& hint) const
> +void KMyMoneyCombo::setClickMessage(const QString& hint) const
> {
> if (m_edit)
> - m_edit->setHint(hint);
> + m_edit->setClickMessage(hint);
> }
[...]
The function KLineEdit::setClickMessage is non-const, since it is (logically)
a mutating function. We should probably follow the same format. Other than
that, it looks like we save a lot of code this way.
--
Thanks,
Fernando Vilas
fvilas at iname.com
-------------- 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/kmymoney-devel/attachments/20100207/c9547a33/attachment.sig
More information about the KMyMoney-devel
mailing list