Mercurial > minori
comparison src/gui/dialog/about.cc @ 255:fe702c8f161f
*: whatever
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Wed, 07 Feb 2024 17:04:06 -0500 |
| parents | 4d461ef7d424 |
| children | 862d0d8619f6 |
comparison
equal
deleted
inserted
replaced
| 254:d14f8e0e40c3 | 255:fe702c8f161f |
|---|---|
| 18 template <typename T, size_t N> | 18 template <typename T, size_t N> |
| 19 constexpr size_t array_size(T (&)[N]) { | 19 constexpr size_t array_size(T (&)[N]) { |
| 20 return N; | 20 return N; |
| 21 } | 21 } |
| 22 | 22 |
| 23 /* Ahhh, my dumb little hack to get this to be constexpr :) */ | 23 static constexpr semver::version pugixml_version{PUGIXML_VERSION / 1000 % 10, PUGIXML_VERSION / 10 % 100, PUGIXML_VERSION % 10}; |
| 24 static constexpr const char pugixml_version[] = { | 24 static constexpr semver::version json_version{NLOHMANN_JSON_VERSION_MAJOR, NLOHMANN_JSON_VERSION_MINOR, NLOHMANN_JSON_VERSION_PATCH}; |
| 25 PUGIXML_VERSION / 1000 % 10 + '0', /* Major */ | 25 static constexpr semver::version semver_version{SEMVER_VERSION_MAJOR, SEMVER_VERSION_MINOR, SEMVER_VERSION_PATCH}; |
| 26 '.', | |
| 27 PUGIXML_VERSION / 100 % 10 + '0', /* Minor */ | |
| 28 PUGIXML_VERSION / 10 % 10 + '0', | |
| 29 '.', | |
| 30 PUGIXML_VERSION % 10 + '0', /* Patch */ | |
| 31 '\0' | |
| 32 }; | |
| 33 | 26 |
| 34 const char* get_curl_version() { | 27 const char* get_curl_version() { |
| 35 const curl_version_info_data* data = curl_version_info(CURLVERSION_NOW); | 28 const curl_version_info_data* data = curl_version_info(CURLVERSION_NOW); |
| 36 return data->version; | 29 return data->version; |
| 37 } | 30 } |
| 58 ", " | 51 ", " |
| 59 "<a href=\"https://p.yusukekamiyamane.com/\">Fugue Icons v3.5.6</a>" | 52 "<a href=\"https://p.yusukekamiyamane.com/\">Fugue Icons v3.5.6</a>" |
| 60 ", " | 53 ", " |
| 61 "<a href=\"https://github.com/erengy/anitomy\">Anitomy</a>" | 54 "<a href=\"https://github.com/erengy/anitomy\">Anitomy</a>" |
| 62 ", " | 55 ", " |
| 63 "<a href=\"https://github.com/nlohmann/json\">JSON for Modern C++ v" + QString::number(NLOHMANN_JSON_VERSION_MAJOR) + "." + | 56 "<a href=\"https://github.com/nlohmann/json\">JSON for Modern C++ v" + Strings::ToQString(json_version.to_string()) + "</a>" |
| 64 QString::number(NLOHMANN_JSON_VERSION_MINOR) + "." + | |
| 65 QString::number(NLOHMANN_JSON_VERSION_PATCH) + "</a>" | |
| 66 ", " | 57 ", " |
| 67 "<a href=\"https://pugixml.org/\">pugixml v" + pugixml_version + "</a>" | 58 "<a href=\"https://pugixml.org/\">pugixml v" + Strings::ToQString(pugixml_version.to_string()) + "</a>" |
| 68 ", " | 59 ", " |
| 69 "<a href=\"https://github.com/pulzed/mINI\">mINI v0.9.14</a>" | 60 "<a href=\"https://github.com/pulzed/mINI\">mINI v0.9.14</a>" |
| 61 ", " | |
| 62 "<a href=\"https://github.com/Neargye/semver\">semver v" + Strings::ToQString(semver_version.to_string()) + "</a>" | |
| 70 " </p>" | 63 " </p>" |
| 71 "<span>" | 64 "<span>" |
| 72 "<strong>" + tr("Special thanks:") + "</strong>" | 65 "<strong>" + tr("Special thanks:") + "</strong>" |
| 73 "</span>" | 66 "</span>" |
| 74 " <ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 15px; margin-right: 0px; -qt-list-indent:0;\">" | 67 " <ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 15px; margin-right: 0px; -qt-list-indent:0;\">" |
