include Qt version in About dialog

This commit is contained in:
Axel Kohlmeyer
2023-10-04 15:13:22 -04:00
parent ac53cbb779
commit b0deb87188

View File

@ -1185,14 +1185,15 @@ void LammpsGui::view_variables()
void LammpsGui::about()
{
std::string version = "This is LAMMPS-GUI version " LAMMPS_GUI_VERSION;
version += " using Qt version " QT_VERSION_STR "\n";
if (lammps.has_plugin()) {
version += " - LAMMPS library loaded as plugin";
version += "LAMMPS library loaded as plugin";
if (!plugin_path.empty()) {
version += " from file ";
version += plugin_path;
}
} else {
version += " - LAMMPS library linked to executable";
version += "LAMMPS library linked to executable";
}
QString to_clipboard(version.c_str());