![]() |
LeechCraft
0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
|
#include "utilconfig.h"#include <QString>#include <QDir>#include <QModelIndex>#include <QtXml/QDomElement>#include <QtDebug>#include <interfaces/structures.h>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| LeechCraft | |
| LeechCraft::Util | |
Functions | |
| 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< std::pair< K, V >> l) |