summaryrefslogtreecommitdiffstats
path: root/src/client/toolbar/toolbar.cpp
diff options
context:
space:
mode:
authorBjörn Hagemeister2014-05-22 15:05:07 +0200
committerBjörn Hagemeister2014-05-22 15:05:07 +0200
commit899eeb4975efa9458fe32ffec162014cb8324c86 (patch)
treea17c723830d3109b0c88a1255b24eb5f1a3b0dee /src/client/toolbar/toolbar.cpp
parentRefactor ambigious projectionsSoure to BroadcastSource (diff)
downloadpvs2-899eeb4975efa9458fe32ffec162014cb8324c86.tar.gz
pvs2-899eeb4975efa9458fe32ffec162014cb8324c86.tar.xz
pvs2-899eeb4975efa9458fe32ffec162014cb8324c86.zip
Changed the blinking red dot in toolbar while beeing vnc server to blinking eye.
Diffstat (limited to 'src/client/toolbar/toolbar.cpp')
-rw-r--r--src/client/toolbar/toolbar.cpp14
1 files changed, 7 insertions, 7 deletions
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;
}
}