fix conditional compilation

This commit is contained in:
Sébastien Loriot 2024-09-09 09:38:08 +02:00
parent a27d129698
commit 8448129a3a
5 changed files with 10 additions and 0 deletions

View File

@ -179,7 +179,9 @@ MainWindow::MainWindow()
this->setupOptionsMenu();
this->addAboutDemo(":/cgal/help/about_Polygon_2.html");
this->addAboutCGAL();
#if QT_SVG_LIB
this->setupExportSVG(action_Export_SVG, graphicsView);
#endif
this->addRecentFiles(this->menuFile, this->actionQuit);
connect(this, SIGNAL(openRecentFile(QString)),

View File

@ -339,7 +339,9 @@ MainWindow::MainWindow()
this->setupOptionsMenu();
this->addAboutDemo(":/cgal/help/about_Constrained_Delaunay_triangulation_2.html");
this->addAboutCGAL();
#if QT_SVG_LIB
this->setupExportSVG(this->actionExport_SVG, this->graphicsView);
#endif
this->addRecentFiles(this->menuFile, this->actionQuit);
connect(this, SIGNAL(openRecentFile(QString)),

View File

@ -179,7 +179,9 @@ MainWindow::MainWindow()
this->setupOptionsMenu();
this->addAboutDemo(":/cgal/help/about_Delaunay_triangulation_2.html");
this->addAboutCGAL();
#if QT_SVG_LIB
this->setupExportSVG(actionExport_SVG, graphicsView);
#endif
this->addRecentFiles(this->menuFile, this->actionQuit);
connect(this, SIGNAL(openRecentFile(QString)),

View File

@ -79,7 +79,9 @@ protected:
void setupOptionsMenu(QMenu* menu = nullptr);
void addAboutCGAL(QMenu* menu = nullptr);
void addAboutDemo(QString htmlResourceName, QMenu* menu = nullptr);
#if QT_SVG_LIB
void setupExportSVG(QAction*, QGraphicsView*);
#endif
void addRecentFiles(QMenu* menu, QAction* insertBefore = nullptr);

View File

@ -201,7 +201,9 @@ MainWindow::MainWindow()
this->setupOptionsMenu();
this->addAboutDemo(":/cgal/help/about_Polyline_simplification_2.html");
this->addAboutCGAL();
#if QT_SVG_LIB
this->setupExportSVG(action_Export_SVG, graphicsView);
#endif
this->addRecentFiles(this->menuFile, this->actionQuit);
connect(this, SIGNAL(openRecentFile(QString)), this, SLOT(open(QString)));