Commit 0aa702c7 authored by Eike Ziller's avatar Eike Ziller

Make Qt version info details behave like debugging helper details

Show only one panel with "details" at a time. The vertical space
is just not enough otherwise.

Change-Id: I602692166a1451ea5cb09cb9cc955934513355fe
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 96368496
......@@ -132,6 +132,8 @@ QtOptionsPageWidget::QtOptionsPageWidget(QWidget *parent)
m_infoBrowser->setTextInteractionFlags(Qt::TextBrowserInteraction);
connect(m_infoBrowser, SIGNAL(anchorClicked(QUrl)), this, SLOT(infoAnchorClicked(QUrl)));
m_ui->infoWidget->setWidget(m_infoBrowser);
connect(m_ui->infoWidget, SIGNAL(expanded(bool)),
this, SLOT(handleInfoWidgetExpanded(bool)));
m_ui->versionInfoWidget->setWidget(versionInfoWidget);
m_ui->versionInfoWidget->setState(Utils::DetailsWidget::NoSummary);
......@@ -336,9 +338,16 @@ void QtOptionsPageWidget::qtVersionsDumpUpdated(const Utils::FileName &qmakeComm
}
}
void QtOptionsPageWidget::handleInfoWidgetExpanded(bool expanded)
{
m_ui->versionInfoWidget->setVisible(!expanded);
m_ui->debuggingHelperWidget->setVisible(!expanded);
}
void QtOptionsPageWidget::handleDebuggingHelperExpanded(bool expanded)
{
m_ui->versionInfoWidget->setVisible(!expanded);
m_ui->infoWidget->setVisible(!expanded);
}
void QtOptionsPageWidget::infoAnchorClicked(const QUrl &url)
......
......@@ -121,6 +121,7 @@ private slots:
void selectedToolChainChanged(int index);
void qtVersionsDumpUpdated(const Utils::FileName &qmakeCommand);
void handleInfoWidgetExpanded(bool expanded);
void handleDebuggingHelperExpanded(bool expanded);
void infoAnchorClicked(const QUrl &);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment