forked from qt-creator/qt-creator
Editor: make sure to update marker on annotation change
Ensures an update for the markers editor widget after any of the information displayed in the annotation has changed Change-Id: I845e05f5103ee1615cfc3d7760cdfc2bbf510f32 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -348,11 +348,13 @@ void TextMark::setIcon(const QIcon &icon)
|
||||
{
|
||||
m_icon = icon;
|
||||
m_iconProvider = std::function<QIcon()>();
|
||||
updateMarker();
|
||||
}
|
||||
|
||||
void TextMark::setIconProvider(const std::function<QIcon ()> &iconProvider)
|
||||
{
|
||||
m_iconProvider = iconProvider;
|
||||
updateMarker();
|
||||
}
|
||||
|
||||
const QIcon TextMark::icon() const
|
||||
@@ -368,6 +370,13 @@ Utils::optional<Theme::Color> TextMark::color() const
|
||||
void TextMark::setColor(const Theme::Color &color)
|
||||
{
|
||||
m_color = color;
|
||||
updateMarker();
|
||||
}
|
||||
|
||||
void TextMark::setLineAnnotation(const QString &lineAnnotation)
|
||||
{
|
||||
m_lineAnnotation = lineAnnotation;
|
||||
updateMarker();
|
||||
}
|
||||
|
||||
void TextMark::setToolTipProvider(const std::function<QString()> &toolTipProvider)
|
||||
|
||||
Reference in New Issue
Block a user