Commit bea00771 authored by Boris Barbulovski's avatar Boris Barbulovski Committed by Michal Marek

Port xconfig to Qt5 - Use QFileDialog

Signed-off-by: default avatarBoris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: default avatarThiago Macieira <thiago.macieira@intel.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent 85eaf28a
......@@ -11,7 +11,7 @@
#include <q3textbrowser.h>
#include <QAction>
#include <q3header.h>
#include <q3filedialog.h>
#include <QFileDialog>
#include <q3dragobject.h>
#include <q3popupmenu.h>
......@@ -1457,7 +1457,7 @@ ConfigMainWindow::ConfigMainWindow(void)
void ConfigMainWindow::loadConfig(void)
{
QString s = Q3FileDialog::getOpenFileName(conf_get_configname(), NULL, this);
QString s = QFileDialog::getOpenFileName(conf_get_configname(), NULL, this);
if (s.isNull())
return;
if (conf_read(QFile::encodeName(s)))
......@@ -1476,7 +1476,7 @@ bool ConfigMainWindow::saveConfig(void)
void ConfigMainWindow::saveConfigAs(void)
{
QString s = Q3FileDialog::getSaveFileName(conf_get_configname(), NULL, this);
QString s = QFileDialog::getSaveFileName(conf_get_configname(), NULL, this);
if (s.isNull())
return;
saveConfig();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment