toolbar icons and many more things
git-svn-id: http://svn.lsim.tuxzone.org/trunk@24 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
#include "graphicsview.h"
|
||||
#include <QGLWidget>
|
||||
//#include <QGLWidget>
|
||||
#include <QGraphicsItem>
|
||||
|
||||
|
||||
GraphicsView::GraphicsView(): QGraphicsView() {
|
||||
//setMinimumSize(900,700);
|
||||
//setDragMode(QGraphicsView::ScrollHandDrag);
|
||||
|
||||
//setRenderHint (QPainter::QPainter::Antialiasing,true);
|
||||
|
||||
|
||||
//scale(2,2);
|
||||
@@ -35,11 +35,11 @@ GraphicsView::GraphicsView(): QGraphicsView() {
|
||||
}
|
||||
|
||||
void GraphicsView::enableOGLViewport() {
|
||||
setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
|
||||
//setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
|
||||
}
|
||||
|
||||
void GraphicsView::disableOGLViewport() {
|
||||
setViewport(new QWidget(parentWidget()));
|
||||
//setViewport(new QWidget(parentWidget()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user