KConfig XT: kcalc.kcfg, an example
Waldo Bastian
bastian at kde.org
Thu Oct 2 16:02:11 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 02 October 2003 15:11, Nadeem Hasan wrote:
> Quoting Waldo Bastian <bastian at kde.org>:
> > <entry name="NumberButtonsColor" type="QColor">
> > <desc>The color of number buttons.</desc>
> > <code>QColor defaultButtonColor =
> > kapp->palette().active().background();</ code>
> > <default code="true">defaultButtonColor</default>
> > </entry>
>
> The "QColor defaultButtonColor = " in <code></code> above looks redundant
> to me. This line can be constructed using the information already available
> elsewhere. Pardon me if I missed something obvious.
Yeah, if you have multiple defaults that are all the same they could be
factored out automatically, in theory. I'm not sure if that's worth the
effort though, this is just as easy IMHO.
Cheers,
Waldo
- --
bastian at kde.org -=|[ SUSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE/fD3zN4pvrENfboIRAuhKAKCnbobz3qfPxSs9l6XEbtC+FJ8AsgCgnpUB
rvKzMKrRVmySICi2pevupf8=
=pRxM
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list