49 #if defined(QT_BUILD_QMAKE) || defined(QT_BOOTSTRAPPED) 50 # define BOOTSTRAPPING 55 extern QString qmake_libraryInfoFile();
62 # include "private/qcore_mac_p.h" 65 #ifdef QLIBRARYINFO_EPOCROOT 66 # include "symbian/epocroot_p.h" 69 #include "qconfig.cpp" 75 #ifndef QT_NO_SETTINGS 104 #ifndef BOOTSTRAPPING 114 qtconfig = qmake_libraryInfoFile();
118 CFBundleRef bundleRef = CFBundleGetMainBundle();
125 QCFString path = CFURLCopyFileSystemPath(urlRef, kCFURLPOSIXPathStyle);
194 const char *str = QT_CONFIGURE_LICENSEE;
207 const char *str = QT_CONFIGURE_LICENSED_PRODUCTS;
234 #ifndef QT_NO_DATESTRING 240 #endif //QT_NO_DATESTRING 252 const char *path = 0;
254 #ifdef QT_CONFIGURE_PREFIX_PATH 256 path = QT_CONFIGURE_PREFIX_PATH;
259 #ifdef QT_CONFIGURE_DOCUMENTATION_PATH 260 case DocumentationPath:
261 path = QT_CONFIGURE_DOCUMENTATION_PATH;
264 #ifdef QT_CONFIGURE_HEADERS_PATH 266 path = QT_CONFIGURE_HEADERS_PATH;
269 #ifdef QT_CONFIGURE_LIBRARIES_PATH 271 path = QT_CONFIGURE_LIBRARIES_PATH;
274 #ifdef QT_CONFIGURE_BINARIES_PATH 276 path = QT_CONFIGURE_BINARIES_PATH;
279 #ifdef QT_CONFIGURE_PLUGINS_PATH 281 path = QT_CONFIGURE_PLUGINS_PATH;
284 #ifdef QT_CONFIGURE_IMPORTS_PATH 286 path = QT_CONFIGURE_IMPORTS_PATH;
289 #ifdef QT_CONFIGURE_DATA_PATH 291 path = QT_CONFIGURE_DATA_PATH;
294 #ifdef QT_CONFIGURE_TRANSLATIONS_PATH 295 case TranslationsPath:
296 path = QT_CONFIGURE_TRANSLATIONS_PATH;
299 #ifdef QT_CONFIGURE_SETTINGS_PATH 301 path = QT_CONFIGURE_SETTINGS_PATH;
304 #ifdef QT_CONFIGURE_EXAMPLES_PATH 306 path = QT_CONFIGURE_EXAMPLES_PATH;
309 #ifdef QT_CONFIGURE_DEMOS_PATH 311 path = QT_CONFIGURE_DEMOS_PATH;
327 case DocumentationPath:
354 case TranslationsPath:
402 int maj = 0, min = 0, pat = 0;
404 for(
int child = 0; child < children.
size(); ++child) {
407 if(cver_list.
size() > 0 && cver_list.
size() < 4) {
409 int cmaj = -1, cmin = -1, cpat = -1;
410 cmaj = cver_list[0].toInt(&ok);
413 if(cver_list.
size() >= 2) {
414 cmin = cver_list[1].toInt(&ok);
420 if(cver_list.
size() >= 3) {
421 cpat = cver_list[2].toInt(&ok);
427 if((cmaj >= maj && cmaj <= QT_MAJOR) &&
428 (cmin == -1 || (cmin >= min && cmin <= QT_MINOR)) &&
429 (cpat == -1 || (cpat >= pat && cpat <= QT_PATCH)) &&
444 while((rep = reg_var.
indexIn(ret)) != -1) {
450 #ifdef QLIBRARYINFO_EPOCROOT 453 if ((rep = epocrootMatcher.
indexIn(ret)) != -1)
463 if (loc == PrefixPath) {
470 CFBundleRef bundleRef = CFBundleGetMainBundle();
474 QCFString path = CFURLCopyFileSystemPath(urlRef, kCFURLPOSIXPathStyle);
520 #endif // QT_NO_SETTINGS 524 #if defined(Q_CC_GNU) && defined(ELF_INTERPRETER) 528 extern const char qt_core_interpreter[] __attribute__((section(
".interp")))
531 extern "C" void qt_core_boilerplate();
532 void qt_core_boilerplate()
535 "Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).\n" 536 "Contact: http://www.qt-project.org/legal\n" 540 #ifdef QT_BUILD_KEY_COMPAT
541 "| " QT_BUILD_KEY_COMPAT
" " 543 #ifdef QT_BUILD_KEY_COMPAT2
544 "| " QT_BUILD_KEY_COMPAT2
" " 546 #ifdef QT_BUILD_KEY_COMPAT3
547 "| " QT_BUILD_KEY_COMPAT3
" " 551 "Installation prefix: %s\n" 553 "Include path: %s\n",
554 qt_configure_installation + 12,
555 qt_configure_prefix_path_str + 12,
556 qt_configure_libraries_path_str + 12,
557 qt_configure_headers_path_str + 12);
562 extern void qt_core_eval_init(
uint);
563 qt_core_eval_init(1);
The QDir class provides access to directory structures and their contents.
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Returns the value for setting key.
#define QT_END_NAMESPACE
This macro expands to.
The QRegExp class provides pattern matching using regular expressions.
T * data() const
Returns the value of the pointer referenced by this object.
void qAddPostRoutine(QtCleanUpFunction p)
static QString licensee()
Returns the person to whom this build of Qt is licensed.
The QSettings class provides persistent platform-independent application settings.
void endGroup()
Resets the group to what it was before the corresponding beginGroup() call.
QString & replace(int i, int len, QChar after)
static QSettings * configuration()
void beginGroup(const QString &prefix)
Appends prefix to the current group.
static QString licensedProducts()
Returns the products that the license for this build of Qt has access to.
QString toString() const
Returns the variant as a QString if the variant has type() String , Bool , ByteArray ...
int matchedLength() const
Returns the length of the last matched string, or -1 if there was no match.
The QDate class provides date functions.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static QString buildKey()
Returns a unique key identifying this build of Qt and its configurations.
static bool isRelativePath(const QString &path)
Returns true if path is relative; returns false if it is absolute.
The QString class provides a Unicode character string.
static QString currentPath()
Returns the absolute path of the application's current directory.
QStringList childGroups() const
Returns a list of all key top-level groups that contain keys that can be read using the QSettings obj...
bool exists() const
Returns true if the file specified by fileName() exists; otherwise returns false. ...
static QString applicationDirPath()
Returns the directory that contains the application executable.
void setMinimal(bool minimal)
Enables or disables minimal matching.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QLibraryInfo()
You cannot create a QLibraryInfo, instead only the static functions are available to query informatio...
LibraryLocation
This enum type is used to specify a specific location specifier:
int indexIn(const QString &str, int offset=0, CaretMode caretMode=CaretAtZero) const
Attempts to find a match in str from position offset (0 by default).
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
#define QT_PREPEND_NAMESPACE(name)
This macro qualifies identifier with the full namespace.
#define QT_VERSION_STR
This macro expands to a string that specifies Qt's version number (for example, "4.
static QString cleanPath(const QString &path)
Removes all multiple directory separators "/" and resolves any "."s or ".."s found in the path...
static QDate buildDate()
Returns the installation date for this build of Qt.
void reset(T *other=0)
Deletes the existing object it is pointing to if any, and sets its pointer to other.
bool isNull() const
Returns true if this string is null; otherwise returns false.
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
static QSettings * findConfiguration()
static QCoreApplication * instance()
Returns a pointer to the application's QCoreApplication (or QApplication) instance.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
static QString location(LibraryLocation)
Returns the location specified by loc.
static QTestResult::TestLocation location
static QDate fromString(const QString &s, Qt::DateFormat f=Qt::TextDate)
Returns the QDate represented by the string, using the format given, or an invalid date if the string...
int size() const
Returns the number of items in the list.
bool contains(const QString &key) const
Returns true if there exists a setting called key; returns false otherwise.
QScopedPointer< QSettings > settings
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 filePath(const QString &fileName) const
Returns the path name of a file in the directory.
The QFileInfo class provides system-independent file information.
QString absolutePath() const
Returns a file's path absolute path.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
const QChar * constData() const
Returns a pointer to the data stored in the QString.
#define QT_VERSION
This macro expands a numeric value of the form 0xMMNNPP (MM = major, NN = minor, PP = patch) that spe...