From kde-kimageshop Thu Jan 28 15:41:16 2010 From: Vera Lukman Date: Thu, 28 Jan 2010 15:41:16 +0000 To: kde-kimageshop Subject: Re: Pop up palette recent colour Message-Id: <68b2ba7e1001280741q777d6711rcb2932ee1ea0db39 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=126469332528728 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1889170706==" --===============1889170706== Content-Type: multipart/alternative; boundary=00504502bd9584b1b8047e3b59fa --00504502bd9584b1b8047e3b59fa Content-Type: text/plain; charset=ISO-8859-1 Great. I can use that. KisPopupPalette is a class inherited from QWidget, everything there is painted using QPainter. I wonder if it is possible to add KoTriangleColorSelector in KisPopupPalette. I have thought about putting the 2 widgets in a QLayout object, but I don't think it is possible to put KoTriangleColorSelector in the center of KisPopupPalette because I don't think we can put 2 widgets on top of each other in a QLayout. Another thing to consider is, if I want to enable easy access to something else using the pop up palette (eg. easy access to current brush settings), it will be hard to do if I have the colour selector on the pop up palette. Any thoughts? On Wed, Jan 27, 2010 at 11:05 PM, Cyrille Berger wrote: > On Thursday 28 January 2010, Vera Lukman wrote: > > Is QtColorTriangle in Qt standard library? > We have KoTriangleColorSelector in KOffice. > > -- > Cyrille Berger > _______________________________________________ > kimageshop mailing list > kimageshop@kde.org > https://mail.kde.org/mailman/listinfo/kimageshop > --00504502bd9584b1b8047e3b59fa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Great. I can use that.

KisPopupPalette is a class inheri= ted from QWidget, everything there is painted using QPainter. I wonder if i= t is possible to add KoTriangleColorSelector in KisPopupPalette. I have tho= ught about putting the 2 widgets in a QLayout object, but I don't think= it is possible to put KoTriangleColorSelector in the center of KisPopupPal= ette because I don't think we can put 2 widgets on top of each other in= a QLayout.=A0

Another thing to consider is, if I want to enable easy = access to something else using the pop up palette (eg. easy access to curre= nt brush settings), it will be hard to do if I have the colour selector on = the pop up palette. Any thoughts?

On Wed, Jan 27, 2010 at 11:05 PM, Cyrille Be= rger <cberger@c= berger.net> wrote:
On Thursday 28 January 2010, Vera Lukman wrote:
> Is QtColorTriangle in Qt standard library?
We have KoTriangleColorSelector in KOffice.

--
Cyrille Berger
__________________________________= _____________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop

--00504502bd9584b1b8047e3b59fa-- --===============1889170706== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --===============1889170706==--