Revamp ColorButton
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 27 Jul 2009 23:34:59 +0000 (01:34 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:25:05 +0000 (20:25 +0200)
commit2ca0005bfda1c2eb1bb4bcd6b0abe5382f0979f1
treed9a35d8e42ecad318d5235623f03cba6d5dba8a3
parentf6e4cd5bb3612a05933c9d985aa55041a47d5756
Revamp ColorButton

Rather than requiring parent widgets using this to connect all sorts of signals and show the
color selection dialog themselves, move this into ColorButton itself, making it a
self-sufficient widget. Also, we're now using the Qt property system, and emit a
colorChanged() signal.

Oh, and we inherit from QToolButton now, which seems to be a saner choice on MacOSX and also
allows for nicer layouts on all platforms. Yes, we'll try and improve the looks later on, right
now it's just a crude QPixmap overlaying the button.
src/uisupport/colorbutton.cpp
src/uisupport/colorbutton.h