From a717c047a307b4d579c5401c373c4de5c1a2671a Mon Sep 17 00:00:00 2001 From: Casper Boemann Date: Sun, 23 Sep 2007 14:30:37 +0000 Subject: [PATCH] respect colorsetting for window title svn path=/trunk/KDE/kdebase/workspace/; revision=715938 --- clients/oxygen/oxygenclient.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index bf0ed343a2..d0563b4491 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -64,14 +64,6 @@ void renderDot(QPainter *p, const QPointF &point, qreal diameter) p->drawEllipse(QRectF(point.x()-diameter/2, point.y()-diameter/2, diameter, diameter)); } -////////////////////////////////////////////////////////////////////////////// -// OxygenClient Class // -////////////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////////////// -// OxygenClient() -// --------------- -// Constructor OxygenClient::OxygenClient(KDecorationBridge *b, KDecorationFactory *f) : KCommonDecoration(b, f) { ; } @@ -211,11 +203,6 @@ KCommonDecorationButton *OxygenClient::createButton(::ButtonType type) } -////////////////////////////////////////////////////////////////////////////// -// paintEvent() -// ------------ -// Repaint the window - void OxygenClient::paintEvent(QPaintEvent *e) { Q_UNUSED(e) @@ -276,11 +263,10 @@ void OxygenClient::paintEvent(QPaintEvent *e) // draw title text painter.setFont(options()->font(isActive(), false)); - painter.setBrush(palette.windowText()); + painter.setPen(palette.windowText()); painter.drawText(titleLeft, titleTop, titleWidth, titleHeight, OxygenFactory::titleAlign() | Qt::AlignVCenter, caption()); - painter.setRenderHint(QPainter::Antialiasing); // shadows of the frame