add padlock icon when use secure connection #4313
This commit is contained in:
parent
629f4b1781
commit
d642714fe8
|
@ -307,6 +307,19 @@
|
||||||
<property name="sizeConstraint">
|
<property name="sizeConstraint">
|
||||||
<enum>QLayout::SetDefaultConstraint</enum>
|
<enum>QLayout::SetDefaultConstraint</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="m_pLabelPadlock">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="pixmap">
|
||||||
|
<pixmap resource="Synergy.qrc">:/res/icons/16x16/padlock.png</pixmap>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="m_pStatusLabel">
|
<widget class="QLabel" name="m_pStatusLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|
|
@ -52,5 +52,6 @@
|
||||||
<file>lang/Languages.xml</file>
|
<file>lang/Languages.xml</file>
|
||||||
<file>icons/16x16/money.png</file>
|
<file>icons/16x16/money.png</file>
|
||||||
<file>image/spinning-wheel.gif</file>
|
<file>image/spinning-wheel.gif</file>
|
||||||
|
<file>icons/16x16/padlock.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 450 B |
|
@ -129,6 +129,8 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) :
|
||||||
m_pComboServerList->hide();
|
m_pComboServerList->hide();
|
||||||
|
|
||||||
updateEdition();
|
updateEdition();
|
||||||
|
|
||||||
|
m_pLabelPadlock->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
@ -726,13 +728,22 @@ void MainWindow::setSynergyState(qSynergyState state)
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case synergyConnected: {
|
case synergyConnected: {
|
||||||
|
if (m_AppConfig.getCryptoEnabled()) {
|
||||||
|
m_pLabelPadlock->show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_pLabelPadlock->hide();
|
||||||
|
}
|
||||||
|
|
||||||
setStatus(tr("Synergy is running."));
|
setStatus(tr("Synergy is running."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case synergyConnecting:
|
case synergyConnecting:
|
||||||
|
m_pLabelPadlock->hide();
|
||||||
setStatus(tr("Synergy is starting."));
|
setStatus(tr("Synergy is starting."));
|
||||||
break;
|
break;
|
||||||
case synergyDisconnected:
|
case synergyDisconnected:
|
||||||
|
m_pLabelPadlock->hide();
|
||||||
setStatus(tr("Synergy is not running."));
|
setStatus(tr("Synergy is not running."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue