From kde-commits Sun Dec 11 14:38:11 2005 From: =?utf-8?q?Andr=C3=A9=20W=C3=B6bbeking?= Date: Sun, 11 Dec 2005 14:38:11 +0000 To: kde-commits Subject: KDE/kdelibs/kstyles/plastik Message-Id: <1134311891.632353.28654.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113431190318765 SVN commit 487685 by woebbe: I like LineEdits with background and frame (taken from QCommonStyle). 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(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); + } } }