From 82d391410ef05b2cd55a698f39a20fd90fe81ed0 Mon Sep 17 00:00:00 2001 From: pino Date: Tue, 14 Aug 2007 14:44:34 +0000 Subject: [PATCH] make it compile again after some "clever" "krazy fixes" git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeaccessibility@700016 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmag/kmagselrect.cpp | 4 ++-- kmag/kmagselrect.h | 14 +++++++------- kmag/kmagzoomview.h | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/kmag/kmagselrect.cpp b/kmag/kmagselrect.cpp index 6866f22a..4ca8163a 100644 --- a/kmag/kmagselrect.cpp +++ b/kmag/kmagselrect.cpp @@ -247,9 +247,9 @@ KMagSelWin::~KMagSelWin() delete bottomRightCorner; } -void KMagSelWin::setSelRect (const QRect &selRect) +void KMagSelWin::setSelRect (const QRect &_selRect) { - selRect = selRect.normalize(); + QRect selRect = _selRect.normalized(); if (selRect.left() < 0) selRect.setLeft (0); diff --git a/kmag/kmagselrect.h b/kmag/kmagselrect.h index 1e53674b..8686ece2 100644 --- a/kmag/kmagselrect.h +++ b/kmag/kmagselrect.h @@ -63,17 +63,17 @@ public: virtual ~KMagSelWin(); - void setSelRect ( QRect selRect ); + void setSelRect ( const QRect & selRect ); QRect getSelRect (); public slots: void startResizing (); - void titleMoved ( QPoint offset ); - void topLeftResized ( QPoint offset ); - void topRightResized ( QPoint offset ); - void bottomLeftResized ( QPoint offset ); - void bottomRightResized ( QPoint offset ); + void titleMoved ( const QPoint & offset ); + void topLeftResized ( const QPoint & offset ); + void topRightResized ( const QPoint & offset ); + void bottomLeftResized ( const QPoint & offset ); + void bottomRightResized ( const QPoint & offset ); signals: @@ -140,7 +140,7 @@ protected: }; -void setTitleColors (QColor title, QColor text, QColor titleBtn); +void setTitleColors (const QColor & title, const QColor & text, const QColor & titleBtn); void setFrameSize (int size); #endif // KMAGSELRECT_H diff --git a/kmag/kmagzoomview.h b/kmag/kmagzoomview.h index 388b892f..88d06535 100644 --- a/kmag/kmagzoomview.h +++ b/kmag/kmagzoomview.h @@ -133,7 +133,7 @@ class KMagZoomView : public Q3ScrollView QPoint calcMousePos(bool updateMousePos=true); /// This function draws the mouse cursor - void paintMouseCursor(QPaintDevice *dev, QPoint mousePos); + void paintMouseCursor(QPaintDevice *dev, const QPoint & mousePos); /// Called when mouse click is detected void mousePressEvent (QMouseEvent *e); -- 2.11.4.GIT