diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-10-30 18:40:03 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-11-04 15:31:09 +0100 |
commit | 29c4913b02f3970070af2ef18340dfea0b8fa4c7 (patch) | |
tree | 035f4fab887d8e584f140bee77ad4081b88dc88d /src/widgets/widgets/qframe.h | |
parent | 7afc6d627743427f0ba765045a7f93e480fa7c19 (diff) |
QFrame: introduce initStyleOption (and use it)
For some reason lost in time QFrame was missing that method. Of course
that led to duplicated code and to subtle sizing miscalculations.
Task-number: QTBUG-29330
Change-Id: I81163f5def6661e01cb2ecc49c1169449a3e3758
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/widgets/qframe.h')
-rw-r--r-- | src/widgets/widgets/qframe.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/widgets/qframe.h b/src/widgets/widgets/qframe.h index ff04d70afc..70dd138ad1 100644 --- a/src/widgets/widgets/qframe.h +++ b/src/widgets/widgets/qframe.h @@ -40,6 +40,7 @@ QT_BEGIN_NAMESPACE class QFramePrivate; +class QStyleOptionFrame; class Q_WIDGETS_EXPORT QFrame : public QWidget { @@ -107,6 +108,7 @@ protected: protected: QFrame(QFramePrivate &dd, QWidget* parent = 0, Qt::WindowFlags f = 0); + void initStyleOption(QStyleOptionFrame *option) const; private: Q_DISABLE_COPY(QFrame) |