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