diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/qmmpui/playlistmanager.cpp | 7 | ||||
| -rw-r--r-- | src/qmmpui/playlistmanager.h | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/qmmpui/playlistmanager.cpp b/src/qmmpui/playlistmanager.cpp index 2cc9b82a6..52f610791 100644 --- a/src/qmmpui/playlistmanager.cpp +++ b/src/qmmpui/playlistmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2015 by Ilya Kotov * + * Copyright (C) 2009-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -432,6 +432,11 @@ void PlayListManager::showDetails() m_selected->showDetails(); } +void PlayListManager::add(const QString &path) +{ + m_selected->add(path); +} + void PlayListManager::add(const QStringList &paths) { m_selected->add(paths); diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h index f593dd4b0..2f37d169d 100644 --- a/src/qmmpui/playlistmanager.h +++ b/src/qmmpui/playlistmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2015 by Ilya Kotov * + * Copyright (C) 2009-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -201,6 +201,10 @@ public slots: */ void showDetails(); /*! + * This is a convenience function and is the same as calling \b selectedPlayList()->add(path) + */ + void add(const QString &path); + /*! * This is a convenience function and is the same as calling \b selectedPlayList()->add(paths) */ void add(const QStringList &paths); |
