aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui')
-rw-r--r--src/qmmpui/groupedcontainer.cpp4
-rw-r--r--src/qmmpui/normalcontainer.cpp5
-rw-r--r--src/qmmpui/playstate.cpp6
3 files changed, 14 insertions, 1 deletions
diff --git a/src/qmmpui/groupedcontainer.cpp b/src/qmmpui/groupedcontainer.cpp
index d126cc37d..27284c723 100644
--- a/src/qmmpui/groupedcontainer.cpp
+++ b/src/qmmpui/groupedcontainer.cpp
@@ -21,6 +21,10 @@
#include "playlistmodel.h"
#include "groupedcontainer_p.h"
+#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
+#define swapItemsAt swap
+#endif
+
GroupedContainer::GroupedContainer()
{
m_update = true;
diff --git a/src/qmmpui/normalcontainer.cpp b/src/qmmpui/normalcontainer.cpp
index a117187ce..96e3f4204 100644
--- a/src/qmmpui/normalcontainer.cpp
+++ b/src/qmmpui/normalcontainer.cpp
@@ -20,6 +20,11 @@
#include "normalcontainer_p.h"
+
+#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
+#define swapItemsAt swap
+#endif
+
NormalContainer::NormalContainer()
{}
diff --git a/src/qmmpui/playstate.cpp b/src/qmmpui/playstate.cpp
index 34f350b7a..184517109 100644
--- a/src/qmmpui/playstate.cpp
+++ b/src/qmmpui/playstate.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2006-2013 by Ilya Kotov *
+ * Copyright (C) 2006-2019 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -21,6 +21,10 @@
#include "qmmpuisettings.h"
#include "playstate_p.h"
+#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
+#define swapItemsAt swap
+#endif
+
PlayState::PlayState(PlayListModel *model) : m_model(model)
{
m_ui_settings = QmmpUiSettings::instance();