Fix building on Mac.
--HG-- branch : develop
This commit is contained in:
parent
49529815fd
commit
38bb9c86b9
|
@ -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()
|
void MainWindow::ExportLayoutAs()
|
||||||
{
|
{
|
||||||
|
|
|
@ -114,6 +114,9 @@ private slots:
|
||||||
void ToolBarStyles();
|
void ToolBarStyles();
|
||||||
void ShowPaper(int index);
|
void ShowPaper(int index);
|
||||||
void Preferences();
|
void Preferences();
|
||||||
|
#if defined(Q_OS_MAC)
|
||||||
|
void CreateMeasurements();
|
||||||
|
#endif
|
||||||
void ExportLayoutAs();
|
void ExportLayoutAs();
|
||||||
|
|
||||||
void ArrowTool();
|
void ArrowTool();
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
|
|
||||||
class QUndoStack;
|
class QUndoStack;
|
||||||
class VAbstractApplication;// use in define
|
class VAbstractApplication;// use in define
|
||||||
class VAbstractPattern;
|
|
||||||
class VMainGraphicsView;
|
class VMainGraphicsView;
|
||||||
|
|
||||||
#if defined(qApp)
|
#if defined(qApp)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user