mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Port away from deprecated enum
We already require Qt 5.15
This commit is contained in:
parent
0d71ac9ad1
commit
edd0034a5e
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue