Docker: Don't show auto detect controls

When a docker device is auto-detected (created by the installer)
we do not want to show the auto-detect controls.

Change-Id: I31f07f4fbb595bb52787e358a8467e46c862ee48
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-12-06 13:46:08 +01:00
parent ebe708c1a3
commit 89b81b6046

View File

@@ -203,20 +203,7 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
using namespace Layouting;
// clang-format off
Form {
repoLabel, m_repoLineEdit, br,
tagLabel, m_tagLineEdit, br,
idLabel, m_idLineEdit, br,
daemonStateLabel, m_daemonReset, m_daemonState, br,
m_runAsOutsideUser, br,
m_keepEntryPoint, br,
m_enableLldbFlags, br,
clangDLabel, m_clangdExecutable, br,
Column {
pathListLabel,
m_pathsListEdit,
}, br,
Column {
Column detectionControls {
Space(20),
Row {
Tr::tr("Search Locations:"),
@@ -231,7 +218,22 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
},
Tr::tr("Detection log:"),
logView
}
};
Form {
repoLabel, m_repoLineEdit, br,
tagLabel, m_tagLineEdit, br,
idLabel, m_idLineEdit, br,
daemonStateLabel, m_daemonReset, m_daemonState, br,
m_runAsOutsideUser, br,
m_keepEntryPoint, br,
m_enableLldbFlags, br,
clangDLabel, m_clangdExecutable, br,
Column {
pathListLabel,
m_pathsListEdit,
}, br,
(dockerDevice->isAutoDetected() ? Column {} : std::move(detectionControls)),
}.attachTo(this, WithoutMargins);
// clang-format on