From e3aec0cbf968a92ebc3e434552dc215e0d4e8d2e Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Mon, 5 May 2014 14:36:10 +0200 Subject: Resize thumbnail correctly --- src/server/connectionframe/connectionframe.cpp | 2 ++ src/server/connectionframe/connectionframe.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp index 1c7eaff..4b3a7dd 100644 --- a/src/server/connectionframe/connectionframe.cpp +++ b/src/server/connectionframe/connectionframe.cpp @@ -125,6 +125,8 @@ QLabel* ConnectionFrame::addIcon(const QIcon* icon) void ConnectionFrame::setSize(int width, int height) { this->resize(width, height); + if (this->_client == NULL) + showDefaultThumb(); } /** diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h index 1f39b79..3477721 100644 --- a/src/server/connectionframe/connectionframe.h +++ b/src/server/connectionframe/connectionframe.h @@ -41,6 +41,7 @@ private: void updateAppearance(); QLabel* addIcon(const QIcon* icon); + // Static stylesheets static const QString studentLblStyle, studentBgStyle; static const QString tutorLblStyle, tutorBgStyle; static const QString selectedBgStyle; -- cgit v1.2.3-55-g7522