15 svg_data.
replace(regex,
to.name().toUtf8());
21 svg_data.
replace(regex,
to.name().toUtf8());
28 QRegExp color_to_color_regex(
"\\s*(#[0-9a-f]{6}\\s*->\\s*#[0-9a-f]{6}\\s*,\\s*)*#[0-9a-f]{6}\\s*->\\s*#[0-9a-f]{6}\\s*",
Qt::CaseInsensitive);
29 if (all_to_color_regex.
exactMatch(color_style))
31 color_regex.
indexIn(color_style);
35 else if (color_to_color_regex.
exactMatch(color_style))
76 QString svgDataDisabled(svgDataEnabled);
78 if (!from_to_colors_enabled.
isEmpty())
87 if (from_to_colors_disabled.
isEmpty())
Creates Icons from svg data.
QIcon getStyledSvgIcon(const QString &from_to_colors_enabled, const QString &svg_path, QString from_to_colors_disabled=QString())
void changeAllSvgColors(QString &svg_data, const QColor &to)
void changeSvgColor(QString &svg_data, const QColor &from, const QColor &to)
bool applyColorStyle(QString &svg_data, const QString &color_style)
QString name() const const
virtual bool open(QIODevice::OpenMode mode) override
QString cap(int nth) const const
bool exactMatch(const QString &str) const const
int indexIn(const QString &str, int offset, QRegExp::CaretMode caretMode) const const
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString left(int n) const const
QString & replace(int position, int n, QChar after)
QString right(int n) const const
QString simplified() const const
QByteArray toUtf8() const const