Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 Column headings

open
nobody
None
5
2009-07-04
2009-07-04
No

Hi,

Can you please patch mainForm::executeQuery() [form1.ui.h] to include column headings when building the QListView widget?

<old>
//setup num of cols here for display grid
if (mustCreateColumns)
{
ncol = sqlite3_data_count(vm);
for (int e=0; e<ncol; e++)
queryResultListView->addColumn("");

mustCreateColumns = false;
}
</old>
<new>
//setup num of cols here for display grid
if (mustCreateColumns)
{
ncol = sqlite3_data_count(vm);
for (int e=0; e<ncol; e++)
QString columnName = sqlite3_column_name(vm, e);
queryResultListView->addColumn(columnName);

mustCreateColumns = false;
}
</new>

Discussion