Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 1e922516 authored by Andreas Sturmlechner's avatar Andreas Sturmlechner Committed by Andreas Sturmlechner

Fix build with Qt5.11 (missing QGLFormat header w/ AvogadroLibs support)

/var/tmp/portage/kde-apps/kalzium-18.03.90/work/kalzium-18.03.90/src/kalzium.cpp: In member function ‘MoleculeDialog* Kalzium::slotMoleculeviewer()’:
/var/tmp/portage/kde-apps/kalzium-18.03.90/work/kalzium-18.03.90/src/kalzium.cpp:381:10: error: ‘QGLFormat’ has not been declared
     if (!QGLFormat::hasOpenGL()) {

QGLFormat is used in the following ifdef-block:
#if defined(HAVE_OPENBABEL2) && defined(HAVE_EIGEN) && defined(HAVE_AVOGADRO)

    if (!QGLFormat::hasOpenGL()) {
        QMessageBox::critical(Q_NULLPTR, i18n("Kalzium Error"), i18n("This system does not support OpenGL."));
        return NULL;

Reviewers: #kde_edu, aacid

Reviewed By: aacid

Tags: #kde_edu

Differential Revision:
parent ffe76bf8
......@@ -42,6 +42,7 @@
#if defined(HAVE_EIGEN) && defined(HAVE_AVOGADRO)
#include "tools/moleculeview.h"
#include <QGLFormat>
#include "tools/obconverter.h"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment