Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Commit

Permalink
Show the room id in the room settings modal
Browse files Browse the repository at this point in the history
fixes #416
  • Loading branch information
mujx committed Aug 26, 2018
1 parent 345dca3 commit 9f43ff8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/dialogs/RoomSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,23 @@ RoomSettings::RoomSettings(const QString &room_id, QWidget *parent)
auto settingsLabel = new QLabel(tr("Settings").toUpper(), this);
settingsLabel->setFont(font);

auto infoLabel = new QLabel(tr("Info").toUpper(), this);
infoLabel->setFont(font);

QFont monospaceFont;
monospaceFont.setFamily("Courier New");
monospaceFont.setStyleHint(QFont::Courier);

auto roomIdLabel = new QLabel(room_id, this);
roomIdLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
roomIdLabel->setFont(monospaceFont);

auto roomIdLayout = new QHBoxLayout;
roomIdLayout->setMargin(0);
roomIdLayout->addWidget(new QLabel(tr("Internal ID"), this),
Qt::AlignBottom | Qt::AlignLeft);
roomIdLayout->addWidget(roomIdLabel, 0, Qt::AlignBottom | Qt::AlignRight);

auto notifLabel = new QLabel(tr("Notifications"), this);
auto notifCombo = new QComboBox(this);
notifCombo->setDisabled(true);
Expand Down Expand Up @@ -376,6 +393,8 @@ RoomSettings::RoomSettings(const QString &room_id, QWidget *parent)
layout->addLayout(accessOptionLayout);
layout->addLayout(encryptionOptionLayout);
layout->addLayout(keyRequestsLayout);
layout->addWidget(infoLabel, Qt::AlignLeft);
layout->addLayout(roomIdLayout);
layout->addWidget(errorLabel_);
layout->addLayout(spinnerLayout);
layout->addStretch(1);
Expand Down

0 comments on commit 9f43ff8

Please sign in to comment.