![]() |
Qt 6.x
The Qt SDK
|
Inheritance diagram for QTranslatorPrivate:
Collaboration diagram for QTranslatorPrivate:Public Types | |
| enum | { Contexts = 0x2f , Hashes = 0x42 , Messages = 0x69 , NumerusRules = 0x88 , Dependencies = 0x96 , Language = 0xa7 } |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Additional Inherited Members | |
Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| template<typename Func1 , typename Func2 > | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1 , typename Func2 > | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 249 of file qtranslator.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| Contexts | |
| Hashes | |
| Messages | |
| NumerusRules | |
| Dependencies | |
| Language | |
Definition at line 253 of file qtranslator.cpp.
|
inline |
Definition at line 255 of file qtranslator.cpp.
| void QTranslatorPrivate::clear | ( | ) |
Definition at line 1028 of file qtranslator.cpp.
References QString::clear(), contextArray, contextLength, filePath, QCoreApplication::instance(), QCoreApplicationPrivate::isTranslatorInstalled(), QEvent::LanguageChange, messageArray, messageLength, numerusRulesArray, numerusRulesLength, offsetArray, offsetLength, QCoreApplication::postEvent(), resource, subTranslators, unmapLength, and unmapPointer.
Here is the call graph for this function:Definition at line 492 of file qtranslator.cpp.
References QFileInfo::absolutePath(), QFileDevice::close(), d, directory, file, QFileDevice::handle(), QString::isEmpty(), magic, MagicLength, MAP_FAILED, MAP_FILE, QResource::NoCompression, ok, QFile::open(), ptr(), Q_ASSERT, QIODevice::read(), QIODeviceBase::ReadOnly, resource, QFileDevice::seek(), QFile::size(), QString::startsWith(), QIODeviceBase::Unbuffered, unmapLength, and unmapPointer.
Here is the call graph for this function:Definition at line 778 of file qtranslator.cpp.
References contextArray, contextLength, Contexts, Dependencies, directory, QByteArray::fromRawData(), QString::fromUtf8(), Hashes, isValidNumerusRules(), Language, MagicLength, messageArray, messageLength, Messages, NumerusRules, numerusRulesArray, numerusRulesLength, offsetArray, offsetLength, ok, read32(), read8(), subTranslators, and tag.
Here is the call graph for this function:| QString QTranslatorPrivate::do_translate | ( | const char * | context, |
| const char * | sourceText, | ||
| const char * | comment, | ||
| int | n | ||
| ) | const |
Definition at line 921 of file qtranslator.cpp.
References context, contextArray, contextLength, elfHash(), elfHash_continue(), elfHash_finish(), getMessage(), hash, QString::isNull(), match(), messageArray, messageLength, numerusHelper(), numerusRulesArray, numerusRulesLength, offsetArray, offsetLength, read16(), read32(), read8(), and subTranslators.
Here is the call graph for this function:| const uchar* QTranslatorPrivate::contextArray |
Definition at line 279 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| uint QTranslatorPrivate::contextLength |
Definition at line 283 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| QString QTranslatorPrivate::filePath |
Definition at line 287 of file qtranslator.cpp.
Referenced by clear().
| QString QTranslatorPrivate::language |
Definition at line 286 of file qtranslator.cpp.
| const uchar* QTranslatorPrivate::messageArray |
Definition at line 277 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| uint QTranslatorPrivate::messageLength |
Definition at line 281 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| const uchar* QTranslatorPrivate::numerusRulesArray |
Definition at line 280 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| uint QTranslatorPrivate::numerusRulesLength |
Definition at line 284 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| const uchar* QTranslatorPrivate::offsetArray |
Definition at line 278 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| uint QTranslatorPrivate::offsetLength |
Definition at line 282 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| std::unique_ptr<QResource> QTranslatorPrivate::resource |
Definition at line 270 of file qtranslator.cpp.
| std::vector<std::unique_ptr<QTranslator> > QTranslatorPrivate::subTranslators |
Definition at line 273 of file qtranslator.cpp.
Referenced by clear(), do_load(), and do_translate().
| qsizetype QTranslatorPrivate::unmapLength |
Definition at line 267 of file qtranslator.cpp.
| char* QTranslatorPrivate::unmapPointer |
Definition at line 266 of file qtranslator.cpp.