diff --git a/avogadro/qtplugins/CMakeLists.txt b/avogadro/qtplugins/CMakeLists.txt index 4c158737f2..948a82dac6 100644 --- a/avogadro/qtplugins/CMakeLists.txt +++ b/avogadro/qtplugins/CMakeLists.txt @@ -110,7 +110,7 @@ add_subdirectory(copypaste) add_subdirectory(cp2kinput) add_subdirectory(crystal) add_subdirectory(customelements) -# add_subdirectory(dipole) +add_subdirectory(dipole) add_subdirectory(editor) add_subdirectory(fetchpdb) add_subdirectory(focus) @@ -131,9 +131,17 @@ add_subdirectory(networkdatabases) add_subdirectory(openbabel) add_subdirectory(openmminput) add_subdirectory(playertool) +if(USE_LIBARCHIVE) + add_subdirectory(plugindownloader) +endif() add_subdirectory(ply) add_subdirectory(povray) add_subdirectory(propertytables) +if(BUILD_GPL_PLUGINS AND QT_VERSION EQUAL 5) + # todo - update for Qt6 + # qtaimcurvature.h/cpp contains GPL licensed code: + add_subdirectory(qtaim) +endif() add_subdirectory(resetview) add_subdirectory(select) add_subdirectory(selectiontool) @@ -142,6 +150,9 @@ if(USE_SPGLIB) endif() add_subdirectory(surfaces) add_subdirectory(svg) +if(USE_LIBMSYM) + add_subdirectory(symmetry) +endif() add_subdirectory(templatetool) add_subdirectory(vibrations) add_subdirectory(vrml) @@ -164,14 +175,6 @@ add_subdirectory(quantuminput) add_subdirectory(scriptcharges) add_subdirectory(scriptfileformats) -if(USE_LIBARCHIVE) - add_subdirectory(plugindownloader) -endif() - -if(USE_LIBMSYM AND QT_VERSION EQUAL 5) - # QStyleOptionViewItemV4 is not in Qt6, needs investigation - add_subdirectory(symmetry) -endif() # The scene plugins add_subdirectory(ballandstick) @@ -187,12 +190,6 @@ if (USE_OPENGL) add_subdirectory(overlayaxes) endif() -# other optional plugins -if(BUILD_GPL_PLUGINS AND QT_VERSION EQUAL 5) - # qtaimcurvature.h/cpp contains GPL licensed code: - add_subdirectory(qtaim) -endif() - set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${original_library_output_dir}") # Add all of the static plugins to the initialization file. diff --git a/avogadro/qtplugins/symmetry/symmetryscene.cpp b/avogadro/qtplugins/symmetry/symmetryscene.cpp index 8634d5e6dd..b8d9948de4 100644 --- a/avogadro/qtplugins/symmetry/symmetryscene.cpp +++ b/avogadro/qtplugins/symmetry/symmetryscene.cpp @@ -19,6 +19,7 @@ #include #include +#include #include @@ -36,7 +37,8 @@ using Rendering::SphereGeometry; SymmetryScene::SymmetryScene(QObject* p) : QtGui::ScenePlugin(p), m_enabled(true) -{} +{ +} SymmetryScene::~SymmetryScene() {} @@ -145,4 +147,4 @@ void SymmetryScene::setEnabled(bool enable) { m_enabled = enable; } -} // namespace Avogadro +} // namespace Avogadro::QtPlugins diff --git a/avogadro/qtplugins/symmetry/symmetryutil.cpp b/avogadro/qtplugins/symmetry/symmetryutil.cpp index 7d3c698c95..ecbf90053d 100644 --- a/avogadro/qtplugins/symmetry/symmetryutil.cpp +++ b/avogadro/qtplugins/symmetry/symmetryutil.cpp @@ -33,7 +33,7 @@ QString pointGroupSymbol(const char* point_group) // check if we need an infinity symbol if (pointGroup[1] == '0') - pointGroup = pointGroup.replace(1, 1, QObject::trUtf8("\u221e")); + pointGroup = pointGroup.replace(1, 1, "\u221e"); // After first character, point group should subscript everything pointGroup.insert(1, ""); @@ -70,4 +70,4 @@ QString operationSymbol(const msym::msym_symmetry_operation_t* operation) return symbol; } -} // namespace Avogadro +} // namespace Avogadro::QtPlugins::SymmetryUtil