diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9e4205c97..db546e9eb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -60,6 +60,7 @@ if(Quotient_VERSION_MINOR GREATER 6) target_compile_definitions(neochat PUBLIC QUOTIENT_07) target_sources(neochat PRIVATE pollevent.cpp pollhandler.cpp) else() + target_compile_definitions(neochat PUBLIC QUOTIENT_VERSION=\"${Quotient_VERSION}\") target_sources(neochat PRIVATE neochataccountregistry.cpp) endif() diff --git a/src/main.cpp b/src/main.cpp index 490c12e26..2fce7d7fe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,7 @@ #include #include +#include #include "actionshandler.h" #include "blurhashimageprovider.h" @@ -155,7 +156,14 @@ int main(int argc, char *argv[]) about.addComponent(QStringLiteral("libQuotient"), i18n("A Qt5 library to write cross-platform clients for Matrix"), - QString(), +#ifdef QUOTIENT_07 + i18nc(" (built against )", + "%1 (built against %2)", + Quotient::versionString(), + QStringLiteral(Quotient_VERSION_STRING)), +#else + QStringLiteral(QUOTIENT_VERSION), +#endif QStringLiteral("https://github.com/quotient-im/libquotient"), KAboutLicense::LGPL_V2_1);