25 return mColors.value( role );
30 mColors[role] =
color;
void setColor(ColorRole role, const QColor &color)
Sets the color to use in the editor for the specified role.
QColor color(ColorRole role) const
Returns the color to use in the editor for the specified role.
QString id() const
Returns the ID of the color scheme, which is a unique, non-translated identifier for the scheme.
QgsCodeEditorColorScheme(const QString &id=QString(), const QString &name=QString())
Constructor for QgsCodeEditorColorScheme.
QString name() const
Returns the name of the color scheme, which is the translated, user-visible name of the scheme.
void setColors(const QMap< ColorRole, QColor > &colors)
Sets all colors for the scheme.