mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-26 04:25:00 +03:00
Shown client name in detect dialog
This commit is contained in:
parent
2aec1223ae
commit
1a69f458b7
@ -21,7 +21,7 @@
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
|
||||
AddClientDialog::AddClientDialog(QWidget *parent) :
|
||||
AddClientDialog::AddClientDialog(const QString& clientName, QWidget* parent) :
|
||||
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
||||
Ui::AddClientDialog(),
|
||||
m_AddResult(kAddClientIgnore)
|
||||
@ -29,7 +29,7 @@ AddClientDialog::AddClientDialog(QWidget *parent) :
|
||||
setupUi(this);
|
||||
|
||||
m_pLabelHead = new QLabel(this);
|
||||
m_pLabelHead->setText("Client wants to connect...");
|
||||
m_pLabelHead->setText("Client " + clientName + " wants to connect...");
|
||||
gridLayout->addWidget(m_pLabelHead, 0, 1, 1, 1, Qt::AlignCenter);
|
||||
|
||||
QIcon icon(":res/icons/64x64/video-display.png");
|
||||
|
@ -38,7 +38,7 @@ class AddClientDialog : public QDialog, public Ui::AddClientDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
AddClientDialog(QWidget *parent = 0);
|
||||
AddClientDialog(const QString& clientName, QWidget* parent = 0);
|
||||
~AddClientDialog();
|
||||
|
||||
int getAddResult() { return m_AddResult; }
|
||||
|
@ -372,7 +372,7 @@ bool ServerConfig::fixNoServer(const QString& name, int& index)
|
||||
|
||||
int ServerConfig::showAddClientDialog(const QString& clientName)
|
||||
{
|
||||
AddClientDialog addClientDialog(m_pMainWindow);
|
||||
AddClientDialog addClientDialog(clientName, m_pMainWindow);
|
||||
addClientDialog.exec();
|
||||
int result = addClientDialog.getAddResult();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user