Skip to content

Commit f8b75d6

Browse files
committed
fixed about dialog
1 parent 3d99b30 commit f8b75d6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ target_link_libraries(livetikz
5454
Poppler::Qt5
5555
)
5656

57+
file(STRINGS "VERSION" VERSION)
58+
set(CMAKE_CXX_FLAGS "-DAPPVERSION='\"${VERSION}\"'")
59+
60+
5761
########### install files ###############
5862
set(LIVETIKZ_DATA_INSTALL_DIR ${DATA_INSTALL_DIR}/livetikz)
5963
set(LIVETIKZ_TEMPLATES_INSTALL_DIR ${LIVETIKZ_DATA_INSTALL_DIR}/templates)

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.3

main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ int main(int argc, char *argv[]) {
1313
KAboutData aboutData(
1414
QStringLiteral("livetikz"),
1515
i18n("LiveTikZ"),
16-
QStringLiteral("0.3"),
16+
QStringLiteral(APPVERSION),
1717
i18n("A TikZ editor with live preview."),
18-
KAboutLicense::GPL,
18+
KAboutLicense::BSDL,
1919
i18n("(c) 2017-2020 Michael Schwarz"),
2020
"",
2121
"https://misc0110.net"
@@ -29,6 +29,7 @@ int main(int argc, char *argv[]) {
2929
aboutData.setupCommandLine(&parser);
3030
parser.process(app);
3131
aboutData.processCommandLine(&parser);
32+
KAboutData::setApplicationData(aboutData);
3233

3334
MainWindow *window = new MainWindow();
3435
window->show();

0 commit comments

Comments
 (0)