Commit 5c1fe471 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port QSet::toList to QSet::values (toList() is deprecated)

parent 78cf6bd9
Pipeline #12186 passed with stage
in 11 minutes and 25 seconds
......@@ -158,7 +158,7 @@ QVariantList DocumentItem::bookmarkedPages() const
Okular::DocumentViewport viewport(bookmark.url().fragment());
pages << viewport.pageNumber;
}
list = pages.toList();
list = pages.values();
std::sort(list.begin(), list.end());
QVariantList variantList;
......
......@@ -467,7 +467,7 @@ void Shell::fileOpen()
}
namePatterns.prepend( i18n("All files (*)") );
namePatterns.prepend( i18n("All supported files (%1)", globPatterns.toList().join( QLatin1Char(' ') ) ) );
namePatterns.prepend( i18n("All supported files (%1)", globPatterns.values().join( QLatin1Char(' ') ) ) );
dlg->setNameFilters( namePatterns );
dlg->setWindowTitle( i18n("Open Document") );
......
......@@ -950,7 +950,7 @@ QString PageViewPrivate::selectedText() const
return QString();
QString text;
QList< int > selpages = pagesWithTextSelection.toList();
QList< int > selpages = pagesWithTextSelection.values();
std::sort(selpages.begin(), selpages.end());
const Okular::Page * pg = nullptr;
if ( selpages.count() == 1 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment