summary refs log tree commit diff
path: root/src/popups/PopupItem.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-12-15 02:56:04 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-12-15 02:56:04 +0100
commit5fc1f3bd678cca690268eafbb7e4595657a6e133 (patch)
treeed88e9c771494672045d16aca6831b3fde40d112 /src/popups/PopupItem.cpp
parentAdd qml debugging option (diff)
downloadnheko-5fc1f3bd678cca690268eafbb7e4595657a6e133.tar.xz
Reduce overhead of Cache.h
Diffstat (limited to 'src/popups/PopupItem.cpp')
-rw-r--r--src/popups/PopupItem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/popups/PopupItem.cpp b/src/popups/PopupItem.cpp

index c4d4327f..db97e4a3 100644 --- a/src/popups/PopupItem.cpp +++ b/src/popups/PopupItem.cpp
@@ -49,7 +49,7 @@ UserItem::UserItem(QWidget *parent, const QString &user_id) : PopupItem(parent) , userId_{user_id} { - auto displayName = Cache::displayName(ChatPage::instance()->currentRoom(), userId_); + auto displayName = cache::displayName(ChatPage::instance()->currentRoom(), userId_); avatar_->setLetter(utils::firstChar(displayName)); @@ -70,7 +70,7 @@ UserItem::updateItem(const QString &user_id) { userId_ = user_id; - auto displayName = Cache::displayName(ChatPage::instance()->currentRoom(), userId_); + auto displayName = cache::displayName(ChatPage::instance()->currentRoom(), userId_); // If it's a matrix id we use the second letter. if (displayName.size() > 1 && displayName.at(0) == '@') @@ -93,7 +93,7 @@ UserItem::mousePressEvent(QMouseEvent *event) { if (event->buttons() != Qt::RightButton) emit clicked( - Cache::displayName(ChatPage::instance()->currentRoom(), selectedText())); + cache::displayName(ChatPage::instance()->currentRoom(), selectedText())); QWidget::mousePressEvent(event); }