void ScriptToolbox::populateXTreeWidget(QWidget * tree, QObject * pSql, bool pUseAltId) { XTreeWidget *xt = qobject_cast<XTreeWidget*>(tree); ScriptQuery *sq = qobject_cast<ScriptQuery*>(pSql); if(xt) xt->populate(sq->query(), pUseAltId); }
/** \brief Populate an XTreeWidget with the results of the given query. \deprecated Use XTreeWidget::populate directly. */ void ScriptToolbox::populateXTreeWidget(QWidget * tree, XSqlQuery pSql, bool pUseAltId) { XTreeWidget *xt = qobject_cast<XTreeWidget*>(tree); if(xt) xt->populate(pSql, pUseAltId); }