Commit 33e46887 authored by Martin Kampas's avatar Martin Kampas

sandbox: add convenient addWorldFile()

parent 1a265406
......@@ -218,6 +218,11 @@ bool Sandbox::addWorldFiles(const QString &directory, QDir::Filters filters,
return true;
}
bool Sandbox::addWorldFile(const QString &file){
return addWorldFiles(QFileInfo(file).path(), QDir::NoFilter,
QStringList() << QFileInfo(file).fileName());
}
bool Sandbox::prepare(){
Q_ASSERT(m_defaultConstructed || !m_sandboxPath.isEmpty());
......
......@@ -38,6 +38,7 @@ class Sandbox {
bool addWorldFiles(const QString &directory, QDir::Filters filters = QDir::NoFilter,
const QStringList &filterNames = QStringList());
bool addWorldFile(const QString &file);
private:
bool prepare();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment