WorkingDirectoryAspect: Fix UI tab order

Change-Id: Ie70f582a1dcadb5f6d07a37f6ac06e5a4cd8d545
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-06-03 13:59:46 +02:00
parent e23ebfbd20
commit 7e82a674ae

View File

@@ -141,11 +141,6 @@ WorkingDirectoryAspect::WorkingDirectoryAspect()
void WorkingDirectoryAspect::addToConfigurationLayout(QFormLayout *layout) void WorkingDirectoryAspect::addToConfigurationLayout(QFormLayout *layout)
{ {
QTC_CHECK(!m_chooser); QTC_CHECK(!m_chooser);
m_resetButton = new QToolButton(layout->parentWidget());
m_resetButton->setToolTip(tr("Reset to Default"));
m_resetButton->setIcon(Utils::Icons::RESET.icon());
connect(m_resetButton.data(), &QAbstractButton::clicked, this, &WorkingDirectoryAspect::resetPath);
m_chooser = new PathChooser(layout->parentWidget()); m_chooser = new PathChooser(layout->parentWidget());
m_chooser->setHistoryCompleter(settingsKey()); m_chooser->setHistoryCompleter(settingsKey());
m_chooser->setExpectedKind(Utils::PathChooser::Directory); m_chooser->setExpectedKind(Utils::PathChooser::Directory);
@@ -158,6 +153,10 @@ void WorkingDirectoryAspect::addToConfigurationLayout(QFormLayout *layout)
m_resetButton->setEnabled(m_workingDirectory != m_defaultWorkingDirectory); m_resetButton->setEnabled(m_workingDirectory != m_defaultWorkingDirectory);
}); });
m_resetButton = new QToolButton(layout->parentWidget());
m_resetButton->setToolTip(tr("Reset to Default"));
m_resetButton->setIcon(Utils::Icons::RESET.icon());
connect(m_resetButton.data(), &QAbstractButton::clicked, this, &WorkingDirectoryAspect::resetPath);
m_resetButton->setEnabled(m_workingDirectory != m_defaultWorkingDirectory); m_resetButton->setEnabled(m_workingDirectory != m_defaultWorkingDirectory);
if (m_envAspect) { if (m_envAspect) {