warning fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739904
This commit is contained in:
parent
d8961b351c
commit
d6001be92a
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -170,6 +170,7 @@ bool LineEdit::hasWidthForHeight() const
|
||||
|
||||
qreal LineEdit::widthForHeight(qreal h) const
|
||||
{
|
||||
Q_UNUSED(h);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user