warning fixes

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739904
This commit is contained in:
Seb Ruiz 2007-11-22 07:19:43 +00:00
parent d8961b351c
commit d6001be92a
4 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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)

View File

@ -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();

View File

@ -170,6 +170,7 @@ bool LineEdit::hasWidthForHeight() const
qreal LineEdit::widthForHeight(qreal h) const
{
Q_UNUSED(h);
return 0;
}