diff src/gui/dialog/about.cc @ 367:8d45d892be88 default tip

*: instead of pugixml, use Qt XML features this means we have one extra Qt dependency though...
author Paper <paper@tflc.us>
date Sun, 17 Nov 2024 22:55:47 -0500
parents eac06513db86
children
line wrap: on
line diff
--- a/src/gui/dialog/about.cc	Sun Nov 17 19:56:01 2024 -0500
+++ b/src/gui/dialog/about.cc	Sun Nov 17 22:55:47 2024 -0500
@@ -5,10 +5,8 @@
 #include "core/strings.h"
 #include "gui/widgets/text.h"
 
-#include "pugixml.hpp"
-
 #include "utf8proc.h"
-
+#include <toml11/toml.hpp>
 #include <fmt/core.h>
 
 #include <QCoreApplication>
@@ -30,11 +28,10 @@
 }
 
 static constexpr semver::version fmt_version{FMT_VERSION / 10000, FMT_VERSION / 100 % 100, FMT_VERSION % 100};
-static constexpr semver::version pugixml_version{PUGIXML_VERSION / 1000 % 10, PUGIXML_VERSION / 10 % 100,
-                                                 PUGIXML_VERSION % 10};
 static constexpr semver::version json_version{NLOHMANN_JSON_VERSION_MAJOR, NLOHMANN_JSON_VERSION_MINOR,
                                               NLOHMANN_JSON_VERSION_PATCH};
 static constexpr semver::version semver_version{SEMVER_VERSION_MAJOR, SEMVER_VERSION_MINOR, SEMVER_VERSION_PATCH};
+static constexpr semver::version toml11_version{TOML11_VERSION_MAJOR, TOML11_VERSION_MINOR, TOML11_VERSION_PATCH};
 static constexpr semver::version fugue_icons_version{3, 5, 6};
 
 const char* get_curl_version() {
@@ -51,11 +48,11 @@
 	"<a href=\"https://p.yusukekamiyamane.com/\">Fugue Icons v{}</a>, "
 	"<a href=\"https://github.com/erengy/anitomy\">Anitomy</a>, "
 	"<a href=\"https://github.com/nlohmann/json\">JSON for Modern C++ v{}</a>, "
-	"<a href=\"https://pugixml.org/\">pugixml v{}</a>, "
 	"<a href=\"https://github.com/Neargye/semver\">semver v{}</a>, "
 	"<a href=\"http://juliastrings.github.io/utf8proc/\">utf8proc v{}</a>, "
 	"<a href=\"https://github.com/fmtlib/fmt\">fmt v{}</a>, "
-	"parts of <a href=\"https://github.com/erengy/anisthesia\">Anisthesia</a>"
+	"<a href=\"https://github.com/ToruNiina/toml11\">toml11 v{}</a>, "
+	"and parts of <a href=\"https://github.com/erengy/anisthesia\">Anisthesia</a>"
 	"</p>"
 	"<span><strong>Special thanks:</strong></span>"
     "<ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 15px; margin-right: 0px; -qt-list-indent:0;\">"
@@ -74,7 +71,7 @@
 
 	QVBoxLayout* layout = new QVBoxLayout(this);
 
-	std::string html = fmt::format(about_template, session.version.to_string(), get_curl_version(), fugue_icons_version.to_string(), json_version.to_string(), pugixml_version.to_string(), semver_version.to_string(), utf8proc_version(), fmt_version.to_string());
+	std::string html = fmt::format(about_template, session.version.to_string(), get_curl_version(), fugue_icons_version.to_string(), json_version.to_string(), semver_version.to_string(), utf8proc_version(), fmt_version.to_string(), toml11_version.to_string());
 
 	setBackgroundRole(QPalette::Base);