mirror of https://github.com/CGAL/cgal
Fix PCA demo for QGLViewer 2.7
This commit is contained in:
parent
82f39dadbf
commit
609819b579
|
|
@ -181,7 +181,11 @@ void MainWindow::on_actionCopy_snapshot_triggered()
|
|||
QClipboard *qb = QApplication::clipboard();
|
||||
m_pViewer->makeCurrent();
|
||||
m_pViewer->raise();
|
||||
#if QGLVIEWER_VERSION >= 0x020700
|
||||
QImage snapshot = m_pViewer->grabFramebuffer();
|
||||
#else
|
||||
QImage snapshot = m_pViewer->grabFrameBuffer(true);
|
||||
#endif
|
||||
qb->setImage(snapshot);
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef VIEWER_H
|
||||
#define VIEWER_H
|
||||
|
||||
#include <QMap>
|
||||
#include <QGLViewer/qglviewer.h>
|
||||
|
||||
// forward declarations
|
||||
|
|
|
|||
Loading…
Reference in New Issue