Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <davidebeatrici@gmail.com>2019-07-30 23:03:50 +0300
committerDavide Beatrici <davidebeatrici@gmail.com>2019-07-31 00:04:27 +0300
commite9655daac5ab036588cb16f2dae87fc78ff37696 (patch)
tree3fc2a704d4746fac5bf3933237d92ba15442ae15 /src/mumble/ACLEditor.cpp
parent3132f993d83820d72124ffbb6fc4fd3810d36b8e (diff)
ACLEditor.cpp: replace deprecated QList::swap() overload with QList::swapItemsAt()
https://github.com/qt/qtbase/commit/7f4d0405b409b1d3aa9d91e31972669576ec698c
Diffstat (limited to 'src/mumble/ACLEditor.cpp')
-rw-r--r--src/mumble/ACLEditor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mumble/ACLEditor.cpp b/src/mumble/ACLEditor.cpp
index 5736437c1..eac63f3b0 100644
--- a/src/mumble/ACLEditor.cpp
+++ b/src/mumble/ACLEditor.cpp
@@ -752,7 +752,11 @@ void ACLEditor::on_qpbACLUp_clicked() {
if (idx <= numInheritACL + 1)
return;
+#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
+ qlACLs.swapItemsAt(idx - 1, idx);
+#else
qlACLs.swap(idx - 1, idx);
+#endif
qlwACLs->setCurrentRow(qlwACLs->currentRow() - 1);
refillACL();
}
@@ -766,7 +770,11 @@ void ACLEditor::on_qpbACLDown_clicked() {
if (idx >= qlACLs.count())
return;
+#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
+ qlACLs.swapItemsAt(idx - 1, idx);
+#else
qlACLs.swap(idx - 1, idx);
+#endif
qlwACLs->setCurrentRow(qlwACLs->currentRow() + 1);
refillACL();
}