mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
Port xconfig to Qt5 - Use QFileDialog
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Thiago Macieira <thiago.macieira@intel.com> Signed-off-by: Michal Marek <mmarek@suse.com>
This commit is contained in:
parent
85eaf28a26
commit
bea00771f7
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue