diff --git a/qbolt/mainwindow.cpp b/qbolt/mainwindow.cpp index 95a79ec..be9cfef 100644 --- a/qbolt/mainwindow.cpp +++ b/qbolt/mainwindow.cpp @@ -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; } diff --git a/qbolt/resources.qrc b/qbolt/resources.qrc index cdeb017..3cc2483 100644 --- a/qbolt/resources.qrc +++ b/qbolt/resources.qrc @@ -4,5 +4,6 @@ rsrc/table.png rsrc/information.png rsrc/database_lightning.png + rsrc/database.png