summaryrefslogtreecommitdiff
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2008-11-25 09:35:21 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2008-11-25 09:35:21 +0100
commit0f76cc1cc76fd5e21f8ba9a10f9fd3612bcd6d3f (patch)
tree1c6f3ef2c36b17996c7dfb994f457715c92a76bb /mainwindow.cpp
parent19948fe76e64495a8e479121670bb2c3e1171a8d (diff)
downloaddbmodel-0f76cc1cc76fd5e21f8ba9a10f9fd3612bcd6d3f.tar.xz
Use .dmf extension for files
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp4
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);
}