Changeset View
Changeset View
Standalone View
Standalone View
compoundviewer/kalziumglwidget.cpp
Show All 28 Lines | |||||
29 | 29 | | |||
30 | #include <config-kalzium.h> | 30 | #include <config-kalzium.h> | ||
31 | 31 | | |||
32 | KalziumGLWidget::KalziumGLWidget(QWidget *parent) | 32 | KalziumGLWidget::KalziumGLWidget(QWidget *parent) | ||
33 | : Avogadro::QtOpenGL::GLWidget(parent) | 33 | : Avogadro::QtOpenGL::GLWidget(parent) | ||
34 | { | 34 | { | ||
35 | // work around a bug in OpenBabel: the chemical data files parsing | 35 | // work around a bug in OpenBabel: the chemical data files parsing | ||
36 | // is dependent on the LC_NUMERIC locale. | 36 | // is dependent on the LC_NUMERIC locale. | ||
37 | m_lc_numeric = QByteArray(setlocale(LC_NUMERIC, 0)); | 37 | m_lc_numeric = QByteArray(setlocale(LC_NUMERIC, nullptr)); | ||
38 | setlocale(LC_NUMERIC, "C"); | 38 | setlocale(LC_NUMERIC, "C"); | ||
39 | 39 | | |||
40 | // Prevent What's this from intercepting right mouse clicks | 40 | // Prevent What's this from intercepting right mouse clicks | ||
41 | setContextMenuPolicy(Qt::PreventContextMenu); | 41 | setContextMenuPolicy(Qt::PreventContextMenu); | ||
42 | // Load the tools and set navigate as the default | 42 | // Load the tools and set navigate as the default | ||
43 | // first set the Avogadro plugin directory, | 43 | // first set the Avogadro plugin directory, | ||
44 | // avoiding overwriting an already set envvar | 44 | // avoiding overwriting an already set envvar | ||
45 | static bool s_pluginDirSet = false; | 45 | static bool s_pluginDirSet = false; | ||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |