add top-level db items to ui

This commit is contained in:
mappu 2017-05-20 15:47:05 +12:00
parent 4b3fb783c4
commit e82d0a5dd2
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,11 @@ void MainWindow::on_actionOpen_database_triggered()
return;
}
QTreeWidgetItem *top = new QTreeWidgetItem();
top->setText(0, QFileInfo(file).completeBaseName());
top->setIcon(0, QIcon(":/rsrc/database.png"));
ui->bucketTree->addTopLevelItem(top);
// Free
delete bdb;
}

View File

@ -4,5 +4,6 @@
<file>rsrc/table.png</file>
<file>rsrc/information.png</file>
<file>rsrc/database_lightning.png</file>
<file>rsrc/database.png</file>
</qresource>
</RCC>