diff options
Diffstat (limited to 'src/server/connectionframe/connectionframe.cpp')
-rw-r--r-- | src/server/connectionframe/connectionframe.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp index 444902e..b09139c 100644 --- a/src/server/connectionframe/connectionframe.cpp +++ b/src/server/connectionframe/connectionframe.cpp @@ -41,7 +41,7 @@ static QString style_disconnected( QGroupBox { background-color: #7F7F7F; margin: 1px; border-radius: 4px}" ); -static QIcon *term = NULL, *cam = NULL, *eye = NULL; +static QIcon *term = NULL, *cam = NULL, *eye = NULL, *lock = NULL; /** * Initialize frame for connected client. @@ -58,8 +58,9 @@ ConnectionFrame::ConnectionFrame(QWidget *parent, int width, int height) : if (term == NULL) { term = new QIcon(":terminal"); - cam = new QIcon(":cam32"); - eye = new QIcon(":eye"); + cam = new QIcon(":cf_cam"); + eye = new QIcon(":cf_eye"); + lock = new QIcon(":cf_lock"); } //this->setAttribute(Qt::WA_OpaquePaintEvent); @@ -82,12 +83,13 @@ ConnectionFrame::ConnectionFrame(QWidget *parent, int width, int height) : _icoCam = addIcon(cam); _icoEye = addIcon(eye); + _icoLock = addIcon(lock); _iconLayout->addWidget(_icoCam); _iconLayout->addWidget(_icoEye); + _iconLayout->addWidget(_icoLock); _iconLayout->addStretch(); - //_layout->addWidget(_imgScreen); _mainLayout->addLayout(_iconLayout); _mainLayout->addStretch(); _mainLayout->addWidget(_lblUserName); @@ -141,6 +143,7 @@ void ConnectionFrame::assignClient(Client* client) connect( client, SIGNAL(thumbUpdated(Client*, const QPixmap&)), this, SLOT(onThumbUpdated(Client*, const QPixmap&)) ); connect( client, SIGNAL(vncServerStateChange(Client*)), this, SLOT(updateAppearance())); connect( client, SIGNAL(vncClientStateChange(Client*)), this, SLOT(updateAppearance())); + connect( client, SIGNAL(stateChanged()), this, SLOT(updateAppearance())); _client = client; _computerId = client->ip(); _lblHostName->setText(client->ip()); @@ -329,6 +332,7 @@ void ConnectionFrame::updateAppearance() } _icoCam->setVisible(_client->isActiveVncServer()); _icoEye->setVisible(_client->isActiveVncClient()); + _icoLock->setVisible(_client->isLocked()); // Normal client, no special stuff active |