Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qstandardpaths.cpp File Reference

(f63e5318261de755dfeb3d8faedc52333a37c96d)

#include "qstandardpaths.h"
#include <qdir.h>
#include <qfileinfo.h>
#include <qobject.h>
#include <qcoreapplication.h>
#include "moc_qstandardpaths.cpp"
+ Include dependency graph for qstandardpaths.cpp:

Go to the source code of this file.

Functions

static bool existsAsSpecified (const QString &path, QStandardPaths::LocateOptions options)
 
static QString checkExecutable (const QString &path)
 
static QString searchExecutable (const QStringList &searchPaths, const QString &executableName)
 

Variables

static Q_CONSTINIT bool qsp_testMode = false
 

Function Documentation

◆ checkExecutable()

static QString checkExecutable ( const QString & path)
static

Definition at line 437 of file qstandardpaths.cpp.

References QDir::cleanPath(), and info.

Referenced by QStandardPaths::findExecutable(), and searchExecutable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ existsAsSpecified()

static bool existsAsSpecified ( const QString & path,
QStandardPaths::LocateOptions options )
static

Definition at line 391 of file qstandardpaths.cpp.

References QDir::exists(), QFileInfo::isFile(), and QStandardPaths::LocateDirectory.

Referenced by QStandardPaths::locate(), and QStandardPaths::locateAll().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ searchExecutable()

static QString searchExecutable ( const QStringList & searchPaths,
const QString & executableName )
inlinestatic

Definition at line 447 of file qstandardpaths.cpp.

References QDir::absoluteFilePath(), checkExecutable(), and QDir::current().

Referenced by QStandardPaths::findExecutable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ qsp_testMode

Q_CONSTINIT bool qsp_testMode = false
static