diff options
Diffstat (limited to 'src/server/connectionframe/connectionframe.cpp')
-rw-r--r-- | src/server/connectionframe/connectionframe.cpp | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp index b772231..bafa525 100644 --- a/src/server/connectionframe/connectionframe.cpp +++ b/src/server/connectionframe/connectionframe.cpp @@ -137,14 +137,10 @@ void ConnectionFrame::setSize(int width, int height) void ConnectionFrame::assignClient(Client* client) { assert(_client == NULL); - connect( client, SIGNAL(disconnected()), - this, SLOT(onClientDisconnected()) ); - connect( client, SIGNAL(thumbUpdated(Client*, const QPixmap&)), - this, SLOT(onThumbUpdated(Client*, const QPixmap&)) ); - connect( client, SIGNAL(vncServerStateChange(Client*)), - this, SLOT(onVncServerStateChange(Client*)) ); - connect( client, SIGNAL(vncClientStateChange(Client*, int)), - this, SLOT(onVncClientStateChange(Client*, int)) ); + connect( client, SIGNAL(disconnected()), this, SLOT(onClientDisconnected()) ); + 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*, int)), this, SLOT(updateAppearance())); _client = client; _computerId = client->ip(); _lblHostName->setText(client->ip()); @@ -386,22 +382,3 @@ void ConnectionFrame::onThumbUpdated(Client* client, const QPixmap& thumb) //_imgScreen->setPixmap(_remoteScreen); this->repaint(); } - -/** - * Update appearence if vnc server state has changed. - * @param client - */ -void ConnectionFrame::onVncServerStateChange(Client* client) -{ - this->updateAppearance(); -} - -/** - * Update appearence if vnc client state has changed. - * @param client - * @param lastSource - */ -void ConnectionFrame::onVncClientStateChange(Client* client, int lastSource) -{ - this->updateAppearance(); -} |