![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
#include "util.h"#include <stdexcept>#include <QString>#include <QApplication>#include <QTranslator>#include <QLocale>#include <QTime>#include <QSettings>#include <QTextCodec>#include <QUrl>#include <QAction>#include <QBuffer>#include <QModelIndexList>#include <QtDebug>#include <util/sll/qtutil.h>
Include dependency graph for util.cpp:Go to the source code of this file.
Namespaces | |
| LC | |
| LC::Util | |
Functions | |
| QString | LC::Util::GetAsBase64Src (const QImage &image) |
| Returns the given image in a Base64-encoded form. More... | |
| QString | LC::Util::MakePrettySize (qint64 sourceSize) |
| Makes a formatted size from number. More... | |
| QString | LC::Util::MakePrettySizeShort (qint64 size) |
| Converts a bytes count to a string representation with appropriately chosen units. More... | |
| QString | LC::Util::MakeTimeFromLong (ulong time) |
| Makes a formatted time from number. More... | |
| QTranslator * | LC::Util::LoadTranslator (const QString &baseName, const QString &localeName, const QString &prefix, const QString &appName) |
| QTranslator * | LC::Util::InstallTranslator (const QString &base, const QString &prefix=LCLowercase, const QString &appname=LCLowercase) |
| Loads and installs a translator. More... | |
| QString | LC::Util::GetLocaleName () |
| Returns the current locale name, like en_US. More... | |
| QString | LC::Util::GetInternetLocaleName (const QLocale &locale) |
| QString | LC::Util::GetLanguage () |
| Returns the current language name. More... | |
| QModelIndexList | LC::Util::GetSummarySelectedRows (QObject *sender) |
| QAction * | LC::Util::CreateSeparator (QObject *parent) |
| Returns the action that is set to act as a separator. More... | |
Variables | |
| const QString | LC::Util::LCLowercase = QStringLiteral ("leechcraft") |
| The "leechcraft" literal, with no run-time overhead. More... | |