6#include <QStandardPaths>
15#if QT_CONFIG(mmrenderer)
25 for (
const QString &
path : std::as_const(dirCandidates)) {
36 auto lastMediaIndex = 0;
40 lastMediaIndex =
qMax(lastMediaIndex, mediaIndex);
48 return dir.absoluteFilePath(
name);
58 if (
QUrl(requestedName).scheme() ==
"content"_L1)
61 auto prefix =
"clip_"_L1;
69 if (requestedName.isEmpty())
static QString tempPath()
Returns the absolute canonical path of the system's temporary directory.
static QString homePath()
Returns the absolute path of the user's home directory.
static QString currentPath()
Returns the absolute path of the application's current directory.
static QString writableLocation(StandardLocation type)
StandardLocation
This enum describes the different locations that can be queried using methods such as QStandardPaths:...
constexpr QStringView mid(qsizetype pos, qsizetype n=-1) const noexcept
Returns the substring of length length starting at position start in this object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
qsizetype size() const noexcept
Returns the number of characters in this string.
Combined button and popup list for selecting options.
constexpr const T & qMax(const T &a, const T &b)
GLsizei const GLchar *const * path
static QT_BEGIN_NAMESPACE bool isRelative(const QString &path)
QLatin1StringView QLatin1String
#define QStringLiteral(str)
static int toInt(const QChar &qc, int R)
\inmodule QtCore \reentrant