Docker: Reduce the size of the path box

... to leave more space for the autodetection log. There's usually
just one mounted items, ~6 (plus more with scrolling) is enough
for anybody..

Change-Id: I6557d632565c3f04874d5a20a7a51dfa72d2f7b4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2022-07-26 16:00:30 +02:00
parent 230b98ce76
commit 1100b25432

View File

@@ -102,6 +102,8 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
m_pathsListEdit->setToolTip(tr("Maps paths in this list one-to-one to the " m_pathsListEdit->setToolTip(tr("Maps paths in this list one-to-one to the "
"docker container.")); "docker container."));
m_pathsListEdit->setPathList(data.mounts); m_pathsListEdit->setPathList(data.mounts);
m_pathsListEdit->setMaximumHeight(100);
m_pathsListEdit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
auto markupMounts = [this, pathListLabel] { auto markupMounts = [this, pathListLabel] {
const bool isEmpty = m_pathsListEdit->pathList().isEmpty(); const bool isEmpty = m_pathsListEdit->pathList().isEmpty();