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

Authored by asturmlechner on Apr 8 2018, 12:50 AM.

Details

Summary
/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;
    }

Diff Detail

Repository
R326 Kalzium
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
asturmlechner created this revision.Apr 8 2018, 12:50 AM
Restricted Application added a project: KDE Edu. · View Herald TranscriptApr 8 2018, 12:50 AM
asturmlechner requested review of this revision.Apr 8 2018, 12:50 AM
asturmlechner retitled this revision from Add missing header when building with AvogadroLibs support to Fix build with Qt5.11 (missing QGLFormat header w/ AvogadroLibs support).Apr 11 2018, 9:08 PM
asturmlechner edited the summary of this revision. (Show Details)
aacid accepted this revision.Apr 11 2018, 9:14 PM
This revision is now accepted and ready to land.Apr 11 2018, 9:14 PM
This revision was automatically updated to reflect the committed changes.