mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4678 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1043,33 +1043,15 @@ void QETElementEditor::openRecentFile(const QString &filepath) {
|
||||
* @brief QETElementEditor::slot_openDxf
|
||||
*/
|
||||
void QETElementEditor::slot_openDxf (){
|
||||
bool success;
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
QString program = (QDir::homePath() + "/Application Data/qet/DXFtoQET.exe");
|
||||
#else
|
||||
QString program = (QDir::homePath() + "/.qet/DXFtoQET");
|
||||
#endif
|
||||
|
||||
QStringList arguments;
|
||||
QProcess *DXF = new QProcess(qApp);
|
||||
success = DXF->startDetached(program);
|
||||
if ( !success ) {
|
||||
QMessageBox::warning(0,
|
||||
"Error launching plugin DXF",
|
||||
"To install the plugin DXF\nVisit https://download.tuxfamily.org/qet/builds/dxf_to_elmt/\n"
|
||||
"\n"
|
||||
">> Install plugin on Linux\n"
|
||||
"\n"
|
||||
"cd ~/.qet/\n"
|
||||
"wget http://download.tuxfamily.org/qet/builds/dxf_to_elmt/linux_x86-64_qt5.5.1/DXFtoQET\n"
|
||||
"\n"
|
||||
"chmod +x DXFtoQET\n"
|
||||
"\n"
|
||||
"\n"
|
||||
">> Install plugin on Windows\n"
|
||||
"Download http://download.tuxfamily.org/qet/builds/dxf_to_elmt/windows_64/DXFtoQET.exe\n"
|
||||
"Move or past this exe to your C:\\Users\\username\\AppData\\Roaming\\qet\\ directory\n"
|
||||
);
|
||||
}
|
||||
DXF->start(program,arguments);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user