|
| QString | LeechCraft::Util::FromStdString (const std::string &str) |
| | An utility function that creates a QString from UTF8-encoded std::string. More...
|
| |
| UTIL_API QString | LeechCraft::Util::GetAsBase64Src (const QImage &image) |
| | Returns the given image in a Base64-encoded form. More...
|
| |
| UTIL_API QString | LeechCraft::Util::GetUserText (const Entity &entity) |
| | Return the user-readable representation of the entity. More...
|
| |
| UTIL_API QString | LeechCraft::Util::MakePrettySize (qint64 sourceSize) |
| | Makes a formatted size from number. More...
|
| |
| UTIL_API QString | LeechCraft::Util::MakeTimeFromLong (ulong time) |
| | Makes a formatted time from number. More...
|
| |
| UTIL_API QTranslator * | LeechCraft::Util::LoadTranslator (const QString &base, const QString &locale, const QString &prefix="leechcraft", const QString &appname="leechcraft") |
| |
| UTIL_API QTranslator * | LeechCraft::Util::InstallTranslator (const QString &base, const QString &prefix="leechcraft", const QString &appname="leechcraft") |
| | Loads and installs a translator. More...
|
| |
| UTIL_API QString | LeechCraft::Util::GetLocaleName () |
| | Returns the current locale name, like en_US. More...
|
| |
| UTIL_API QString | LeechCraft::Util::GetInternetLocaleName (const QLocale &) |
| |
| UTIL_API QString | LeechCraft::Util::GetLanguage () |
| | Returns the current language name. More...
|
| |
| UTIL_API QModelIndexList | LeechCraft::Util::GetSummarySelectedRows (QObject *sender) |
| |
| UTIL_API QAction * | LeechCraft::Util::CreateSeparator (QObject *parent) |
| | Returns the action that is set to act as a separator. More...
|
| |
| UTIL_API QPixmap | LeechCraft::Util::DrawOverlayText (QPixmap px, const QString &text, QFont font, const QPen &pen, const QBrush &brush) |
| |
| UTIL_API uintptr_t | LeechCraft::Util::Handle2Num (Qt::HANDLE handle) |
| | Converts the handle to an integer. More...
|
| |
| template<typename TagGetter , typename TagSetter > |
| QDomElement | LeechCraft::Util::GetElementForTags (const QStringList &tags, QDomNode &node, QDomDocument &document, const QString &elementName, TagGetter tagGetter, TagSetter tagSetter) |
| | Returns an element for a given tags list. More...
|
| |
| template<typename K , typename V > |
| QMap< K, V > | LeechCraft::Util::MakeMap (std::initializer_list< QPair< K, V >> l) |
| |