From af8eb8d825d7d1ea08b1a1ac36f52860bf4b7b84 Mon Sep 17 00:00:00 2001 From: "Jesper K. Pedersen" Date: Wed, 29 May 2013 07:16:50 +0000 Subject: make it possible to add extra paths with scripts Change-Id: I270dc67545d27cd3177414112f14684df63a70ad Reviewed-by: Nicolas Arnaud-Cormos --- scriptmanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scriptmanager.cpp') diff --git a/scriptmanager.cpp b/scriptmanager.cpp index c605a67..6def7c2 100644 --- a/scriptmanager.cpp +++ b/scriptmanager.cpp @@ -118,6 +118,12 @@ ScriptManager::ScriptList ScriptManager::scriptList() const return m_scriptList; } +void ScriptManager::addScriptPath(const QString &path) +{ + m_watcher->addPath(path); + directoryChanged(path, true); +} + QStringList scriptListFromDir(const QString &path) { QDir dir(path); -- cgit v1.2.3