Ejemplo n.º 1
0
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);
}
Ejemplo n.º 2
0
/** \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);
}