src/gl/partrenderer.cpp

changeset 246
86a35ce38773
parent 238
b8ad4c12d937
child 250
2837b549e616
equal deleted inserted replaced
245:a41ccc6924e3 246:86a35ce38773
45 documents{documents}, 45 documents{documents},
46 colorTable{colorTable} 46 colorTable{colorTable}
47 { 47 {
48 this->setMouseTracking(true); 48 this->setMouseTracking(true);
49 this->setFocusPolicy(Qt::WheelFocus); 49 this->setFocusPolicy(Qt::WheelFocus);
50 this->setCursor(Qt::CrossCursor);
50 QSurfaceFormat surfaceFormat; 51 QSurfaceFormat surfaceFormat;
51 surfaceFormat.setSamples(8); 52 surfaceFormat.setSamples(8);
52 this->setFormat(surfaceFormat); 53 this->setFormat(surfaceFormat);
53 connect(&this->logger, &QOpenGLDebugLogger::messageLogged, [&](const QOpenGLDebugMessage& glmessage){ 54 connect(&this->logger, &QOpenGLDebugLogger::messageLogged, [&](const QOpenGLDebugMessage& glmessage){
54 Q_EMIT this->message(debugMessageToString(glmessage)); 55 Q_EMIT this->message(debugMessageToString(glmessage));

mercurial