squawk/ui/omemo/contactsettings.cpp

26 lines
681 B
C++
Raw Permalink Normal View History

2021-05-15 09:28:43 +00:00
/*
* Created by victoria on 2021-05-15.
*/
#include "contactsettings.h"
#include "ui_contactsettings.h"
#include "omemodevices.h"
2021-07-22 17:45:39 +00:00
ContactSettings::ContactSettings(QString jid, QWidget *parent)
: QDialog(parent), jid(std::move(jid)), m_ui(new Ui::ContactSettings()) {
2021-05-15 09:28:43 +00:00
m_ui->setupUi(this);
connect(m_ui->devicesButton, &QPushButton::clicked, this, &ContactSettings::openDeviceList);
2021-07-22 17:45:39 +00:00
setWindowTitle(QString("Encryption settings for %1").arg(this->jid));
2021-05-15 09:28:43 +00:00
}
ContactSettings::~ContactSettings() {}
void ContactSettings::openDeviceList() {
2021-07-22 17:45:39 +00:00
auto devices = new OMEMODevices(jid, this);
2021-05-15 09:28:43 +00:00
devices->setAttribute(Qt::WA_DeleteOnClose);
devices->show();
}