Add infrastructure for auto-type tests.

This commit is contained in:
Felix Geyer
2012-10-28 15:31:57 +01:00
parent f1719cfc5f
commit 606dbc6eb4
9 changed files with 264 additions and 3 deletions

View File

@@ -38,10 +38,15 @@ QString FilePath::dataPath(const QString& name)
QString FilePath::pluginPath(const QString& name)
{
QStringList pluginPaths;
QDir buildDir(QCoreApplication::applicationDirPath() + "/autotype");
Q_FOREACH (const QString& dir, buildDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) {
pluginPaths << QCoreApplication::applicationDirPath() + "/autotype/" + dir;
}
// for TestAutoType
pluginPaths << QCoreApplication::applicationDirPath() + "/../src/autotype/test";
pluginPaths << QCoreApplication::applicationDirPath();
pluginPaths << QCoreApplication::applicationDirPath() + "/../lib/keepassx";