Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qstandardpaths.cpp File Reference
#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 417 of file qstandardpaths.cpp.

References QFileInfo::bundleName(), QDir::cleanPath(), info, QFileInfo::isBundle(), QFileInfo::isExecutable(), and QFileInfo::isFile().

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 371 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 427 of file qstandardpaths.cpp.

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

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