Skip to content

Commit

Permalink
Fixed #74 QxtConfigWidget - Access to the QSplitter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Jul 18, 2010
1 parent f8fe8a0 commit d04fcf0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/gui/qxtconfigwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions src/gui/qxtconfigwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <QDialog>
#include "qxtglobal.h"

QT_FORWARD_DECLARE_CLASS(QSplitter)
QT_FORWARD_DECLARE_CLASS(QTableWidget)
QT_FORWARD_DECLARE_CLASS(QStackedWidget)
QT_FORWARD_DECLARE_CLASS(QDialogButtonBox)
Expand Down Expand Up @@ -100,6 +101,7 @@ public Q_SLOTS:
void currentIndexChanged(int index);

protected:
QSplitter* splitter() const;
QTableWidget* tableWidget() const;
QStackedWidget* stackedWidget() const;

Expand Down

0 comments on commit d04fcf0

Please sign in to comment.