[qet] qet/qet: [4732] Improve latest commit for MAC OS |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4732
Author: scorpio810
Date: 2016-10-04 12:37:02 +0200 (Tue, 04 Oct 2016)
Log Message:
-----------
Improve latest commit for MAC OS
Modified Paths:
--------------
trunk/sources/ElementsCollection/elementscollectionwidget.cpp
Modified: trunk/sources/ElementsCollection/elementscollectionwidget.cpp
===================================================================
--- trunk/sources/ElementsCollection/elementscollectionwidget.cpp 2016-10-04 00:54:13 UTC (rev 4731)
+++ trunk/sources/ElementsCollection/elementscollectionwidget.cpp 2016-10-04 10:37:02 UTC (rev 4732)
@@ -261,17 +261,17 @@
if (eci->type() == FileElementCollectionItem::Type)
-#ifdef Q_OS_WIN32
+#ifdef Q_OS_LINUX
+ QDesktopServices::openUrl(static_cast<FileElementCollectionItem*>(eci)->dirPath());
+#else
QDesktopServices::openUrl(QUrl("file:///" + static_cast<FileElementCollectionItem*>(eci)->dirPath()));
-#else
- QDesktopServices::openUrl(static_cast<FileElementCollectionItem*>(eci)->dirPath());
#endif
else if (eci->type() == XmlProjectElementCollectionItem::Type)
-#ifdef Q_OS_WIN32
+#ifdef Q_OS_LINUX
+ QDesktopServices::openUrl(static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir());
+#else
QDesktopServices::openUrl(QUrl("file:///" + static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir()));
-#else
- QDesktopServices::openUrl(static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir());
#endif
}