Hide the edit menu when the user doesn't have enough power
This commit is contained in:
parent
340c9ab9de
commit
791a9d0a4d
5 changed files with 93 additions and 20 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
class FlatButton;
|
||||
class TextField;
|
||||
class QHBoxLayout;
|
||||
class Avatar;
|
||||
class QPixmap;
|
||||
class QLayout;
|
||||
|
|
@ -91,6 +92,11 @@ private:
|
|||
static constexpr int AvatarSize = 64;
|
||||
|
||||
void setAvatar(const QImage &img) { avatarImg_ = img; }
|
||||
void setupEditButton();
|
||||
|
||||
//! Whether the user would be able to change the name or the topic of the room.
|
||||
bool hasEditRights_ = true;
|
||||
QHBoxLayout *editLayout_;
|
||||
|
||||
// Button section
|
||||
FlatButton *saveBtn_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue