From 09006dc75faad25cddfab798cc544ec9a18bc92d Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Fri, 29 May 2020 17:13:03 +0200 Subject: [PATCH] fix deprecated warning QDir& QDir::operator=(const QString&) This function is obsolete. Use QDir::setPath() instead instead. --- sources/exportdialog.cpp | 2 +- sources/titleblock/templatelogomanager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/exportdialog.cpp b/sources/exportdialog.cpp index 4fa544196..f9fb0a38b 100644 --- a/sources/exportdialog.cpp +++ b/sources/exportdialog.cpp @@ -54,7 +54,7 @@ ExportDialog::ExportDialog(QETProject *project, QWidget *parent) : QDialog(paren // on utilise le repertoire du projet a exporter si possible if (!project_ -> filePath().isEmpty()) { - default_export_properties.destination_directory = project_ -> currentDir(); + default_export_properties.destination_directory.setPath(project_ -> currentDir()); } // la taille minimale du dialogue est fixee diff --git a/sources/titleblock/templatelogomanager.cpp b/sources/titleblock/templatelogomanager.cpp index ed43ec286..dd16e159c 100644 --- a/sources/titleblock/templatelogomanager.cpp +++ b/sources/titleblock/templatelogomanager.cpp @@ -72,7 +72,7 @@ void TitleBlockTemplateLogoManager::emitLogosChangedSignal() { Initialize widgets composing the Logo manager */ void TitleBlockTemplateLogoManager::initWidgets() { - open_dialog_dir_ = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); + open_dialog_dir_.setPath(QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); setWindowTitle(tr("Gestionnaire de logos")); setWindowIcon(QET::Icons::InsertImage);