From d642714fe898cc78abebce32370bccd48ad3a588 Mon Sep 17 00:00:00 2001 From: XinyuHou Date: Fri, 13 Feb 2015 10:14:11 +0000 Subject: [PATCH] add padlock icon when use secure connection #4313 --- src/gui/res/MainWindowBase.ui | 13 +++++++++++++ src/gui/res/Synergy.qrc | 1 + src/gui/res/icons/16x16/padlock.png | Bin 0 -> 450 bytes src/gui/src/MainWindow.cpp | 11 +++++++++++ 4 files changed, 25 insertions(+) create mode 100644 src/gui/res/icons/16x16/padlock.png diff --git a/src/gui/res/MainWindowBase.ui b/src/gui/res/MainWindowBase.ui index cc5a9d0c..88f07b27 100644 --- a/src/gui/res/MainWindowBase.ui +++ b/src/gui/res/MainWindowBase.ui @@ -307,6 +307,19 @@ QLayout::SetDefaultConstraint + + + + true + + + + + + :/res/icons/16x16/padlock.png + + + diff --git a/src/gui/res/Synergy.qrc b/src/gui/res/Synergy.qrc index c9054378..a7027617 100644 --- a/src/gui/res/Synergy.qrc +++ b/src/gui/res/Synergy.qrc @@ -52,5 +52,6 @@ lang/Languages.xml icons/16x16/money.png image/spinning-wheel.gif + icons/16x16/padlock.png diff --git a/src/gui/res/icons/16x16/padlock.png b/src/gui/res/icons/16x16/padlock.png new file mode 100644 index 0000000000000000000000000000000000000000..e313e97e96215bfc299305c9976f269fc5f3561f GIT binary patch literal 450 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}LV!<*>-+cbFU}QxzR&CZ<-E^# z8;%}5`ub$-<1H4y9!~u8_0r#;kN$qYeWZ!+#umlDzu#V2D*pQQ>ytf#$B!TX^W#HhKi{mlvrXo3J@5DDlYZVRTf27ce=wL-w)8pBE`^dHzhH<6PLd%e zM*1yKEn||myNg^Amx4Bsy7G|u~ m?A?|@Thide(); updateEdition(); + + m_pLabelPadlock->hide(); } MainWindow::~MainWindow() @@ -726,13 +728,22 @@ void MainWindow::setSynergyState(qSynergyState state) switch (state) { case synergyConnected: { + if (m_AppConfig.getCryptoEnabled()) { + m_pLabelPadlock->show(); + } + else { + m_pLabelPadlock->hide(); + } + setStatus(tr("Synergy is running.")); break; } case synergyConnecting: + m_pLabelPadlock->hide(); setStatus(tr("Synergy is starting.")); break; case synergyDisconnected: + m_pLabelPadlock->hide(); setStatus(tr("Synergy is not running.")); break; }