Skip to content

adapted code to be compatible with libQGLViewer >= 2.7.0#297

Merged
ahornung merged 1 commit intoOctoMap:develfrom
expeditioneer:qglviewer
Jun 10, 2020
Merged

adapted code to be compatible with libQGLViewer >= 2.7.0#297
ahornung merged 1 commit intoOctoMap:develfrom
expeditioneer:qglviewer

Conversation

@expeditioneer
Copy link
Copy Markdown
Contributor

fixes #194

libQGLViewer 2.7.0 was released on 15 Jun 2017
QGLViewer extends QOpenGLWidget instead of the deprecated QGLWidget
see release 2.7.0

glPushAttrib(GL_ALL_ATTRIB_BITS);

glDisable(GL_COLOR_MATERIAL);
qglColor(foregroundColor());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line intentionally removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it it also from the deprecated QGLWidget Class, see https://doc.qt.io/qt-5/qglwidget.html#qglColor, and therefore no longer supported.


void ViewerGui::on_action_bg_black_triggered() {
m_glwidget->setBackgroundColor( QColor(0,0,0) );
m_glwidget->qglClearColor( m_glwidget->backgroundColor() );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this (and the similar changes below) is no longer necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upgateGL() deprecated for libQGLViewer

2 participants