![]() |
LeechCraft
0.6.70-13729-g7046a9d2a7
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 | |
| LC | |
| LC::Util | |
Functions | |
| UTIL_API QString | LC::Util::GetAsBase64Src (const QImage &image) |
| Returns the given image in a Base64-encoded form. More... | |
| UTIL_API QString | LC::Util::GetUserText (const Entity &entity) |
| Return the user-readable representation of the entity. More... | |
| UTIL_API QString | LC::Util::MakePrettySize (qint64 sourceSize) |
| Makes a formatted size from number. More... | |
| UTIL_API QString | LC::Util::MakePrettySizeShort (qint64 size) |
| Converts a bytes count to a string representation with appropriately chosen units. More... | |
| UTIL_API QString | LC::Util::MakeTimeFromLong (ulong time) |
| Makes a formatted time from number. More... | |
| UTIL_API QTranslator * | LC::Util::LoadTranslator (const QString &base, const QString &locale, const QString &prefix="leechcraft", const QString &appname="leechcraft") |
| UTIL_API QTranslator * | LC::Util::InstallTranslator (const QString &base, const QString &prefix="leechcraft", const QString &appname="leechcraft") |
| Loads and installs a translator. More... | |
| UTIL_API QString | LC::Util::GetLocaleName () |
| Returns the current locale name, like en_US. More... | |
| UTIL_API QString | LC::Util::GetInternetLocaleName (const QLocale &) |
| UTIL_API QString | LC::Util::GetLanguage () |
| Returns the current language name. More... | |
| UTIL_API QModelIndexList | LC::Util::GetSummarySelectedRows (QObject *sender) |
| UTIL_API QAction * | LC::Util::CreateSeparator (QObject *parent) |
| Returns the action that is set to act as a separator. More... | |
| UTIL_API QPixmap | LC::Util::DrawOverlayText (QPixmap px, const QString &text, QFont font, const QPen &pen, const QBrush &brush) |
| template<typename TagGetter , typename TagSetter > | |
| QDomElement | LC::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... | |