fix deprecated warning QDir& QDir::operator=(const QString&)

This function is obsolete.

Use
QDir::setPath() instead
instead.
This commit is contained in:
Simon De Backer
2020-05-29 17:13:03 +02:00
committed by Laurent Trinques
parent 9ee911e484
commit 09006dc75f
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ ExportDialog::ExportDialog(QETProject *project, QWidget *parent) : QDialog(paren
// on utilise le repertoire du projet a exporter si possible // on utilise le repertoire du projet a exporter si possible
if (!project_ -> filePath().isEmpty()) { 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 // la taille minimale du dialogue est fixee

View File

@@ -72,7 +72,7 @@ void TitleBlockTemplateLogoManager::emitLogosChangedSignal() {
Initialize widgets composing the Logo manager Initialize widgets composing the Logo manager
*/ */
void TitleBlockTemplateLogoManager::initWidgets() { void TitleBlockTemplateLogoManager::initWidgets() {
open_dialog_dir_ = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); open_dialog_dir_.setPath(QStandardPaths::writableLocation(QStandardPaths::DesktopLocation));
setWindowTitle(tr("Gestionnaire de logos")); setWindowTitle(tr("Gestionnaire de logos"));
setWindowIcon(QET::Icons::InsertImage); setWindowIcon(QET::Icons::InsertImage);