diff options
Diffstat (limited to 'net-im/qTox/files/patch-git-ba9d724a17e76bfe7981a69330334c612f52a769')
-rw-r--r-- | net-im/qTox/files/patch-git-ba9d724a17e76bfe7981a69330334c612f52a769 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net-im/qTox/files/patch-git-ba9d724a17e76bfe7981a69330334c612f52a769 b/net-im/qTox/files/patch-git-ba9d724a17e76bfe7981a69330334c612f52a769 new file mode 100644 index 000000000000..812696e54774 --- /dev/null +++ b/net-im/qTox/files/patch-git-ba9d724a17e76bfe7981a69330334c612f52a769 @@ -0,0 +1,29 @@ +diff --git src/widget/contentdialog.cpp src/widget/contentdialog.cpp +index 2476390d..da34e9e3 100644 +--- src/widget/contentdialog.cpp ++++ src/widget/contentdialog.cpp +@@ -69,7 +69,11 @@ ContentDialog::ContentDialog(QWidget* parent) + friendLayout->getLayoutOffline()}; + + if (s.getGroupchatPosition()) { ++#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)) ++ layouts.swapItemsAt(0, 1); ++#else + layouts.swap(0, 1); ++#endif + } + + QWidget* friendWidget = new QWidget(); +@@ -399,7 +403,12 @@ void ContentDialog::reorderLayouts(bool newGroupOnTop) + { + bool oldGroupOnTop = layouts.first() == groupLayout.getLayout(); + if (newGroupOnTop != oldGroupOnTop) { ++ // Kriby: Maintain backwards compatibility ++#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)) ++ layouts.swapItemsAt(0, 1); ++#else + layouts.swap(0, 1); ++#endif + } + } + |