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: port to QRegularExpression

Halla Remptc866fc42e265
diff --git a/libs/ui/KisPart.cpp b/libs/ui/KisPart.cpp
index d1394a7566..421e0b67c2 100644
--- a/libs/ui/KisPart.cpp
+++ b/libs/ui/KisPart.cpp
@@ -38,6 +38,7 @@
#include <QMenu>
#include <QScopedPointer>
#include <QMap>
+#include <QRegularExpression>
#include <QMenuBar>
#include <klocalizedstring.h>
@@ -568,7 +569,7 @@ void KisPart::openTemplate(const QUrl &url)
if (ok) {
QString mimeType = KisMimeDatabase::mimeTypeForFile(url.toLocalFile());
// in case this is a open document template remove the -template from the end
- mimeType.remove( QRegExp( "-template$" ) );
+ mimeType.remove( QRegularExpression( "-template$" ) );
document->setMimeTypeAfterLoading(mimeType);
document->resetPath();
document->setReadWrite(true);