[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: KDE/kdelibs/kstyles/plastik
From: Maks Orlovich <maksim () kde ! org>
Date: 2005-12-11 15:59:35
Message-ID: 200512111059.36006.maksim () kde ! org
[Download RAW message or body]
On Sunday 11 December 2005 09:38, André Wöbbeking wrote:
> SVN commit 487685 by woebbe:
>
> I like LineEdits with background and frame (taken from QCommonStyle).
You can't do that. The license is wrong.
>
> M +9 -1 plastik.cpp
>
>
> --- trunk/KDE/kdelibs/kstyles/plastik/plastik.cpp #487684:487685
> @@ -1441,7 +1441,15 @@
>
> case LineEdit::Panel:
> {
> - // TODO
> + if (const QStyleOptionFrame *panel =
> qstyleoption_cast<const QStyleOptionFrame*>(opt)) + {
> + const int lineWidth(panel->lineWidth);
> + p->fillRect(r.adjusted(lineWidth, lineWidth,
> -lineWidth, -lineWidth), +
> pal.brush(QPalette::Base));
> +
> + if (lineWidth > 0)
> + drawPrimitive(PE_FrameLineEdit, panel, p,
> widget); + }
> }
> }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic