summaryrefslogtreecommitdiff
path: root/navit/gui/qt5_qml
diff options
context:
space:
mode:
Diffstat (limited to 'navit/gui/qt5_qml')
-rw-r--r--navit/gui/qt5_qml/CMakeLists.txt6
-rw-r--r--navit/gui/qt5_qml/navitsearchmodel.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/navit/gui/qt5_qml/CMakeLists.txt b/navit/gui/qt5_qml/CMakeLists.txt
index bb5fbb9bc..6fc807bcc 100644
--- a/navit/gui/qt5_qml/CMakeLists.txt
+++ b/navit/gui/qt5_qml/CMakeLists.txt
@@ -5,8 +5,12 @@ set(CMAKE_AUTOMOC ON)
qt5_add_resources(GUI_QT5_QML_QRC "gui_qt5_qml.qrc")
+set(gui_qt5_qml_LIBS graphics_qt5)
+
module_add_library(gui_qt5_qml gui_qt5_qml.cpp ${GUI_QT5_QML_QRC}
navitpoimodel.cpp navitrecentsmodel.cpp navitfavouritesmodel.cpp navitsearchmodel.cpp
- navithelper.cpp navitroute.cpp navitlayoutsmodel.cpp navitlayersmodel.cpp
+ navitroute.cpp navitlayoutsmodel.cpp navitlayersmodel.cpp
navitvehiclesmodel.cpp navitmapsmodel.cpp proxy.c)
+
+#target_link_libraries(gui_qt5_qml graphics_qt5)
diff --git a/navit/gui/qt5_qml/navitsearchmodel.h b/navit/gui/qt5_qml/navitsearchmodel.h
index bc925576e..2c6ab823c 100644
--- a/navit/gui/qt5_qml/navitsearchmodel.h
+++ b/navit/gui/qt5_qml/navitsearchmodel.h
@@ -140,7 +140,7 @@ private:
struct search_list *m_searchResultList;
- char *m_country_iso2;
+ char *m_country_iso2 = nullptr;
enum SearchType m_search_type;