Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Removing QtConcurrent from everywhere where it is not actually used

Dmitry Kazakov724eeaa91052
diff --git a/krita/CMakeLists.txt b/krita/CMakeLists.txt
index 653d57f463..8d56991781 100644
--- a/krita/CMakeLists.txt
+++ b/krita/CMakeLists.txt
@@ -109,8 +109,7 @@ target_link_libraries(krita
Qt${QT_MAJOR_VERSION}::Xml
Qt${QT_MAJOR_VERSION}::Network
Qt${QT_MAJOR_VERSION}::PrintSupport
- Qt${QT_MAJOR_VERSION}::Svg
- Qt${QT_MAJOR_VERSION}::Concurrent)
+ Qt${QT_MAJOR_VERSION}::Svg)
if(HAVE_KCRASH)
target_link_libraries(krita PRIVATE KF${KF_MAJOR}::Crash)
endif()
diff --git a/libs/brush/kis_auto_brush.cpp b/libs/brush/kis_auto_brush.cpp
index c6781a4215..c0f31a5bea 100644
--- a/libs/brush/kis_auto_brush.cpp
+++ b/libs/brush/kis_auto_brush.cpp
@@ -14,7 +14,6 @@
#include <QPainterPath>
#include <QRect>
#include <QDomElement>
-#include <QtConcurrentMap>
#include <QByteArray>
#include <QBuffer>
#include <QFile>
diff --git a/libs/color/colord/CMakeLists.txt b/libs/color/colord/CMakeLists.txt
index 7fd47839ab..f2ed60d638 100644
--- a/libs/color/colord/CMakeLists.txt
+++ b/libs/color/colord/CMakeLists.txt
@@ -37,7 +37,7 @@ qt5_add_dbus_interface(kritacolord_SRCS ${COLORD_SENSOR_INTERFACE_XML} CdSensorI
kis_add_library(kritacolord SHARED ${kritacolord_SRCS})
-target_link_libraries(kritacolord kritaglobal Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::Concurrent Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Gui)
+target_link_libraries(kritacolord kritaglobal Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Gui)
generate_export_header(kritacolord BASE_NAME kritacolord)
install(TARGETS kritacolord DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/libs/global/CMakeLists.txt b/libs/global/CMakeLists.txt
index d0ad926c47..0d4bb3139b 100644
--- a/libs/global/CMakeLists.txt
+++ b/libs/global/CMakeLists.txt
@@ -69,7 +69,6 @@ generate_export_header(kritaglobal BASE_NAME kritaglobal)
target_link_libraries(kritaglobal
PUBLIC
kritaversion
- Qt${QT_MAJOR_VERSION}::Concurrent
Qt${QT_MAJOR_VERSION}::Core
Qt${QT_MAJOR_VERSION}::Gui
Qt${QT_MAJOR_VERSION}::Widgets
diff --git a/libs/image/CMakeLists.txt b/libs/image/CMakeLists.txt
index 567d8b3a81..004e32b641 100644
--- a/libs/image/CMakeLists.txt
+++ b/libs/image/CMakeLists.txt
@@ -386,8 +386,6 @@ target_link_libraries(kritaimage
kritametadata
kritaresources
- Qt${QT_MAJOR_VERSION}::Concurrent
-
Eigen3::Eigen
Boost::boost
)
diff --git a/libs/image/kis_image.cc b/libs/image/kis_image.cc
index fdeb579c78..df09747678 100644
--- a/libs/image/kis_image.cc
+++ b/libs/image/kis_image.cc
@@ -17,7 +17,6 @@
#include <QSize>
#include <QDateTime>
#include <QRect>
-#include <QtConcurrent>
#include <klocalizedstring.h>
diff --git a/libs/ui/CMakeLists.txt b/libs/ui/CMakeLists.txt
index 3c0713bea6..abbcf18420 100644
--- a/libs/ui/CMakeLists.txt
+++ b/libs/ui/CMakeLists.txt
@@ -687,6 +687,7 @@ target_link_libraries(kritaui
KF${KF_MAJOR}::ItemViews
Qt${QT_MAJOR_VERSION}::Network
+ Qt${QT_MAJOR_VERSION}::Concurrent
Eigen3::Eigen
Boost::boost
diff --git a/libs/ui/kis_animation_cache_populator.cpp b/libs/ui/kis_animation_cache_populator.cpp
index 99bac2b9c0..6864cece6d 100644
--- a/libs/ui/kis_animation_cache_populator.cpp
+++ b/libs/ui/kis_animation_cache_populator.cpp
@@ -10,7 +10,7 @@
#include <QTimer>
#include <QMutex>
-#include <QtConcurrent>
+#include <QStack>
#include "kis_config.h"
#include "kis_config_notifier.h"
diff --git a/pch/kis_image_pch.h b/pch/kis_image_pch.h
index f9e70f77b5..1acba01feb 100644
--- a/pch/kis_image_pch.h
+++ b/pch/kis_image_pch.h
@@ -1,6 +1,6 @@
+#include <QtMath>
#include <QObject>
#include <QThread>
-#include <QtConcurrent>
#include <QList>
#include <QVector>
#include <QVariant>
diff --git a/plugins/extensions/pykrita/kritarunner/CMakeLists.txt b/plugins/extensions/pykrita/kritarunner/CMakeLists.txt
index 63756d0faf..4ee31e2d4c 100644
--- a/plugins/extensions/pykrita/kritarunner/CMakeLists.txt
+++ b/plugins/extensions/pykrita/kritarunner/CMakeLists.txt
@@ -16,7 +16,6 @@ set(kritarunner_PRIVATE_LINK_LIBS
Qt${QT_MAJOR_VERSION}::Network
Qt${QT_MAJOR_VERSION}::PrintSupport
Qt${QT_MAJOR_VERSION}::Svg
- Qt${QT_MAJOR_VERSION}::Concurrent
)
if(WIN32)
diff --git a/plugins/paintops/defaultpaintops/brush/kis_brushop.cpp b/plugins/paintops/defaultpaintops/brush/kis_brushop.cpp
index 49be37cb0f..8de4218ed5 100644
--- a/plugins/paintops/defaultpaintops/brush/kis_brushop.cpp
+++ b/plugins/paintops/defaultpaintops/brush/kis_brushop.cpp
@@ -28,7 +28,6 @@
#include <kis_lod_transform.h>
#include <kis_paintop_plugin_utils.h>
#include "krita_utils.h"
-#include <QtConcurrent>
#include "kis_algebra_2d.h"
#include <KisDabRenderingExecutor.h>
#include <KisDabCacheUtils.h>