15 #ifndef QGSCOLORBREWERPALETTE_H 16 #define QGSCOLORBREWERPALETTE_H 32 QString palette( brewerString );
34 Q_FOREACH (
const QString& entry, list )
37 if ( items.
count() != 3 || items[0] != schemeName || items[1].toInt() != colors )
40 Q_FOREACH (
const QString& clr, colors )
52 QString palette( brewerString );
54 Q_FOREACH (
const QString& entry, list )
57 if ( items.
count() != 3 )
69 QString palette( brewerString );
71 Q_FOREACH (
const QString& entry, list )
74 if ( items.
count() != 3 || items[0] != schemeName )
76 variants << items[1].toInt();
86 #endif // QGSCOLORBREWERPALETTE_H
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
static QList< QColor > listSchemeColors(const QString &schemeName, int colors)
static QList< int > listSchemeVariants(const QString &schemeName)
int count(const T &value) const
static QStringList listSchemes()
static const char * brewerString
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
static QColor parseColor(const QString &colorStr, bool strictEval=false)
Attempts to parse a string as a color using a variety of common formats, including hex codes...