Docker: Add DockerDevice and a simple run config

The "Docker Container" runconfig executes 'docker run <image>' without
further attributes, and "works" with docker's hello-world example image.

Change-Id: Ib9417d238ac0757db16be1fc21af40c81db02f05
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2021-03-29 09:11:36 +02:00
parent 162d551455
commit ef108d7a06
12 changed files with 834 additions and 9 deletions

View File

@@ -309,6 +309,11 @@ void BaseAspect::setEnabled(bool enabled)
}
}
bool BaseAspect::isReadOnly() const
{
return d->m_readOnly;
}
void BaseAspect::setReadOnly(bool readOnly)
{
d->m_readOnly = readOnly;
@@ -649,7 +654,7 @@ public:
if (m_uncheckedSemantics == StringAspect::UncheckedSemantics::Disabled)
w->setEnabled(enabled && aspect->isEnabled());
else
w->setReadOnly(!enabled);
w->setReadOnly(!enabled || aspect->isReadOnly());
}
};