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())
then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable from
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 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