mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
use QETApp::dataDir() instead of QStamdardPaths
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user