|
|
@ -6,6 +6,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
#include <QFileDialog>
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
QMainWindow(parent),
|
|
|
|
QMainWindow(parent),
|
|
|
@ -57,5 +59,8 @@ void MainWindow::openPlugin()
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionOpen_database_triggered()
|
|
|
|
void MainWindow::on_actionOpen_database_triggered()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Context::instance().openDb("/home/jony/db.db");
|
|
|
|
QFileDialog dialog(this);
|
|
|
|
|
|
|
|
dialog.setNameFilter(tr("Database Files (*.db)"));
|
|
|
|
|
|
|
|
dialog.setWindowTitle(tr("Open Database"));
|
|
|
|
|
|
|
|
Context::instance().openDb(dialog.getOpenFileName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|