Shown client name in detect dialog
This commit is contained in:
parent
2aec1223ae
commit
1a69f458b7
|
@ -21,7 +21,7 @@
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
AddClientDialog::AddClientDialog(QWidget *parent) :
|
AddClientDialog::AddClientDialog(const QString& clientName, QWidget* parent) :
|
||||||
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
|
||||||
Ui::AddClientDialog(),
|
Ui::AddClientDialog(),
|
||||||
m_AddResult(kAddClientIgnore)
|
m_AddResult(kAddClientIgnore)
|
||||||
|
@ -29,7 +29,7 @@ AddClientDialog::AddClientDialog(QWidget *parent) :
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
m_pLabelHead = new QLabel(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);
|
gridLayout->addWidget(m_pLabelHead, 0, 1, 1, 1, Qt::AlignCenter);
|
||||||
|
|
||||||
QIcon icon(":res/icons/64x64/video-display.png");
|
QIcon icon(":res/icons/64x64/video-display.png");
|
||||||
|
|
|
@ -38,7 +38,7 @@ class AddClientDialog : public QDialog, public Ui::AddClientDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
AddClientDialog(QWidget *parent = 0);
|
AddClientDialog(const QString& clientName, QWidget* parent = 0);
|
||||||
~AddClientDialog();
|
~AddClientDialog();
|
||||||
|
|
||||||
int getAddResult() { return m_AddResult; }
|
int getAddResult() { return m_AddResult; }
|
||||||
|
|
|
@ -372,7 +372,7 @@ bool ServerConfig::fixNoServer(const QString& name, int& index)
|
||||||
|
|
||||||
int ServerConfig::showAddClientDialog(const QString& clientName)
|
int ServerConfig::showAddClientDialog(const QString& clientName)
|
||||||
{
|
{
|
||||||
AddClientDialog addClientDialog(m_pMainWindow);
|
AddClientDialog addClientDialog(clientName, m_pMainWindow);
|
||||||
addClientDialog.exec();
|
addClientDialog.exec();
|
||||||
int result = addClientDialog.getAddResult();
|
int result = addClientDialog.getAddResult();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue