Added type of column on second line in column headers of QueryResultModel.
This commit is contained in:
parent
c6dbe72170
commit
b5d800c87e
5 changed files with 26 additions and 13 deletions
|
|
@ -63,9 +63,11 @@ QueryTab::~QueryTab()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
void QueryTab::setConfig(const ConnectionConfig &config)
|
||||
void QueryTab::setConfig(const ConnectionConfig &config,
|
||||
std::shared_ptr<PgDatabaseCatalog> cat)
|
||||
{
|
||||
m_config = config;
|
||||
m_catalog = cat;
|
||||
m_win->QueueTask([this]() { startConnect(); });
|
||||
}
|
||||
|
||||
|
|
@ -454,7 +456,8 @@ void QueryTab::query_ready(Expected<std::shared_ptr<Pgsql::Result>> exp_res, qin
|
|||
//int n_rows = dbres->getRows();
|
||||
//QString rowcount_str = QString("rows: %1").arg(dbres->getRows());
|
||||
|
||||
auto result_model = std::make_shared<QueryResultModel>(nullptr , dbres);
|
||||
auto result_model = std::make_shared<QueryResultModel>(nullptr , dbres,
|
||||
m_catalog);
|
||||
TuplesResultWidget *trw = new TuplesResultWidget;
|
||||
trw->setResult(result_model, elapsedms);
|
||||
resultList.push_back(trw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue