aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui')
-rw-r--r--src/qmmpui/playlistmodel.cpp16
-rw-r--r--src/qmmpui/playlistmodel.h6
2 files changed, 11 insertions, 11 deletions
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<int> selected_rows = getSelectedRows();
+ QList<int> 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<int> PlayListModel::getSelectedRows() const
+QList<int> PlayListModel::selectedRows() const
{
QList<int>selected_rows;
for (int i = 0;i<m_items.count();i++)
@@ -543,7 +543,7 @@ QList<int> PlayListModel::getSelectedRows() const
return selected_rows;
}
-QList< PlayListItem * > PlayListModel::getSelectedItems() const
+QList< PlayListItem * > PlayListModel::selectedItems() const
{
QList<PlayListItem*>selected_items;
for (int i = 0;i<m_items.count();i++)
@@ -558,7 +558,7 @@ QList< PlayListItem * > PlayListModel::getSelectedItems() const
void PlayListModel::addToQueue()
{
- QList<PlayListItem*> selected_items = getSelectedItems();
+ QList<PlayListItem*> selected_items = selectedItems();
foreach(PlayListItem* file,selected_items)
setQueued(file);
emit listChanged();
@@ -766,8 +766,8 @@ void PlayListModel::doSort(int sort_mode,QList<PlayListItem*>& list_to_sort)
void PlayListModel::sortSelection(int mode)
{
- QList<PlayListItem*>selected_items = getSelectedItems();
- QList<int>selected_rows = getSelectedRows();
+ QList<PlayListItem*>selected_items = selectedItems();
+ QList<int>selected_rows = selectedRows();
doSort(mode,selected_items);
@@ -919,7 +919,7 @@ void PlayListModel::clearQueue()
void PlayListModel::stopAfterSelected()
{
- QList<PlayListItem*> selected_items = getSelectedItems();
+ QList<PlayListItem*> 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<int> getSelectedRows() const;
+ QList<int> selectedRows() const;
/*!
* Returns list of \b PlayListItem pointers that are selected.
*/
- QList<PlayListItem*> getSelectedItems() const;
+ QList<PlayListItem*> selectedItems() const;
/*!
* Returns list of all \b PlayListItem pointers.
*/