summaryrefslogtreecommitdiff
path: root/fuzbal.pro
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2021-09-01 17:13:51 +0200
committerTimotej Lazar <timotej.lazar@araneo.si>2021-09-16 20:33:05 +0200
commitcb76fedcbc8e419e2b945baa56ac3f986a9e79a3 (patch)
treee29be52e4372d3d6e5bfe7056d7af1e1cc0ae2bc /fuzbal.pro
parente9b70c585c6bf1fa68a594a8755d90c017e6260c (diff)
Implement event model in C++
Filtering events in JS is too slow with >20,000 events. This moves the event data model into C++.
Diffstat (limited to 'fuzbal.pro')
-rw-r--r--fuzbal.pro10
1 files changed, 7 insertions, 3 deletions
diff --git a/fuzbal.pro b/fuzbal.pro
index 56538ec..59be94b 100644
--- a/fuzbal.pro
+++ b/fuzbal.pro
@@ -1,11 +1,15 @@
# SPDX-License-Identifier: Unlicense
QT += multimedia qml quick quickcontrols2 svg widgets
-CONFIG += embed_translations lrelease
+CONFIG += c++1z embed_translations lrelease qmltypes
DEFINES += GIT_VERSION=\\\"$$system(git -C "$$_PRO_FILE_PWD_" describe --always --tags)\\\"
-SOURCES += main.cpp
-HEADERS += io.h
+QML_IMPORT_NAME = fuzbal
+QML_IMPORT_MAJOR_VERSION = 1
+
+SOURCES += event_list.cpp main.cpp
+HEADERS += event_list.h io.h
+
RESOURCES += main.qrc icons.qrc
TRANSLATIONS += translations/fuzbal_sl.ts