From kde-core-devel Tue Apr 13 06:23:04 2010 From: "Johannes Christenson" Date: Tue, 13 Apr 2010 06:23:04 +0000 To: kde-core-devel Subject: Re: Review Request: Add support for AlphaChannel to KColorDialog Message-Id: <20100413062304.12903.74181 () localhost> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=127117934416138 ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviewboard.kde.org/r/3566/#review4996 ----------------------------------------------------------- I can't see any reason to treat the alpha channel different from other channels? - Johannes On 2010-04-11 20:15:26, Christoph Feck wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviewboard.kde.org/r/3566/ > ----------------------------------------------------------- > > (Updated 2010-04-11 20:15:26) > > > Review request for Gwenview, kdelibs and usability. > > > Summary > ------- > > Add an "alphaChannelEnabled" property to KColorDialog to support QColorDialog::ShowAlphaChannel. > Requires the patch from http://reviewboard.kde.org/r/3565 to show the alpha gradient. > > Please comment on: > * name/description of newly added methods in KColorDialog > * visible "Alpha" label ("Opacity"?) > * placement of widgets (yes, Alpha label should be aligned to RGB labels, but how?) > > > Diffs > ----- > > /trunk/KDE/kdebase/workspace/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp 1113711 > /trunk/KDE/kdelibs/kdeui/colors/kcolordialog.h 1113786 > /trunk/KDE/kdelibs/kdeui/colors/kcolordialog.cpp 1113786 > > Diff: http://reviewboard.kde.org/r/3566/diff > > > Testing > ------- > > I used this to test integration with QColorDialog: > > #include > #include > #include > > int main(int argc, char *argv[]) > { > QApplication app(argc, argv); > QColor color = QColorDialog::getColor(QColor(255, 0, 0, 100), 0, "Select ARGB Color", > QColorDialog::ShowAlphaChannel); > qDebug() << color; > } > > > Screenshots > ----------- > > KColorDialog with enabled AlphaChannel > http://reviewboard.kde.org/r/3566/s/354/ > > > Thanks, > > Christoph > >