mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Improve latest commit for MAC OS
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4732 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -261,17 +261,17 @@ void ElementsCollectionWidget::openDir()
|
||||
|
||||
if (eci->type() == FileElementCollectionItem::Type)
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
QDesktopServices::openUrl(QUrl("file:///" + static_cast<FileElementCollectionItem*>(eci)->dirPath()));
|
||||
#else
|
||||
#ifdef Q_OS_LINUX
|
||||
QDesktopServices::openUrl(static_cast<FileElementCollectionItem*>(eci)->dirPath());
|
||||
#else
|
||||
QDesktopServices::openUrl(QUrl("file:///" + static_cast<FileElementCollectionItem*>(eci)->dirPath()));
|
||||
#endif
|
||||
else if (eci->type() == XmlProjectElementCollectionItem::Type)
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
QDesktopServices::openUrl(QUrl("file:///" + static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir()));
|
||||
#else
|
||||
#ifdef Q_OS_LINUX
|
||||
QDesktopServices::openUrl(static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir());
|
||||
#else
|
||||
QDesktopServices::openUrl(QUrl("file:///" + static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir()));
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user