Skip to content

Commit

Permalink
fix conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Sep 9, 2024
1 parent a27d129 commit 8448129
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GraphicsView/demo/Polygon/Polygon_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
2 changes: 2 additions & 0 deletions GraphicsView/include/CGAL/Qt/DemosMainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public Q_SLOTS:
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 8448129

Please sign in to comment.