From 0f76cc1cc76fd5e21f8ba9a10f9fd3612bcd6d3f Mon Sep 17 00:00:00 2001 From: Lukáš Lalinský Date: Tue, 25 Nov 2008 09:35:21 +0100 Subject: Use .dmf extension for files --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mainwindow.cpp') 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); } -- cgit v1.2.3-70-g09d2