add top-level db items to ui
This commit is contained in:
parent
4b3fb783c4
commit
e82d0a5dd2
@ -36,6 +36,11 @@ void MainWindow::on_actionOpen_database_triggered()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QTreeWidgetItem *top = new QTreeWidgetItem();
|
||||||
|
top->setText(0, QFileInfo(file).completeBaseName());
|
||||||
|
top->setIcon(0, QIcon(":/rsrc/database.png"));
|
||||||
|
ui->bucketTree->addTopLevelItem(top);
|
||||||
|
|
||||||
// Free
|
// Free
|
||||||
delete bdb;
|
delete bdb;
|
||||||
}
|
}
|
||||||
|
@ -4,5 +4,6 @@
|
|||||||
<file>rsrc/table.png</file>
|
<file>rsrc/table.png</file>
|
||||||
<file>rsrc/information.png</file>
|
<file>rsrc/information.png</file>
|
||||||
<file>rsrc/database_lightning.png</file>
|
<file>rsrc/database_lightning.png</file>
|
||||||
|
<file>rsrc/database.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Loading…
Reference in New Issue
Block a user