From 2fe45d334cccaa911cd52bb57a261f56e9e333ee Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 19 Sep 2011 15:49:06 +0000 Subject: changed playlist api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2356 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmodel.cpp | 16 ++++++++-------- src/qmmpui/playlistmodel.h | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/qmmpui') diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index a71aef5b6..e99cd835e 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -465,7 +465,7 @@ void PlayListModel::moveItems(int from, int to) if (from == to) return; - QList selected_rows = getSelectedRows(); + QList selected_rows = selectedRows(); if (!(bottommostInSelection(from) == INVALID_ROW || from == INVALID_ROW || @@ -526,11 +526,11 @@ const SimpleSelection& PlayListModel::getSelection(int row) m_selection.m_top = topmostInSelection(row); m_selection.m_anchor = row; m_selection.m_bottom = bottommostInSelection(row); - m_selection.m_selected_rows = getSelectedRows(); + m_selection.m_selected_rows = selectedRows(); return m_selection; } -QList PlayListModel::getSelectedRows() const +QList PlayListModel::selectedRows() const { QListselected_rows; for (int i = 0;i PlayListModel::getSelectedRows() const return selected_rows; } -QList< PlayListItem * > PlayListModel::getSelectedItems() const +QList< PlayListItem * > PlayListModel::selectedItems() const { QListselected_items; for (int i = 0;i PlayListModel::getSelectedItems() const void PlayListModel::addToQueue() { - QList selected_items = getSelectedItems(); + QList selected_items = selectedItems(); foreach(PlayListItem* file,selected_items) setQueued(file); emit listChanged(); @@ -766,8 +766,8 @@ void PlayListModel::doSort(int sort_mode,QList& list_to_sort) void PlayListModel::sortSelection(int mode) { - QListselected_items = getSelectedItems(); - QListselected_rows = getSelectedRows(); + QListselected_items = selectedItems(); + QListselected_rows = selectedRows(); doSort(mode,selected_items); @@ -919,7 +919,7 @@ void PlayListModel::clearQueue() void PlayListModel::stopAfterSelected() { - QList selected_items = getSelectedItems(); + QList selected_items = selectedItems(); if(!m_queued_songs.isEmpty()) { m_stop_item = m_stop_item != m_queued_songs.last() ? m_queued_songs.last() : 0; diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index fcfefca83..190a0c78a 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -183,7 +183,7 @@ public: */ QStringList getTitles(int first,int last); /*! - * Returns a list of the formated durations. + * Returns a list of the formatted durations. * @param first First item. * @param last Last item. */ @@ -224,11 +224,11 @@ public: /*! * Returns list with selected rows indexes. */ - QList getSelectedRows() const; + QList selectedRows() const; /*! * Returns list of \b PlayListItem pointers that are selected. */ - QList getSelectedItems() const; + QList selectedItems() const; /*! * Returns list of all \b PlayListItem pointers. */ -- cgit v1.2.3-13-gbd6f