diff options
-rw-r--r-- | src/server/connectionframe/connectionframe.cpp | 31 | ||||
-rw-r--r-- | src/server/connectionframe/connectionframe.h | 4 |
2 files changed, 5 insertions, 30 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(); -} diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h index 3477721..cfb7fa3 100644 --- a/src/server/connectionframe/connectionframe.h +++ b/src/server/connectionframe/connectionframe.h @@ -38,7 +38,6 @@ private: static const int _startDragDistance = 40; void showDefaultThumb(); - void updateAppearance(); QLabel* addIcon(const QIcon* icon); // Static stylesheets @@ -80,8 +79,7 @@ signals: private slots: void onClientDisconnected(); void onThumbUpdated(Client* client, const QPixmap& thumb); - void onVncServerStateChange(Client* client); - void onVncClientStateChange(Client* client, int lastSource); + void updateAppearance(); }; #endif |