[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [pairs/frameworks] pairseditor: porting KFileDialog to QFileDialog
From: Marco Calignano <marco.calignano () gmail ! com>
Date: 2014-10-24 13:47:24
Message-ID: E1XhfDA-0001mb-Hq () scm ! kde ! org
[Download RAW message or body]
Git commit 906dbc7cd6743408de4ce1e215ac30e3aa53284d by Marco Calignano.
Committed on 23/10/2014 at 09:25.
Pushed by calignano into branch 'frameworks'.
porting KFileDialog to QFileDialog
M +5 -3 pairseditor/mainwindow.cpp
http://commits.kde.org/pairs/906dbc7cd6743408de4ce1e215ac30e3aa53284d
diff --git a/pairseditor/mainwindow.cpp b/pairseditor/mainwindow.cpp
index 804cc7d..e000c06 100644
--- a/pairseditor/mainwindow.cpp
+++ b/pairseditor/mainwindow.cpp
@@ -27,7 +27,7 @@
#include "thememodel.h"
#include "ui_mainwindowview.h"
#include "elementitem.h"
-#include <KFileDialog>
+#include <QFileDialog>
#include <KMessageBox>
#include <QtCore/QDebug>
#include <QtCore/QProcess>
@@ -150,7 +150,8 @@ void MainWindow::doSave()
if(m_file.isEmpty())
{
- m_file = KFileDialog::getSaveFileName(QUrl::fromLocalFile(QDir::currentPath()), \
"*.pairs.tar.bz2|" + i18n("Pairs Themes"), this, i18n("Save Pairs theme")); + \
m_file = QFileDialog::getSaveFileName(this, i18n("Save Pairs theme"), \
QDir::currentPath(), "*.pairs.tar.bz2|" + i18n("Pairs Themes")); + \
//(QUrl::fromLocalFile(QDir::currentPath()), "*.pairs.tar.bz2|" + i18n("Pairs \
Themes"), this, i18n("Save Pairs theme")); QFileInfo fi(m_file);
m_gameFile = m_tmpDir->absolutePath() + '/' + fi.baseName() + ".game";
if(m_file.isEmpty())
@@ -202,7 +203,8 @@ void MainWindow::doOpen()
{
if(!askToSave())
return;
- m_file = KFileDialog::getOpenFileName(QUrl::fromLocalFile(QDir::currentPath()), \
"*.pairs.tar.bz2|" + i18n("Pairs Themes"), this, i18n("Open Pairs theme")); + \
m_file = QFileDialog::getOpenFileName(this, i18n("Open Pairs theme"), \
QDir::currentPath(), "*.pairs.tar.bz2|" + i18n("Pairs Themes")); \
+//(QUrl::fromLocalFile(QDir::currentPath()), "*.pairs.tar.bz2|" + i18n("Pairs \
Themes"), this, i18n("Open Pairs theme")); if(!m_file.isEmpty())
{
QFileInfo pathInfo(m_file);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic