Date: Thu, 29 Jul 2004 04:20:31 GMT From: David Johnson <david@usermode.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/68885: New port: x11-themes/phase An original Qt/KDE widget style Message-ID: <200407290420.i6T4KV2S065708@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/68885; it has been noted by GNATS. From: David Johnson <david@usermode.org> To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/68885: New port: x11-themes/phase An original Qt/KDE widget style Date: Wed, 28 Jul 2004 21:12:11 -0700 --Boundary-00=_bkHCBNSd5BHbZ5X Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Attached is a diff of the earlier shar that includes a patch to work with gcc-2.95 on -STABLE. --Boundary-00=_bkHCBNSd5BHbZ5X Content-Type: text/x-diff; charset="us-ascii"; name="phase.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="phase.diff" diff -ruN phase.orig/files/patch-phasestyle.cc phase/files/patch-phasestyle.cc --- phase.orig/files/patch-phasestyle.cc Wed Dec 31 16:00:00 1969 +++ phase/files/patch-phasestyle.cc Sun Jul 25 21:01:05 2004 @@ -0,0 +1,29 @@ +--- phasestyle/phasestyle.cc.orig Mon Jul 5 19:38:55 2004 ++++ phasestyle/phasestyle.cc Sun Jul 25 20:58:33 2004 +@@ -1085,7 +1085,7 @@ + case KPE_SliderHandle: { + const QSlider* slider = dynamic_cast<const QSlider*>(widget); + if (slider) { +- QColor color = (slider==hover_) ++ QColor color = ((QWidget*)slider==hover_) + ? group.button().light(contrast) + : group.button(); + if (slider->orientation() == Horizontal) { +@@ -1619,7 +1619,7 @@ + + sunken = (active == SC_ComboBoxArrow); + drawPhaseButton(painter, x, y, w, h, group, +- (combo==hover_) ++ ((QWidget*)combo==hover_) + ? group.button().light(contrast) + : group.button(), sunken); + +@@ -1774,7 +1774,7 @@ + if (reverse_) subrect.moveLeft(spin->upRect().left()); + drawPhaseBevel(painter, subrect.x(), subrect.y(), + subrect.width(), subrect.height(), group, +- (spin==hover_) ++ ((QWidget*)spin==hover_) + ? group.button().light(contrast) + : group.button(), false, false, false); + } --Boundary-00=_bkHCBNSd5BHbZ5X--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407290420.i6T4KV2S065708>