refs #239, some finetuning for runtime based components

* virtual method to be called for signal slot hook up
* comments
This commit is contained in:
Klaus Basan
2014-05-15 00:01:47 +02:00
parent 52b88ab24e
commit 05c3fe7e6e
2 changed files with 16 additions and 6 deletions

View File

@@ -27,6 +27,14 @@ namespace BlackGui
return this->m_runtime->getIContextAudio();
}
void CRuntimeBasedComponent::setRuntime(BlackCore::CRuntime *runtime, bool runtimeOwner)
{
Q_ASSERT(runtime);
this->m_runtime = runtime;
this->m_runtimeOwner = runtimeOwner;
this->runtimeHasBeenSet();
}
void CRuntimeBasedComponent::setRuntimeForComponents(BlackCore::CRuntime *runtime, QWidget *parent)
{
if (!parent) return;