summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qstackedlayout.h
diff options
context:
space:
mode:
authorDebao Zhang <dbzhang800@gmail.com>2012-03-02 15:42:35 -0800
committerQt by Nokia <qt-info@nokia.com>2012-03-05 07:54:44 +0100
commit07ae18f96e87a2db40ae014f28893f1080efa7ae (patch)
tree967b125d67a07a2a4f7ee38d0a227173a99d5ffa /src/widgets/kernel/qstackedlayout.h
parentfb8c95bac09910c4dfa476ab97c6206b2e94ee53 (diff)
Implements QStackedLayout's hfw-related methods.
QStackedLayout does not support height for width (simply because it does not reimplement heightForWidth() and hasHeightForWidth()). That is not possible to fix without breaking binary compatibility under Qt4, which use a modified version of QStackedLayout that reimplements the hfw-related functions as a workaround. Change-Id: I81c795f0c247a2e708292de35f0650384248c6cd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/widgets/kernel/qstackedlayout.h')
-rw-r--r--src/widgets/kernel/qstackedlayout.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/kernel/qstackedlayout.h b/src/widgets/kernel/qstackedlayout.h
index e54efa886e..fa77341c52 100644
--- a/src/widgets/kernel/qstackedlayout.h
+++ b/src/widgets/kernel/qstackedlayout.h
@@ -94,6 +94,8 @@ public:
QLayoutItem *itemAt(int) const;
QLayoutItem *takeAt(int);
void setGeometry(const QRect &rect);
+ bool hasHeightForWidth() const;
+ int heightForWidth(int width) const;
Q_SIGNALS:
void widgetRemoved(int index);