diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-20 18:07:17 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-20 18:07:17 +0000 |
| commit | fce0e4d52345c18213662dc6153993ea55ab4f84 (patch) | |
| tree | 783fa5bd43feeab9b2ae2ffb3d79014d47bcef68 /src/qmmpui/normalcontainer.cpp | |
| parent | 4ad1526dc8448d6e379cdc92836d797a977b5e20 (diff) | |
| download | qmmp-fce0e4d52345c18213662dc6153993ea55ab4f84.tar.gz qmmp-fce0e4d52345c18213662dc6153993ea55ab4f84.tar.bz2 qmmp-fce0e4d52345c18213662dc6153993ea55ab4f84.zip | |
fixed 'revert list' function
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3632 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/normalcontainer.cpp')
| -rw-r--r-- | src/qmmpui/normalcontainer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qmmpui/normalcontainer.cpp b/src/qmmpui/normalcontainer.cpp index 3b2f23185..37f5fc3eb 100644 --- a/src/qmmpui/normalcontainer.cpp +++ b/src/qmmpui/normalcontainer.cpp @@ -183,3 +183,9 @@ void NormalContainer::clear() qDeleteAll(m_items); m_items.clear(); } + +void NormalContainer::reverseList() +{ + for (int i = 0;i < m_items.size()/2;i++) + m_items.swap(i,m_items.size() - i - 1); +} |
