[PATCH] Custom colour list option in KColorCombo
David Jarvie
lists at astrojar.org.uk
Sat Apr 7 00:58:52 BST 2007
Here is a patch to add the facility to set a custom colour list in
KColorCombo. Calling setColors(const QList<QColor>&) sets a specified list of
colours in place of the standard list. If called with an empty list, it
reverts to the standard list. colors() returns the current list.
The new option is needed by KAlarm, but could well be useful for other
applications also.
I've also written a new test program for KColorCombo, also attached.
OK to commit on Monday?
--
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/kalarm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: col.diff
Type: text/x-diff
Size: 5321 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070407/d6bd7e55/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcolorcombotest.cpp
Type: text/x-c++src
Size: 4633 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070407/d6bd7e55/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcolorcombotest.h
Type: text/x-c++hdr
Size: 388 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070407/d6bd7e55/attachment.h>
More information about the kde-core-devel
mailing list