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
qqmlfile.cpp File Reference

(0642ea5890da4e8067b3e3517344027a696206f0)

#include "qqmlfile.h"
#include <QtCore/qurl.h>
#include <QtCore/qobject.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qfile.h>
#include <private/qqmlengine_p.h>
#include <private/qqmlglobal_p.h>
#include "qqmlfile.moc"
+ Include dependency graph for qqmlfile.cpp:

Go to the source code of this file.

Classes

class  QQmlFilePrivate
 

Functions

static bool hasScheme (const QString &url, const char *scheme, qsizetype schemeLength)
 
static qsizetype authorityOffset (const QString &url, qsizetype schemeLength)
 
static QString toLocalFile (const QString &url)
 
static bool isDoubleSlashed (const QString &url, qsizetype offset)
 

Variables

static char qrc_string [] = "qrc"
 
static char file_string [] = "file"
 

Function Documentation

◆ authorityOffset()

static qsizetype authorityOffset ( const QString & url,
qsizetype schemeLength )
static

Definition at line 604 of file qqmlfile.cpp.

References url.

Referenced by QQmlFile::isLocalFile().

+ Here is the caller graph for this function:

◆ hasScheme()

static bool hasScheme ( const QString & url,
const char * scheme,
qsizetype schemeLength )
static

Definition at line 588 of file qqmlfile.cpp.

References Qt::CaseInsensitive, and url.

Referenced by QQmlFile::isLocalFile(), and QQmlFile::urlToLocalFileOrQrc().

+ Here is the caller graph for this function:

◆ isDoubleSlashed()

static bool isDoubleSlashed ( const QString & url,
qsizetype offset )
static

Definition at line 720 of file qqmlfile.cpp.

References url.

Referenced by QQmlFile::urlToLocalFileOrQrc().

+ Here is the caller graph for this function:

◆ toLocalFile()

static QString toLocalFile ( const QString & url)
static

Definition at line 708 of file qqmlfile.cpp.

References file, and url.

Referenced by QQuickFileDialogImpl::currentFolderName(), QGraphicsFrameCaptureMetal::openCapture(), QGstreamerMediaEncoder::record(), QWindowsMediaEncoder::record(), QV4::Compiler::Codegen::referenceForName(), QCocoaFileDialogHelper::selectFile(), and QQmlFile::urlToLocalFileOrQrc().

+ Here is the caller graph for this function:

Variable Documentation

◆ file_string

char file_string[] = "file"
static

◆ qrc_string

char qrc_string[] = "qrc"
static