From 34427cb289b65146999a17b5f283f48bdc99d822 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 10 Sep 2003 17:58:07 +0000 Subject: [PATCH] compile svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=250061 --- clients/plastik/plastikclient.cpp | 16 ++++++++-------- clients/plastik/plastikclient.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/clients/plastik/plastikclient.cpp b/clients/plastik/plastikclient.cpp index a3967eaccb..f1785561d8 100644 --- a/clients/plastik/plastikclient.cpp +++ b/clients/plastik/plastikclient.cpp @@ -834,14 +834,14 @@ void PlastikClient::update_captionBuffer() if (!PlastikHandler::initialized()) return; const uint maxCaptionLength = 300; // truncate captions longer than this! - QString caption(caption() ); - if (caption.length() > maxCaptionLength) { - caption.truncate(maxCaptionLength); - caption.append(" [...]"); + QString c(caption() ); + if (c.length() > maxCaptionLength) { + c.truncate(maxCaptionLength); + c.append(" [...]"); } QFontMetrics fm(s_titleFont); - int captionWidth = fm.width(caption); + int captionWidth = fm.width(c); QPixmap textPixmap; QPainter painter; @@ -854,7 +854,7 @@ void PlastikClient::update_captionBuffer() painter.begin(&textPixmap); painter.setFont(s_titleFont); painter.setPen(white); - painter.drawText(textPixmap.rect(), AlignCenter, caption ); + painter.drawText(textPixmap.rect(), AlignCenter, c ); painter.end(); } @@ -872,7 +872,7 @@ void PlastikClient::update_captionBuffer() } painter.setFont(s_titleFont); painter.setPen(PlastikHandler::getColor(TitleFont,true)); - painter.drawText(aCaptionBuffer->rect(), AlignCenter, caption ); + painter.drawText(aCaptionBuffer->rect(), AlignCenter, c ); painter.end(); @@ -886,7 +886,7 @@ void PlastikClient::update_captionBuffer() } painter.setFont(s_titleFont); painter.setPen(PlastikHandler::getColor(TitleFont,false)); - painter.drawText(iCaptionBuffer->rect(), AlignCenter, caption ); + painter.drawText(iCaptionBuffer->rect(), AlignCenter, c ); painter.end(); captionBufferDirty = false; diff --git a/clients/plastik/plastikclient.h b/clients/plastik/plastikclient.h index e3605e9058..980fa7b381 100644 --- a/clients/plastik/plastikclient.h +++ b/clients/plastik/plastikclient.h @@ -79,7 +79,7 @@ private: QPixmap *aCaptionBuffer, *iCaptionBuffer; void update_captionBuffer(); - QPixmap *aTitleBarTile, *iTitleBarTile, *aTitleBarTopTile, *iTitleBarTopTile;; + QPixmap *aTitleBarTile, *iTitleBarTile, *aTitleBarTopTile, *iTitleBarTopTile; bool pixmaps_created; void create_pixmaps(); void delete_pixmaps();