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,6 +203,23 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
|
|||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
Column detectionControls {
|
||||||
|
Space(20),
|
||||||
|
Row {
|
||||||
|
Tr::tr("Search Locations:"),
|
||||||
|
searchDirsComboBox,
|
||||||
|
searchDirsLineEdit
|
||||||
|
},
|
||||||
|
Row {
|
||||||
|
autoDetectButton,
|
||||||
|
undoAutoDetectButton,
|
||||||
|
listAutoDetectedButton,
|
||||||
|
st,
|
||||||
|
},
|
||||||
|
Tr::tr("Detection log:"),
|
||||||
|
logView
|
||||||
|
};
|
||||||
|
|
||||||
Form {
|
Form {
|
||||||
repoLabel, m_repoLineEdit, br,
|
repoLabel, m_repoLineEdit, br,
|
||||||
tagLabel, m_tagLineEdit, br,
|
tagLabel, m_tagLineEdit, br,
|
||||||
@@ -216,22 +233,7 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
|
|||||||
pathListLabel,
|
pathListLabel,
|
||||||
m_pathsListEdit,
|
m_pathsListEdit,
|
||||||
}, br,
|
}, br,
|
||||||
Column {
|
(dockerDevice->isAutoDetected() ? Column {} : std::move(detectionControls)),
|
||||||
Space(20),
|
|
||||||
Row {
|
|
||||||
Tr::tr("Search Locations:"),
|
|
||||||
searchDirsComboBox,
|
|
||||||
searchDirsLineEdit
|
|
||||||
},
|
|
||||||
Row {
|
|
||||||
autoDetectButton,
|
|
||||||
undoAutoDetectButton,
|
|
||||||
listAutoDetectedButton,
|
|
||||||
st,
|
|
||||||
},
|
|
||||||
Tr::tr("Detection log:"),
|
|
||||||
logView
|
|
||||||
}
|
|
||||||
}.attachTo(this, WithoutMargins);
|
}.attachTo(this, WithoutMargins);
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user