[qet] qet/qet: [4751] Fixes builds on non-Linux non-OSX Unix platforms, thank Tamas

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4751
Author:   scorpio810
Date:     2016-10-19 21:41:14 +0200 (Wed, 19 Oct 2016)
Log Message:
-----------
Fixes builds on non-Linux non-OSX Unix platforms, thank Tamas

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2016-10-19 16:39:50 UTC (rev 4750)
+++ trunk/sources/editor/qetelementeditor.cpp	2016-10-19 19:41:14 UTC (rev 4751)
@@ -1044,18 +1044,13 @@
  */
 void QETElementEditor::slot_openDxf (){
 
-#ifdef Q_OS_WIN32
+#if defined(Q_OS_WIN32)
 QString program = (QDir::homePath() + "/Application Data/qet/DXFtoQET.exe");
-#endif
-
-#ifdef Q_OS_MAC
+#elif defined(Q_OS_MAC)
 QString program = (QDir::homePath() + "/.qet/DXFtoQET.app");
-#endif
-
-#ifdef Q_OS_LINUX
+#else
 QString program = (QDir::homePath() + "/.qet/DXFtoQET");
 #endif
-
 QStringList arguments;
 QProcess *DXF = new QProcess(qApp);
 DXF->start(program,arguments);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/