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)); |