Menu

#2 Column headings

Unstable (example)
closed
nobody
None
5
2015-06-05
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

  • Justin Clift

    Justin Clift - 2014-07-30

    Hi Kevin,

    Are you still interested in helping out with this? (we're on GitHub now, so much easier to work with)

    Regards and best wishes,

    Justin Clift

     
  • Justin Clift

    Justin Clift - 2015-06-05
    • status: open --> closed
    • Group: --> Unstable (example)
     

Log in to post a comment.