added search popup

This commit is contained in:
fourtf
2018-01-05 13:42:23 +01:00
parent 02b73cfa27
commit 47a813d5d6
9 changed files with 163 additions and 4 deletions
+22
View File
@@ -38,6 +38,10 @@ int Message::getTimeoutCount() const
const QString &Message::getContent() const
{
if (this->content.isNull()) {
this->updateContent();
}
return this->content;
}
@@ -86,6 +90,24 @@ void Message::setDisableCompactEmotes(bool value)
this->disableCompactEmotes = value;
}
void Message::updateContent() const
{
QString _content("");
bool first;
for (const Word &word : this->words) {
if (!first) {
_content += "";
}
_content += word.getCopyText();
first = false;
}
this->content = _content;
}
namespace {
void AddCurrentTimestamp(Message *message)