Add RightPaneWidget::widget()

Not used here, but can be interesting for 3rdparties, makes the API
symmetric and doesn't hurt.

Change-Id: Ia497dd485ad6a325fe27955ad440d466b7d2c803
Fixes: QTCREATORBUG-22174
Reviewed-by: Shujaat Ali Khan <shujaat.eager@gmail.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Eike Ziller
2019-03-21 14:10:15 +01:00
parent 15f6ba38b6
commit 0de5156588
2 changed files with 6 additions and 0 deletions

View File

@@ -153,6 +153,11 @@ void RightPaneWidget::setWidget(QWidget *widget)
} }
} }
QWidget *RightPaneWidget::widget() const
{
return m_widget;
}
int RightPaneWidget::storedWidth() int RightPaneWidget::storedWidth()
{ {
return m_width; return m_width;

View File

@@ -72,6 +72,7 @@ public:
static RightPaneWidget *instance(); static RightPaneWidget *instance();
void setWidget(QWidget *widget); void setWidget(QWidget *widget);
QWidget *widget() const;
int storedWidth(); int storedWidth();