Added MacOS POV-Ray executable.

This commit is contained in:
Leonardo Zide 2018-01-15 10:48:34 -08:00
parent 611dace3b1
commit 1f03b3cda7
2 changed files with 6 additions and 4 deletions

View file

@ -117,8 +117,10 @@ macx {
document_icon.path = Contents/Resources document_icon.path = Contents/Resources
library.files += $$_PRO_FILE_PWD_/library.bin library.files += $$_PRO_FILE_PWD_/library.bin
library.path = Contents/Resources library.path = Contents/Resources
povray.files += $$_PRO_FILE_PWD_/tools/povray/povray
povray.path = Contents/MacOS
QMAKE_BUNDLE_DATA += document_icon library QMAKE_BUNDLE_DATA += document_icon library povray
DEFINES += LC_DISABLE_UPDATE_CHECK=1 DEFINES += LC_DISABLE_UPDATE_CHECK=1
} }

View file

@ -13,12 +13,12 @@
lcRenderDialog::lcRenderDialog(QWidget* Parent) lcRenderDialog::lcRenderDialog(QWidget* Parent)
: QDialog(Parent), : QDialog(Parent),
ui(new Ui::lcRenderDialog), ui(new Ui::lcRenderDialog)
mOutputBuffer(nullptr)
{ {
#ifndef QT_NO_PROCESS #ifndef QT_NO_PROCESS
mProcess = nullptr; mProcess = nullptr;
#endif #endif
mOutputBuffer = nullptr;
ui->setupUi(this); ui->setupUi(this);
@ -164,7 +164,7 @@ void lcRenderDialog::on_RenderButton_clicked()
#endif #endif
#ifdef Q_OS_MACOS #ifdef Q_OS_MACOS
POVRayPath = QDir::cleanPath(QCoreApplication::applicationDirPath() + QLatin1String("/povray/povconsole")); POVRayPath = QDir::cleanPath(QCoreApplication::applicationDirPath() + QLatin1String("/povray"));
#endif #endif
mProcess = new QProcess(this); mProcess = new QProcess(this);