aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplugin.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-09-16 00:53:06 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-09-16 00:53:06 +0800
commitc944d7279bd3745f3391c56dc1dbc5e02f26c425 (patch)
treed96db563d7afb263faad5579286b025a5b4f0318 /qmidiplayer-desktop/qmpplugin.cpp
parent9fecb429a37bcaa577aaa972139f6db3ce17ac50 (diff)
downloadQMidiPlayer-c944d7279bd3745f3391c56dc1dbc5e02f26c425.tar.xz
Use QCommandLineParser to parse arguments.
New argument for loading plugins from given files. Use functor whenever possible in QObject::connect. A little bit of code cleanups.
Diffstat (limited to 'qmidiplayer-desktop/qmpplugin.cpp')
-rw-r--r--qmidiplayer-desktop/qmpplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp
index 2339625..1c83524 100644
--- a/qmidiplayer-desktop/qmpplugin.cpp
+++ b/qmidiplayer-desktop/qmpplugin.cpp
@@ -49,10 +49,10 @@ void qmpPluginManager::scanPlugins()
}
}
#else
-void qmpPluginManager::scanPlugins()
+void qmpPluginManager::scanPlugins(const std::vector<std::string> &pp)
{
QDirIterator *dir;
- std::vector<std::string> cpluginpaths;
+ std::vector<std::string> cpluginpaths(pp);
#ifdef QMP_BUILD_UNIX_PACKAGE
dir=new QDirIterator("/usr/lib/qmidiplayer/");
while(dir->hasNext())