44 #include <QtCore/qvarlengtharray.h> 45 #include <QtCore/qstringlist.h> 46 #include <QtCore/qfileinfo.h> 84 #if defined(Q_OS_WINCE) 88 return ::LoadLibrary(libraryName);
92 #if !defined(QT_BOOTSTRAPPED) 96 static inline QString qSystemDirectory()
100 UINT retLen = ::GetSystemDirectory(fullPath.
data(), MAX_PATH);
101 if (retLen > MAX_PATH) {
103 retLen = ::GetSystemDirectory(fullPath.
data(), retLen);
113 #if !defined(QT_BOOTSTRAPPED) 114 if (!onlySystemDirectory)
117 searchOrder << qSystemDirectory();
119 if (!onlySystemDirectory) {
126 for (
int i = 0; i < searchOrder.
count(); ++i) {
127 QString fullPathAttempt = searchOrder.
at(i);
130 fullPathAttempt.
append(fileName);
131 HINSTANCE inst = ::LoadLibrary((
const wchar_t *)fullPathAttempt.
utf16());
139 #endif // !Q_OS_WINCE static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
const T * constData() const
#define QT_END_NAMESPACE
This macro expands to.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
bool load(bool onlySystemDirectory=true)
#define QT_BEGIN_NAMESPACE
This macro expands to.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
QString & append(QChar c)
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
QString path() const
Returns the file's path.
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
The QFileInfo class provides system-independent file information.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static QString fileName(const QString &fileUrl)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
const ushort * utf16() const
Returns the QString as a '\0\'-terminated array of unsigned shorts.