forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user