summaryrefslogtreecommitdiffstats
path: root/src/server/connectionframe/connectionframe.cpp
diff options
context:
space:
mode:
authorManuel Schneider2014-05-26 20:59:52 +0200
committerManuel Schneider2014-05-26 20:59:52 +0200
commita8b6a97a1ceea1791982f73c27408a2b5268217e (patch)
treef0bd01a5071a3ebe730937ab74cfab7164f931fb /src/server/connectionframe/connectionframe.cpp
parentSeveral changes: (diff)
downloadpvs2-a8b6a97a1ceea1791982f73c27408a2b5268217e.tar.gz
pvs2-a8b6a97a1ceea1791982f73c27408a2b5268217e.tar.xz
pvs2-a8b6a97a1ceea1791982f73c27408a2b5268217e.zip
Remove unnecessary slots
Diffstat (limited to 'src/server/connectionframe/connectionframe.cpp')
-rw-r--r--src/server/connectionframe/connectionframe.cpp31
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();
-}