Use width-for-height Layout Management.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692753
This commit is contained in:
parent
4f778d6e2d
commit
bdb1418dbb
@ -66,12 +66,12 @@ QSizeF HBoxLayout::maximumSize() const
|
||||
return QSizeF();
|
||||
}
|
||||
|
||||
bool HBoxLayout::hasHeightForWidth() const
|
||||
bool HBoxLayout::hasWidthForHeight() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
qreal HBoxLayout::heightForWidth(qreal w) const
|
||||
qreal HBoxLayout::widthForHeight(qreal w) const
|
||||
{
|
||||
return qreal();
|
||||
}
|
||||
|
@ -55,8 +55,8 @@ class PLASMA_EXPORT HBoxLayout : public Layout
|
||||
QSizeF minimumSize() const;
|
||||
QSizeF maximumSize() const;
|
||||
|
||||
bool hasHeightForWidth() const;
|
||||
qreal heightForWidth(qreal w) const;
|
||||
bool hasWidthForHeight() const;
|
||||
qreal widthForHeight(qreal w) const;
|
||||
|
||||
QRectF geometry() const;
|
||||
void setGeometry(const QRectF& geometry);
|
||||
|
Loading…
Reference in New Issue
Block a user