Add tooltips for connection interval settings

This commit is contained in:
Martchus 2020-01-23 19:16:06 +01:00
parent 309ff054a0
commit 86e97a0d43
2 changed files with 16 additions and 0 deletions

View File

@ -316,6 +316,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Frequency for updating traffic statistics and download speed</string>
</property>
<property name="suffix">
<string> ms</string>
</property>
@ -356,6 +359,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Frequency for updating device statistics</string>
</property>
<property name="suffix">
<string> ms</string>
</property>
@ -382,6 +388,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Frequency to poll for new errors</string>
</property>
<property name="suffix">
<string> ms</string>
</property>
@ -408,6 +417,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Time to wait for reconnecting again when the connection to Syncthing has been lost. This setting might be overruled by systemd and launcher settings.</string>
</property>
<property name="specialValueText">
<string>no</string>
</property>

View File

@ -87,6 +87,10 @@ QWidget *ConnectionOptionPage::setupWidget()
ui()->certPathSelection->lineEdit()->setPlaceholderText(
QCoreApplication::translate("QtGui::ConnectionOptionPage", "Auto-detected for local instance"));
ui()->instanceNoteIcon->setPixmap(QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation).pixmap(32, 32));
ui()->pollTrafficLabel->setToolTip(ui()->pollTrafficSpinBox->toolTip());
ui()->pollDevStatsLabel->setToolTip(ui()->pollDevStatsSpinBox->toolTip());
ui()->pollErrorsLabel->setToolTip(ui()->pollErrorsSpinBox->toolTip());
ui()->reconnectLabel->setToolTip(ui()->reconnectSpinBox->toolTip());
QObject::connect(m_connection, &SyncthingConnection::statusChanged, bind(&ConnectionOptionPage::updateConnectionStatus, this));
QObject::connect(ui()->connectPushButton, &QPushButton::clicked, bind(&ConnectionOptionPage::applyAndReconnect, this));
QObject::connect(ui()->insertFromConfigFilePushButton, &QPushButton::clicked, bind(&ConnectionOptionPage::insertFromConfigFile, this));