diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/divelistview.cpp | 2 | ||||
-rw-r--r-- | desktop-widgets/preferences/preferencesdialog.cpp | 2 | ||||
-rw-r--r-- | desktop-widgets/printoptions.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp index 3ba9ba58f..086bc0a6d 100644 --- a/desktop-widgets/divelistview.cpp +++ b/desktop-widgets/divelistview.cpp @@ -402,7 +402,7 @@ void DiveListView::selectDives(const QList<int> &newDiveSelection) // select the dives, highest index first - this way the oldest of the dives // becomes the selected_dive that we scroll to QList<int> sortedSelection = newDiveSelection; - qSort(sortedSelection.begin(), sortedSelection.end()); + std::sort(sortedSelection.begin(), sortedSelection.end()); newSelection = firstInList = sortedSelection.first(); while (!sortedSelection.isEmpty()) diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp index 59dbdf59b..fbf387cfa 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -97,7 +97,7 @@ bool abstractpreferenceswidget_lessthan(AbstractPreferencesWidget *p1, AbstractP void PreferencesDialog::addPreferencePage(AbstractPreferencesWidget *page) { pages.push_back(page); - qSort(pages.begin(), pages.end(), abstractpreferenceswidget_lessthan); + std::sort(pages.begin(), pages.end(), abstractpreferenceswidget_lessthan); } void PreferencesDialog::refreshPages() diff --git a/desktop-widgets/printoptions.cpp b/desktop-widgets/printoptions.cpp index 38a670cf8..0d9ae0a40 100644 --- a/desktop-widgets/printoptions.cpp +++ b/desktop-widgets/printoptions.cpp @@ -56,7 +56,7 @@ void PrintOptions::setupTemplates() // temp. store the template from options, as addItem() updates it via: // on_printTemplate_currentIndexChanged() QString storedTemplate = printOptions->p_template; - qSort(currList); + currList.sort(); int current_index = 0; ui.printTemplate->clear(); Q_FOREACH(const QString& theme, currList) { |