forked from qt-creator/qt-creator
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:
@@ -203,20 +203,7 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
|
|||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
Form {
|
Column detectionControls {
|
||||||
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 {
|
|
||||||
Space(20),
|
Space(20),
|
||||||
Row {
|
Row {
|
||||||
Tr::tr("Search Locations:"),
|
Tr::tr("Search Locations:"),
|
||||||
@@ -231,7 +218,22 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
|
|||||||
},
|
},
|
||||||
Tr::tr("Detection log:"),
|
Tr::tr("Detection log:"),
|
||||||
logView
|
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);
|
}.attachTo(this, WithoutMargins);
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user