From d6001be92a4ab4f4edd86389bd10688337805f79 Mon Sep 17 00:00:00 2001 From: Seb Ruiz Date: Thu, 22 Nov 2007 07:19:43 +0000 Subject: [PATCH] warning fixes svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739904 --- layouts/layoutitem.cpp | 2 ++ layouts/nodelayout.cpp | 2 ++ widgets/label.cpp | 1 + widgets/lineedit.cpp | 1 + 4 files changed, 6 insertions(+) diff --git a/layouts/layoutitem.cpp b/layouts/layoutitem.cpp index ec1fb121f..bcc2cc1a5 100644 --- a/layouts/layoutitem.cpp +++ b/layouts/layoutitem.cpp @@ -70,6 +70,7 @@ bool LayoutItem::hasHeightForWidth() const qreal LayoutItem::heightForWidth(qreal w) const { + Q_UNUSED (w); return 0.0; } @@ -80,6 +81,7 @@ bool LayoutItem::hasWidthForHeight() const qreal LayoutItem::widthForHeight(qreal h) const { + Q_UNUSED (h); return 0.0; } diff --git a/layouts/nodelayout.cpp b/layouts/nodelayout.cpp index cc2605bfe..93148b64e 100644 --- a/layouts/nodelayout.cpp +++ b/layouts/nodelayout.cpp @@ -81,6 +81,8 @@ public: QPointF calculatePosition(const NodeCoordinate & coo, const QRectF & parentGeometry) const { + Q_UNUSED( parentGeometry ); + return QPointF( calculateXPosition(coo, geometry), calculateYPosition(coo, geometry) diff --git a/widgets/label.cpp b/widgets/label.cpp index 64bbb027a..341240d33 100644 --- a/widgets/label.cpp +++ b/widgets/label.cpp @@ -45,6 +45,7 @@ bool Label::hasHeightForWidth() const qreal Label::heightForWidth(qreal w) const { + Q_UNUSED( w ); //FIXME: this looks a bit odd? QFontMetricsF m(d->textFont); //return m.boundingRect(QRectF(0, 0, w, 9999), d->alignment | Qt::TextWordWrap, d->text).height(); diff --git a/widgets/lineedit.cpp b/widgets/lineedit.cpp index 88e5fb686..b70231e2b 100644 --- a/widgets/lineedit.cpp +++ b/widgets/lineedit.cpp @@ -170,6 +170,7 @@ bool LineEdit::hasWidthForHeight() const qreal LineEdit::widthForHeight(qreal h) const { + Q_UNUSED(h); return 0; }