Ensure note in connection settings isn't truncated
This commit is contained in:
parent
3cadd8cbcb
commit
375492e20a
|
@ -103,17 +103,11 @@
|
|||
<item row="1" column="1">
|
||||
<widget class="QLabel" name="instanceNoteLabel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>42</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>It is possible to save multiple configurations. This allows switching quickly between multiple Syncthing instances using the connection button in the right corner of the tray menu. The config label is an arbitrary name to identify a configuration and does not have to match the name of the corresponding Syncthing device.</string>
|
||||
</property>
|
||||
|
@ -380,6 +374,16 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="instanceNoteIcon">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
#endif
|
||||
#include <QFontDatabase>
|
||||
#include <QTextCursor>
|
||||
#include <QApplication>
|
||||
#include <QStyle>
|
||||
|
||||
#include <functional>
|
||||
|
||||
|
@ -69,6 +71,7 @@ QWidget *ConnectionOptionPage::setupWidget()
|
|||
auto *w = ConnectionOptionPageBase::setupWidget();
|
||||
ui()->certPathSelection->provideCustomFileMode(QFileDialog::ExistingFile);
|
||||
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));
|
||||
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));
|
||||
|
|
Loading…
Reference in New Issue