Show version number of libquotient
This commit is contained in:
@@ -60,6 +60,7 @@ if(Quotient_VERSION_MINOR GREATER 6)
|
|||||||
target_compile_definitions(neochat PUBLIC QUOTIENT_07)
|
target_compile_definitions(neochat PUBLIC QUOTIENT_07)
|
||||||
target_sources(neochat PRIVATE pollevent.cpp pollhandler.cpp)
|
target_sources(neochat PRIVATE pollevent.cpp pollhandler.cpp)
|
||||||
else()
|
else()
|
||||||
|
target_compile_definitions(neochat PUBLIC QUOTIENT_VERSION=\"${Quotient_VERSION}\")
|
||||||
target_sources(neochat PRIVATE neochataccountregistry.cpp)
|
target_sources(neochat PRIVATE neochataccountregistry.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
10
src/main.cpp
10
src/main.cpp
@@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
#include <networkaccessmanager.h>
|
#include <networkaccessmanager.h>
|
||||||
#include <room.h>
|
#include <room.h>
|
||||||
|
#include <util.h>
|
||||||
|
|
||||||
#include "actionshandler.h"
|
#include "actionshandler.h"
|
||||||
#include "blurhashimageprovider.h"
|
#include "blurhashimageprovider.h"
|
||||||
@@ -155,7 +156,14 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
about.addComponent(QStringLiteral("libQuotient"),
|
about.addComponent(QStringLiteral("libQuotient"),
|
||||||
i18n("A Qt5 library to write cross-platform clients for Matrix"),
|
i18n("A Qt5 library to write cross-platform clients for Matrix"),
|
||||||
QString(),
|
#ifdef QUOTIENT_07
|
||||||
|
i18nc("<version number> (built against <possibly different version number>)",
|
||||||
|
"%1 (built against %2)",
|
||||||
|
Quotient::versionString(),
|
||||||
|
QStringLiteral(Quotient_VERSION_STRING)),
|
||||||
|
#else
|
||||||
|
QStringLiteral(QUOTIENT_VERSION),
|
||||||
|
#endif
|
||||||
QStringLiteral("https://github.com/quotient-im/libquotient"),
|
QStringLiteral("https://github.com/quotient-im/libquotient"),
|
||||||
KAboutLicense::LGPL_V2_1);
|
KAboutLicense::LGPL_V2_1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user