diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2008-11-25 09:35:21 +0100 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2008-11-25 09:35:21 +0100 |
commit | 0f76cc1cc76fd5e21f8ba9a10f9fd3612bcd6d3f (patch) | |
tree | 1c6f3ef2c36b17996c7dfb994f457715c92a76bb /mainwindow.cpp | |
parent | 19948fe76e64495a8e479121670bb2c3e1171a8d (diff) | |
download | dbmodel-0f76cc1cc76fd5e21f8ba9a10f9fd3612bcd6d3f.tar.xz |
Use .dmf extension for files
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index fa8a295..409f683 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -166,7 +166,7 @@ MainWindow::deleteSelectedItems() void MainWindow::open() { - QString fileName = QFileDialog::getOpenFileName(this); + QString fileName = QFileDialog::getOpenFileName(this, QString(), QString(), "Database Model (*.dmf)"); if (!fileName.isNull()) { DatabaseModel *model = new DatabaseModel(this); model->load(fileName); @@ -189,7 +189,7 @@ MainWindow::save() void MainWindow::saveAs() { - QString fileName = QFileDialog::getSaveFileName(this, QString(), m_model->fileName()); + QString fileName = QFileDialog::getSaveFileName(this, QString(), m_model->fileName(), "Database Model (*.dmf)"); if (!fileName.isNull()) { m_model->save(fileName); } |