diff options
author | David Faure <faure@kde.org> | 2011-10-21 20:57:31 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-23 00:56:51 +0200 |
commit | 4b72c3f4347bfb8493e877d26f172f2e18c69a83 (patch) | |
tree | 636fc5ca4a92678ae1c11b0d48483b23b1d1127f /src/corelib/io/qstandardpaths.h | |
parent | fa0ad643a6f0018544197e4eb80e8cf2cbf700cf (diff) |
Add QStandardPaths::findExecutable.
Change-Id: If30a83622e2ac5af48e47a38b8f70fce73044d74
Reviewed-by: Thiago Macieira (Intel) <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths.h')
-rw-r--r-- | src/corelib/io/qstandardpaths.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/io/qstandardpaths.h b/src/corelib/io/qstandardpaths.h index 1688e16be7..d0293ab3fd 100644 --- a/src/corelib/io/qstandardpaths.h +++ b/src/corelib/io/qstandardpaths.h @@ -42,7 +42,7 @@ #ifndef QSTANDARDPATHS_H #define QSTANDARDPATHS_H -#include <QtCore/qstring.h> +#include <QtCore/qstringlist.h> QT_BEGIN_HEADER @@ -87,6 +87,8 @@ public: static QStringList locateAll(StandardLocation type, const QString &fileName, LocateOptions options = LocateFile); static QString displayName(StandardLocation type); + static QString findExecutable(const QString &executableName, const QStringList &paths = QStringList()); + private: // prevent construction QStandardPaths(); |