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

(7cf39bd785e8ba817960d48b120983cafcc539f3)

#include "qtmoduleinfo.h"
#include "utils.h"
#include <QDirListing>
#include <QJsonDocument>
#include <QJsonArray>
#include <QDebug>
#include <iostream>
#include <algorithm>
#include <unordered_map>
+ Include dependency graph for qtmoduleinfo.cpp:

Go to the source code of this file.

Classes

struct  TranslationCatalog
 

Typedefs

using TranslationCatalogs = std::vector<TranslationCatalog>
 

Functions

static QStringList toStringList (const QJsonArray &jsonArray)
 
static TranslationCatalogs readTranslationsCatalogs (const QString &translationsDir, bool verbose, QString *errorString)
 
static QtModule moduleFromJsonFile (const QString &filePath, QString *errorString)
 
static void dump (const QtModule &module)
 

Typedef Documentation

◆ TranslationCatalogs

Function Documentation

◆ dump()

static void dump ( const QtModule & module)
static

Definition at line 106 of file qtmoduleinfo.cpp.

References QString::isEmpty(), QtModule::name, QtModule::pluginTypes, qDebug, qUtf8Printable, and QtModule::translationCatalog.

+ Here is the call graph for this function:

◆ moduleFromJsonFile()

static QtModule moduleFromJsonFile ( const QString & filePath,
QString * errorString )
static

Definition at line 77 of file qtmoduleinfo.cpp.

References file, QFile::fileName(), QJsonDocument::fromJson(), QJsonParseError::NoError, QFile::open(), QIODevice::readAll(), and QIODeviceBase::ReadOnly.

+ Here is the call graph for this function:

◆ readTranslationsCatalogs()

static TranslationCatalogs readTranslationsCatalogs ( const QString & translationsDir,
bool verbose,
QString * errorString )
static

Definition at line 37 of file qtmoduleinfo.cpp.

References file, QFile::fileName(), QJsonDocument::fromJson(), item, TranslationCatalog::modules, TranslationCatalog::name, QJsonParseError::NoError, QFile::open(), qUtf8Printable, QIODevice::readAll(), QIODeviceBase::ReadOnly, TranslationCatalog::repositories, and toStringList().

Referenced by QtModuleInfoStore::populate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toStringList()

static QStringList toStringList ( const QJsonArray & jsonArray)
static

Definition at line 18 of file qtmoduleinfo.cpp.

References item.

Referenced by QWasmFontDatabase::populateLocalFontFamilies(), readTranslationsCatalogs(), QPlaceManagerEngineOsm::search(), and QQuickFontDialogImplAttached::selectFontInListViews().

+ Here is the caller graph for this function: