Fix building on Mac.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-04-01 19:23:20 +03:00
parent 49529815fd
commit 38bb9c86b9
3 changed files with 18 additions and 1 deletions

View file

@ -4260,6 +4260,21 @@ void MainWindow::Preferences()
}
}
//---------------------------------------------------------------------------------------------------------------------
void MainWindow::CreateMeasurements()
{
const QString tape = qApp->TapeFilePath();
const QString workingDirectory = QFileInfo(tape).absoluteDir().absolutePath();
QStringList arguments;
if (isNoScaling)
{
arguments.append(QLatin1String("--") + LONG_OPTION_NO_HDPI_SCALING);
}
QProcess::startDetached(tape, arguments, workingDirectory);
}
//---------------------------------------------------------------------------------------------------------------------
void MainWindow::ExportLayoutAs()
{

View file

@ -114,6 +114,9 @@ private slots:
void ToolBarStyles();
void ShowPaper(int index);
void Preferences();
#if defined(Q_OS_MAC)
void CreateMeasurements();
#endif
void ExportLayoutAs();
void ArrowTool();

View file

@ -49,7 +49,6 @@
class QUndoStack;
class VAbstractApplication;// use in define
class VAbstractPattern;
class VMainGraphicsView;
#if defined(qApp)