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++

Qt6: no longer specify the type for QVariant::setValue

Halla Rempt30f94e6d13b3
diff --git a/libs/flake/KoDocumentResourceManager.cpp b/libs/flake/KoDocumentResourceManager.cpp
index 4fde7bf4e3..a308e1e230 100644
--- a/libs/flake/KoDocumentResourceManager.cpp
+++ b/libs/flake/KoDocumentResourceManager.cpp
@@ -154,6 +154,6 @@ KoShapeController *KoDocumentResourceManager::globalShapeController() const
void KoDocumentResourceManager::setGlobalShapeController(KoShapeController *shapeController)
{
QVariant variant;
- variant.setValue<KoShapeController *>(shapeController);
+ variant.setValue(shapeController);
setResource(GlobalShapeController, variant);
}