6#include <QtCore/qfile.h>
21 QFile svgFile(iconSources[
static_cast<size_t>(iconType)]);
24 m_storage[
static_cast<size_t>(iconType)] = svgFile.
readAll().
toBase64();
32 return globalWasmWindowIconStore();
37 return m_storage[
static_cast<size_t>(
type)];
std::string_view getIcon(IconType type) const
static Base64IconStore * get()
QByteArray toBase64(Base64Options options=Base64Encoding) const
bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
QByteArray readAll()
Reads all remaining data from the device, and returns it as a byte array.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
#define QStringLiteral(str)