aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmodel.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-10-01 16:20:38 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-10-01 16:20:38 +0000
commit30142bc1aacc6e0f92f8bb6311bff2cab6168bb8 (patch)
treeca056ef2fdb54f1152016a461dc45eb5926d4fd1 /src/qmmpui/playlistmodel.h
parent1cb8bdcf72b15239843a23e25245def9f70c52f4 (diff)
downloadqmmp-30142bc1aacc6e0f92f8bb6311bff2cab6168bb8.tar.gz
qmmp-30142bc1aacc6e0f92f8bb6311bff2cab6168bb8.tar.bz2
qmmp-30142bc1aacc6e0f92f8bb6311bff2cab6168bb8.zip
some api optimization
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9080 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.h')
-rw-r--r--src/qmmpui/playlistmodel.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h
index 1178a433b..6936e8c9b 100644
--- a/src/qmmpui/playlistmodel.h
+++ b/src/qmmpui/playlistmodel.h
@@ -202,13 +202,13 @@ public:
* @param tracks List of tracks.
* @param selected Selection state (\b true - select, \b false - unselect)
*/
- void setSelected(QList<PlayListTrack *> tracks, bool selected = true);
+ void setSelected(const QList<PlayListTrack *> &tracks, bool selected = true);
/*!
* Sets the selected state of the list of items to \b select
* @param items List of items.
* @param selected Selection state (\b true - select, \b false - unselect)
*/
- void setSelected(QList<PlayListItem *> items, bool selected = true);
+ void setSelected(const QList<PlayListItem *> &items, bool selected = true);
/*!
* Sets the selected state of the list of items range.
* @param first Firts item in the range.
@@ -221,7 +221,7 @@ public:
* @param indexes List of item \b indexes.
* @param selected Selection state (\b true - select, \b false - unselect)
*/
- void setSelected(QList<int> indexes, bool selected = true);
+ void setSelected(const QList<int> &indexes, bool selected = true);
/*!
* Advances to the next item. Returns \b false if next iten doesn't exist,
* otherwise returns \b true
@@ -245,7 +245,7 @@ public:
/*!
* Returns \b true if \b f file is in play queue, otherwise returns \b false.
*/
- bool isQueued(PlayListTrack* item) const;
+ bool isQueued(PlayListTrack *item) const;
/*!
* Returns \b true if play queue is empty,otherwise returns - \b false.
*/
@@ -253,7 +253,7 @@ public:
/*!
* Returns index of \b f file in queue.e
*/
- int queuedIndex(PlayListTrack* track) const;
+ int queuedIndex(PlayListTrack *track) const;
/*!
* Returns the number of items in the queue
*/
@@ -261,7 +261,7 @@ public:
/*!
* Returns \b true if playback stops after \b item, otherwise returns \b false.
*/
- bool isStopAfter(PlayListItem* item) const;
+ bool isStopAfter(const PlayListItem* item) const;
/*!
* Returns current selection(playlist can contain a lot of selections,
* this method returns selection which \b row belongs to)
@@ -399,7 +399,7 @@ public slots:
* Adds a list of tracks to the playlist.
* @param tracks List of tracks.
*/
- void add(QList <PlayListTrack *> tracks);
+ void add(const QList<PlayListTrack *> &tracks);
/*!
* Adds a list of files and directories to the playlist
* @param path Full path of file or directory.
@@ -421,11 +421,11 @@ public slots:
/*!
* Inserts \b tracks at index position \b index in the playlist.
*/
- void insert(int index, QList <PlayListTrack *> tracks);
+ void insert(int index, const QList<PlayListTrack *> &tracks);
/*!
* Inserts \b tracks after item \b before in the playlist.
*/
- void insert(PlayListItem *before, QList <PlayListTrack *> tracks);
+ void insert(PlayListItem *before, const QList<PlayListTrack *> &tracks);
/*!
* Inserts file or directory at index position \b index in the playlist.
* @param path Full path of file or directory.