We now also add localized names to the autocompletion
Changed the login name in autocompletion to the display name Autocompletion model is now only updated on the "first completion"
This commit is contained in:
@@ -36,11 +36,6 @@ int Message::getTimeoutCount() const
|
||||
return this->timeoutCount;
|
||||
}
|
||||
|
||||
const QString &Message::getDisplayName() const
|
||||
{
|
||||
return this->displayName;
|
||||
}
|
||||
|
||||
const QString &Message::getContent() const
|
||||
{
|
||||
return this->content;
|
||||
|
||||
@@ -22,14 +22,15 @@ public:
|
||||
void setHighlight(bool value);
|
||||
const QString &getTimeoutUser() const;
|
||||
int getTimeoutCount() const;
|
||||
const QString &getDisplayName() const;
|
||||
const QString &getContent() const;
|
||||
const std::chrono::time_point<std::chrono::system_clock> &getParseTime() const;
|
||||
std::vector<Word> &getWords();
|
||||
bool isDisabled() const;
|
||||
const QString &getId() const;
|
||||
|
||||
QString username;
|
||||
QString loginName;
|
||||
QString displayName;
|
||||
QString localizedName;
|
||||
|
||||
const QString text;
|
||||
bool centered = false;
|
||||
@@ -58,7 +59,6 @@ private:
|
||||
bool disabled = false;
|
||||
std::chrono::time_point<std::chrono::system_clock> parseTime;
|
||||
|
||||
QString displayName = "";
|
||||
QString content;
|
||||
QString id = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user