mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 07:43:57 +02:00
Only connect render config if dirty signal present
This commit is contained in:
parent
43844dd0be
commit
0b6cfbe50a
1 changed files with 7 additions and 1 deletions
|
@ -257,7 +257,13 @@ public:
|
|||
QConfigPointer config = _jobs.back().getConfiguration();
|
||||
config->setParent(_config.get());
|
||||
config->setObjectName(name.c_str());
|
||||
QObject::connect(config.get(), SIGNAL(dirty()), _config.get(), SLOT(refresh()));
|
||||
|
||||
// Connect dirty->refresh if defined
|
||||
static const char* DIRTY_SIGNAL = "dirty()";
|
||||
if (config->metaObject()->indexOfSignal(DIRTY_SIGNAL) != -1) {
|
||||
QObject::connect(config.get(), SIGNAL(dirty()), _config.get(), SLOT(refresh()));
|
||||
}
|
||||
|
||||
return _jobs.back().getOutput();
|
||||
}
|
||||
template <class T, class... A> const Varying addJob(std::string name, A&&... args) {
|
||||
|
|
Loading…
Reference in a new issue