From fae0d94920ff1f52807b8ac5cf2a0eff269961c1 Mon Sep 17 00:00:00 2001 From: Tomas Mecir Date: Sat, 28 Sep 2019 17:53:23 +0200 Subject: [PATCH] mapper fixes --- AUTHORS | 2 +- configure | 2 +- configure-debug | 2 +- libs/CMakeLists.txt | 2 +- plugins/mapper/cmapviewstatusbar.cpp | 2 -- plugins/mapper/filefilters/cmapfilefilterxml.cpp | 2 +- 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/AUTHORS b/AUTHORS index c821070..dd48e35 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,2 +1,2 @@ -Tomas Mecir +Tomas Mecir diff --git a/configure b/configure index b74f104..d8bd60e 100755 --- a/configure +++ b/configure @@ -3,5 +3,5 @@ SRCDIR=$(pwd) mkdir ../kmuddy-build cd ../kmuddy-build -cmake ${SRCDIR} -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` +cmake ${SRCDIR} -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` diff --git a/configure-debug b/configure-debug index 1cac93a..d6725c9 100755 --- a/configure-debug +++ b/configure-debug @@ -3,5 +3,5 @@ SRCDIR=$(pwd) mkdir ../kmuddy-build cd ../kmuddy-build -cmake ${SRCDIR} -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` +cmake ${SRCDIR} -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 052f6b4..1d27070 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -58,7 +58,7 @@ add_library(kmuddycore SHARED ${kmuddycore_LIB_SRCS}) # TODO: get rid of the support libs target_link_libraries(kmuddycore KF5::KCMUtils KF5::I18n KF5::Service KF5::KDELibs4Support Qt5::Script Qt5::Multimedia) -set_target_properties(kmuddycore PROPERTIES VERSION 1.0.0 SOVERSION 1 ) +set_target_properties(kmuddycore PROPERTIES VERSION 2.0.0 SOVERSION 2 ) install(TARGETS kmuddycore DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/plugins/mapper/cmapviewstatusbar.cpp b/plugins/mapper/cmapviewstatusbar.cpp index bf1cb5a..e53215b 100644 --- a/plugins/mapper/cmapviewstatusbar.cpp +++ b/plugins/mapper/cmapviewstatusbar.cpp @@ -104,9 +104,7 @@ void CMapViewStatusbar::setZone(CMapZone *zone) d->zonePicker->setCurrentIndex(zones->activeZone()); } - if (d->zone == zone) return; d->zone = zone; - d->levelPicker->setModel(zone->levelsModel()); setLevel(d->manager->getActiveView()->getCurrentlyViewedLevel()); } diff --git a/plugins/mapper/filefilters/cmapfilefilterxml.cpp b/plugins/mapper/filefilters/cmapfilefilterxml.cpp index 39f6bfe..8f8f626 100644 --- a/plugins/mapper/filefilters/cmapfilefilterxml.cpp +++ b/plugins/mapper/filefilters/cmapfilefilterxml.cpp @@ -639,7 +639,7 @@ void CMapFileFilterXML::savePluginPropertiesForElement(CMapElement *element,QDom plugin->saveElementProperties(element,&pluginProperties); EntryMap entries = pluginProperties.entryMap("Properties"); - for (EntryMap::ConstIterator it = entries.begin(); it != entries.end(); ++it) + for (EntryMap::ConstIterator it = entries.constBegin(); it != entries.constEnd(); ++it) { pNode.setAttribute(it.key(),it.value()); } -- GitLab