aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/columnmanager.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-03-08 20:13:36 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-03-08 20:13:36 +0000
commit03afd18b5d80871c1fee4c6b57ba22a7a1886970 (patch)
tree53a4e19a2407097196a06826485e898324710544 /src/qmmpui/columnmanager.cpp
parent9e4946702bde29f2f8bd59b0770cd34fae2b85d6 (diff)
downloadqmmp-03afd18b5d80871c1fee4c6b57ba22a7a1886970.tar.gz
qmmp-03afd18b5d80871c1fee4c6b57ba22a7a1886970.tar.bz2
qmmp-03afd18b5d80871c1fee4c6b57ba22a7a1886970.zip
added feature to move columns
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4769 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/columnmanager.cpp')
-rw-r--r--src/qmmpui/columnmanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qmmpui/columnmanager.cpp b/src/qmmpui/columnmanager.cpp
index f5ba0054e..2699bc3f5 100644
--- a/src/qmmpui/columnmanager.cpp
+++ b/src/qmmpui/columnmanager.cpp
@@ -90,6 +90,17 @@ void ColumnManager::resize(int index, int size)
emit resized(index);
}
+void ColumnManager::move(int from, int to)
+{
+ if(from < 0 || from >= m_columns.size())
+ qWarning("ColumnManager: index is out of range");
+
+ if(to < 0 || to >= m_columns.size())
+ qWarning("ColumnManager: index is out of range");
+ m_columns.move(from, to);
+ emit moved(from, to);
+}
+
void ColumnManager::execEditor(int index, QWidget *parent)
{