Class: QgsRecentColorScheme¶
-
class
qgis.core.
QgsRecentColorScheme
¶ Bases:
qgis._core.QgsColorScheme
Constructor for QgsRecentColorScheme.
QgsRecentColorScheme(QgsRecentColorScheme)
A color scheme which contains the most recently used colors.
New in version 2.5: Enums
Methods
Adds a color to the list of recent colors.
Returns the most recently used color.
Signals
Attributes
-
addRecentColor
(color: Union[QColor, Qt.GlobalColor, QGradient])¶ Adds a color to the list of recent colors.
- Parameters
color – color to add
See also
New in version 2.14.
-
clone
(self) → QgsRecentColorScheme¶
-
fetchColors
(self, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → List[Tuple[QColor, str]]¶
-
flags
(self) → QgsColorScheme.SchemeFlags¶
-
lastUsedColor
() → QColor¶ Returns the most recently used color.
See also
New in version 3.0.
-
schemeName
(self) → str¶
-