Add context menu option to show the raw message

fixes #437
This commit is contained in:
Konstantinos Sideris 2018-09-12 16:27:25 +03:00
parent bc38fcec6c
commit e9ee29978d
7 changed files with 112 additions and 4 deletions

View file

@ -1,6 +1,7 @@
#include <QApplication>
#include <QComboBox>
#include <QFileDialog>
#include <QFontDatabase>
#include <QImageReader>
#include <QLabel>
#include <QMessageBox>
@ -190,9 +191,7 @@ RoomSettings::RoomSettings(const QString &room_id, QWidget *parent)
auto infoLabel = new QLabel(tr("Info").toUpper(), this);
infoLabel->setFont(font);
QFont monospaceFont;
monospaceFont.setFamily("Courier New");
monospaceFont.setStyleHint(QFont::Courier);
QFont monospaceFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
auto roomIdLabel = new QLabel(room_id, this);
roomIdLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);