diff --git a/src/gui/qxtconfigwidget.cpp b/src/gui/qxtconfigwidget.cpp index 070b4c1b..356e41d9 100644 --- a/src/gui/qxtconfigwidget.cpp +++ b/src/gui/qxtconfigwidget.cpp @@ -698,10 +698,20 @@ void QxtConfigWidget::reject() } } +/*! + Returns the internal splitter used for layouting table and stacked widgets. + + \sa tableWidget() stackedWidget() +*/ +QSplitter* QxtConfigWidget::splitter() const +{ + return qxt_d().splitter; +} + /*! Returns the internal table widget used for showing page icons. - \sa stackedWidget() + \sa splitter() stackedWidget() */ QTableWidget* QxtConfigWidget::tableWidget() const { @@ -711,7 +721,7 @@ QTableWidget* QxtConfigWidget::tableWidget() const /*! Returns the internal stacked widget used for stacking pages. - \sa tableWidget() + \sa splitter() tableWidget() */ QStackedWidget* QxtConfigWidget::stackedWidget() const { diff --git a/src/gui/qxtconfigwidget.h b/src/gui/qxtconfigwidget.h index fd47b715..fbe17728 100644 --- a/src/gui/qxtconfigwidget.h +++ b/src/gui/qxtconfigwidget.h @@ -28,6 +28,7 @@ #include #include "qxtglobal.h" +QT_FORWARD_DECLARE_CLASS(QSplitter) QT_FORWARD_DECLARE_CLASS(QTableWidget) QT_FORWARD_DECLARE_CLASS(QStackedWidget) QT_FORWARD_DECLARE_CLASS(QDialogButtonBox) @@ -100,6 +101,7 @@ public Q_SLOTS: void currentIndexChanged(int index); protected: + QSplitter* splitter() const; QTableWidget* tableWidget() const; QStackedWidget* stackedWidget() const;