use QETApp::dataDir() instead of QStamdardPaths

This commit is contained in:
plc-user
2025-01-24 08:35:03 +01:00
parent ec7ba05ec1
commit d7ac2af4d6
2 changed files with 4 additions and 4 deletions

View File

@@ -17,11 +17,11 @@
*/ */
#include "dxftoelmt.h" #include "dxftoelmt.h"
#include "../ui/thirdpartybinaryinstalldialog.h" #include "../ui/thirdpartybinaryinstalldialog.h"
#include "../qetapp.h"
#include <QFile> #include <QFile>
#include <QProcess> #include <QProcess>
#include <QMessageBox> #include <QMessageBox>
#include <QStandardPaths>
/** /**
* @brief dxftoElmt * @brief dxftoElmt
@@ -71,7 +71,7 @@ QByteArray dxfToElmt(const QString &file_path)
QString dxf2ElmtDirPath() QString dxf2ElmtDirPath()
{ {
return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/binary"; return QETApp::dataDir() + "/binary";
} }
/** /**

View File

@@ -17,12 +17,12 @@
*/ */
#include "qet_elementscaler.h" #include "qet_elementscaler.h"
#include "../ui/thirdpartybinaryinstalldialog.h" #include "../ui/thirdpartybinaryinstalldialog.h"
#include "../qetapp.h"
#include <QFile> #include <QFile>
#include <QProcess> #include <QProcess>
#include <QInputDialog> #include <QInputDialog>
#include <QMessageBox> #include <QMessageBox>
#include <QStandardPaths>
/** /**
* @brief QET_ElementScaler * @brief QET_ElementScaler
@@ -113,7 +113,7 @@ QByteArray ElementScaler(const QString &file_path, QWidget *parent)
QString ElementScalerDirPath() QString ElementScalerDirPath()
{ {
return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/binary"; return QETApp::dataDir() + "/binary";
} }
/** /**