Changed edit method from double clicking to an edit button
This commit is contained in:
parent
87490c29cd
commit
b3f29f592b
5 changed files with 41 additions and 12 deletions
|
|
@ -12,12 +12,14 @@
|
|||
UserProfile::UserProfile(QString roomid,
|
||||
QString userid,
|
||||
TimelineViewManager *manager_,
|
||||
TimelineModel *parent)
|
||||
TimelineModel *parent,
|
||||
QString globalUsername)
|
||||
: QObject(parent)
|
||||
, roomid_(roomid)
|
||||
, userid_(userid)
|
||||
, manager(manager_)
|
||||
, model(parent)
|
||||
, globalUsername(globalUsername)
|
||||
{
|
||||
fetchDeviceList(this->userid_);
|
||||
|
||||
|
|
@ -98,7 +100,7 @@ UserProfile::userid()
|
|||
QString
|
||||
UserProfile::displayName()
|
||||
{
|
||||
return cache::displayName(roomid_, userid_);
|
||||
return globalUserProfile() ? globalUsername : cache::displayName(roomid_, userid_);
|
||||
}
|
||||
|
||||
QString
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue