added MessageColor to represet special colors

This commit is contained in:
fourtf
2017-09-21 00:54:10 +02:00
parent 38d118c5dc
commit bd4601a5d4
12 changed files with 102 additions and 45 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ Word::Word(LazyLoadedImage *image, Type type, const QString &copytext, const QSt
}
// Text word
Word::Word(const QString &text, Type type, const QColor &color, const QString &copytext,
Word::Word(const QString &text, Type type, const MessageColor &color, const QString &copytext,
const QString &tooltip, const Link &link)
: image(nullptr)
, text(text)
@@ -96,7 +96,7 @@ const QString &Word::getTooltip() const
return this->tooltip;
}
const QColor &Word::getColor() const
const MessageColor &Word::getColor() const
{
return this->color;
}