From 744c6dfe874c47d1b96b148f13bbce6765d672d4 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Fri, 8 Jul 2016 10:40:26 +0300 Subject: [PATCH] dataSourceManager connects queryTextChanged(QString,QString)) after loading query collection --- limereport/lrdatasourcemanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/limereport/lrdatasourcemanager.cpp b/limereport/lrdatasourcemanager.cpp index 9cfa82e..0c07121 100644 --- a/limereport/lrdatasourcemanager.cpp +++ b/limereport/lrdatasourcemanager.cpp @@ -957,12 +957,16 @@ void DataSourceManager::collectionLoadFinished(const QString &collectionName) if (collectionName.compare("queries",Qt::CaseInsensitive)==0){ foreach(QueryDesc* query,m_queries){ + connect(query, SIGNAL(queryTextChanged(QString,QString)), + this, SLOT(slotQueryTextChanged(QString,QString))); putHolder(query->queryName(),new QueryHolder(query->queryText(), query->connectionName(), this)); } } if (collectionName.compare("subqueries",Qt::CaseInsensitive)==0){ foreach(SubQueryDesc* query,m_subqueries){ + connect(query, SIGNAL(queryTextChanged(QString,QString)), + this, SLOT(slotQueryTextChanged(QString,QString))); putHolder(query->queryName(),new SubQueryHolder(query->queryText(), query->connectionName(), query->master(), this)); } }