Add simple tooltip system
This commit is contained in:
@@ -101,7 +101,7 @@ Message *Message::createSystemMessage(const QString &text)
|
||||
|
||||
AddCurrentTimestamp(message);
|
||||
|
||||
Word word(text, Word::Type::Default, MessageColor(MessageColor::Type::System), text, text);
|
||||
Word word(text, Word::Type::Default, MessageColor(MessageColor::Type::System), text, QString());
|
||||
|
||||
message->getWords().push_back(word);
|
||||
|
||||
@@ -142,7 +142,7 @@ Message *Message::createTimeoutMessage(const QString &username, const QString &d
|
||||
}
|
||||
text.append(".");
|
||||
|
||||
Word word(text, Word::Type::Default, MessageColor(MessageColor::Type::System), text, text);
|
||||
Word word(text, Word::Type::Default, MessageColor(MessageColor::Type::System), text, QString());
|
||||
|
||||
message->getWords().push_back(word);
|
||||
|
||||
|
||||
@@ -93,9 +93,9 @@ public:
|
||||
}
|
||||
|
||||
explicit Word(LazyLoadedImage *_image, Type getType, const QString ©text,
|
||||
const QString &getTooltip, const Link &getLink = Link());
|
||||
const QString &tooltip, const Link &getLink = Link());
|
||||
explicit Word(const QString &_text, Type getType, const MessageColor &getColor,
|
||||
const QString ©text, const QString &getTooltip, const Link &getLink = Link());
|
||||
const QString ©text, const QString &tooltip, const Link &getLink = Link());
|
||||
|
||||
LazyLoadedImage &getImage() const;
|
||||
const QString &getText() const;
|
||||
|
||||
Reference in New Issue
Block a user