From 899eeb4975efa9458fe32ffec162014cb8324c86 Mon Sep 17 00:00:00 2001 From: Björn Hagemeister Date: Thu, 22 May 2014 15:05:07 +0200 Subject: Changed the blinking red dot in toolbar while beeing vnc server to blinking eye. --- src/client/toolbar/toolbar.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/client/toolbar/toolbar.cpp') diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index 6d9e9a5..7731eca 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -24,7 +24,7 @@ */ Toolbar::Toolbar(QWidget *parent) : QWidget(parent), _ui(new Ui::Toolbar), _hideTimer(this), _connection(NULL), - _blinkTimer(this),_cam32(":cam32.svg"), _camOff32(":cam_off32.svg") + _blinkTimer(this),_cam32(":cam32.svg"), _beWatchedEye(":eye") { /* Initialize the GUI */ _ui->setupUi(this); @@ -130,16 +130,16 @@ void Toolbar::enterEvent(QEvent* e) */ void Toolbar::cameraBlink() { - static bool showRedDot = false; - if (!showRedDot) + static bool showEye = false; + if (!showEye) { - _ui->icon_cam->setPixmap(_camOff32); - showRedDot = true; + _ui->icon_cam->setPixmap(_beWatchedEye); + showEye = true; } else { - _ui->icon_cam->setPixmap(_cam32); - showRedDot = false; + _ui->icon_cam->setPixmap(QPixmap()); // set empty pixmap for blinking effect + showEye = false; } } -- cgit v1.2.3-55-g7522