]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Port away from deprecated enum
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 4 Jul 2021 10:39:30 +0000 (12:39 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 4 Jul 2021 11:35:26 +0000 (13:35 +0200)
We already require Qt 5.15

src/dolphinviewcontainer.cpp

index 1a608669f6f0eca23dfe902538d6d4cbf39a18e4..b92e8b6ef80fad31942d10f19bec2789cdb3961d 100644 (file)
@@ -476,7 +476,7 @@ QString DolphinViewContainer::caption() const
     }
 
     KFilePlacesModel *placesModel = DolphinPlacesModelSingleton::instance().placesModel();
-    const auto& matchedPlaces = placesModel->match(placesModel->index(0,0), KFilePlacesModel::UrlRole, QUrl(url().adjusted(QUrl::StripTrailingSlash).toString(QUrl::FullyEncoded).append("/?")), 1, Qt::MatchRegExp);
+    const auto& matchedPlaces = placesModel->match(placesModel->index(0,0), KFilePlacesModel::UrlRole, QUrl(url().adjusted(QUrl::StripTrailingSlash).toString(QUrl::FullyEncoded).append("/?")), 1, Qt::MatchRegularExpression);
 
     if (!matchedPlaces.isEmpty()) {
         return placesModel->text(matchedPlaces.first());