summaryrefslogtreecommitdiffstats
path: root/src/server/connectionframe/connectionframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/connectionframe/connectionframe.h')
-rw-r--r--src/server/connectionframe/connectionframe.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h
index 4558406..898d97a 100644
--- a/src/server/connectionframe/connectionframe.h
+++ b/src/server/connectionframe/connectionframe.h
@@ -27,11 +27,12 @@ private:
QLabel *_icoCam, *_icoEye, *_icoLock;
QList<QLabel*> _icons;
- QPixmap _remoteScreen;
+ QImage _remoteScreen;
QPoint _clickPoint;
QPoint _previousPosition;
QPoint _gridPosition;
+ QSize _desiredThumbSize;
Client *_client;
@@ -43,6 +44,7 @@ private:
static const int _startDragDistance = 40;
void showDefaultThumb();
+ void calcDesiredThumbSize(const QSize &frameSize);
QLabel* addIcon(const QIcon* icon);
MainWindow *_mainWindow;
@@ -59,7 +61,6 @@ public:
void setGridPosition(const QPoint& pos);
void updateGeometry();
- const QPixmap& getFramePixmap() const { return _remoteScreen; }
void assignClient(Client *client);
void setSelection(bool selected);
inline bool isSelected() { return _isSelected; }
@@ -73,6 +74,7 @@ public:
void setTutor(bool b);
protected:
+ void resizeEvent(QResizeEvent* event) { calcDesiredThumbSize(event->size()); }
void mouseDoubleClickEvent(QMouseEvent* event);
void mouseReleaseEvent(QMouseEvent* e);
void enterEvent(QEvent* event);
@@ -89,7 +91,7 @@ signals:
private slots:
void onClientDisconnected();
- void onThumbUpdated(Client* client, const QPixmap& thumb, const QByteArray& rawImage);
+ void onThumbUpdated(Client* client, const QImage& thumb);
void updateAppearance();
void updateLabels();
};