[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kalzium/Applications/18.04] src: Fix build with Qt5.11 (missing QGLFormat header w/ AvogadroLibs su
From:       Andreas Sturmlechner <null () kde ! org>
Date:       2018-04-11 21:28:43
Message-ID: E1f6NIJ-00019G-Qe () code ! kde ! org
[Download RAW message or body]

Git commit 1e9225167b36cd1ad80b440b9bd44a39c41ed6d6 by Andreas Sturmlechner.
Committed on 11/04/2018 at 21:28.
Pushed by asturmlechner into branch 'Applications/18.04'.

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

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;
    }
```

Reviewers: #kde_edu, aacid

Reviewed By: aacid

Tags: #kde_edu

Differential Revision: https://phabricator.kde.org/D12038

M  +1    -0    src/kalzium.cpp

https://commits.kde.org/kalzium/1e9225167b36cd1ad80b440b9bd44a39c41ed6d6

diff --git a/src/kalzium.cpp b/src/kalzium.cpp
index d7c9b4c6..4636308c 100644
--- a/src/kalzium.cpp
+++ b/src/kalzium.cpp
@@ -42,6 +42,7 @@
 #ifdef HAVE_OPENBABEL2
 #if defined(HAVE_EIGEN) && defined(HAVE_AVOGADRO)
 #include "tools/moleculeview.h"
+#include <QGLFormat>
 #endif
 #include "tools/obconverter.h"
 #endif


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic