mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
commit
7dc7b95bfd
3 changed files with 6 additions and 24 deletions
|
@ -155,26 +155,21 @@ QString FileSystemPathEdit::FileSystemPathEditPrivate::dialogCaptionOrDefault()
|
||||||
|
|
||||||
void FileSystemPathEdit::FileSystemPathEditPrivate::modeChanged()
|
void FileSystemPathEdit::FileSystemPathEditPrivate::modeChanged()
|
||||||
{
|
{
|
||||||
QStyle::StandardPixmap pixmap = QStyle::SP_DialogOpenButton;
|
|
||||||
bool showDirsOnly = false;
|
bool showDirsOnly = false;
|
||||||
switch (m_mode)
|
switch (m_mode)
|
||||||
{
|
{
|
||||||
case FileSystemPathEdit::Mode::FileOpen:
|
case FileSystemPathEdit::Mode::FileOpen:
|
||||||
case FileSystemPathEdit::Mode::FileSave:
|
case FileSystemPathEdit::Mode::FileSave:
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
pixmap = QStyle::SP_DirOpenIcon;
|
|
||||||
#endif
|
|
||||||
showDirsOnly = false;
|
showDirsOnly = false;
|
||||||
break;
|
break;
|
||||||
case FileSystemPathEdit::Mode::DirectoryOpen:
|
case FileSystemPathEdit::Mode::DirectoryOpen:
|
||||||
case FileSystemPathEdit::Mode::DirectorySave:
|
case FileSystemPathEdit::Mode::DirectorySave:
|
||||||
pixmap = QStyle::SP_DirOpenIcon;
|
|
||||||
showDirsOnly = true;
|
showDirsOnly = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw std::logic_error("Unknown FileSystemPathEdit mode");
|
throw std::logic_error("Unknown FileSystemPathEdit mode");
|
||||||
}
|
}
|
||||||
m_browseAction->setIcon(QApplication::style()->standardIcon(pixmap));
|
m_browseAction->setIcon(QApplication::style()->standardIcon(QStyle::SP_DirOpenIcon));
|
||||||
m_editor->completeDirectoriesOnly(showDirsOnly);
|
m_editor->completeDirectoriesOnly(showDirsOnly);
|
||||||
|
|
||||||
m_validator->setExistingOnly(m_mode != FileSystemPathEdit::Mode::FileSave);
|
m_validator->setExistingOnly(m_mode != FileSystemPathEdit::Mode::FileSave);
|
||||||
|
|
|
@ -1457,6 +1457,9 @@ Manual: Various torrent properties (e.g. save path) must be assigned manually</s
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="spinPort">
|
<widget class="QSpinBox" name="spinPort">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Set to 0 to let your system pick an unused port</string>
|
||||||
|
</property>
|
||||||
<property name="specialValueText">
|
<property name="specialValueText">
|
||||||
<string>Any</string>
|
<string>Any</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1570,9 +1573,6 @@ Manual: Various torrent properties (e.g. save path) must be assigned manually</s
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Maximum number of upload slots per torrent:</string>
|
<string>Maximum number of upload slots per torrent:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
|
@ -1580,9 +1580,6 @@ Manual: Various torrent properties (e.g. save path) must be assigned manually</s
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Global maximum number of upload slots:</string>
|
<string>Global maximum number of upload slots:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
|
@ -1668,9 +1665,6 @@ Manual: Various torrent properties (e.g. save path) must be assigned manually</s
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -3367,11 +3361,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QLineEdit" name="DNSUsernameTxt">
|
<widget class="QLineEdit" name="DNSUsernameTxt"/>
|
||||||
<property name="maxLength">
|
|
||||||
<number>50</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="label_22">
|
<widget class="QLabel" name="label_22">
|
||||||
|
@ -3382,9 +3372,6 @@ Use ';' to split multiple entries. Can use wildcard '*'.</string>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QLineEdit" name="DNSPasswordTxt">
|
<widget class="QLineEdit" name="DNSPasswordTxt">
|
||||||
<property name="maxLength">
|
|
||||||
<number>50</number>
|
|
||||||
</property>
|
|
||||||
<property name="echoMode">
|
<property name="echoMode">
|
||||||
<enum>QLineEdit::Password</enum>
|
<enum>QLineEdit::Password</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -231,7 +231,7 @@
|
||||||
<legend>QBT_TR(Listening Port)QBT_TR[CONTEXT=OptionsDialog]</legend>
|
<legend>QBT_TR(Listening Port)QBT_TR[CONTEXT=OptionsDialog]</legend>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label for="port_value">QBT_TR(Port used for incoming connections:)QBT_TR[CONTEXT=OptionsDialog]</label>
|
<label for="port_value">QBT_TR(Port used for incoming connections:)QBT_TR[CONTEXT=OptionsDialog]</label>
|
||||||
<input type="text" id="port_value" style="width: 4em;" />
|
<input type="text" id="port_value" style="width: 4em;" title="QBT_TR(Set to 0 to let your system pick an unused port)QBT_TR[CONTEXT=OptionsDialog]" />
|
||||||
<button style="margin-left: 1em;" onclick="qBittorrent.Preferences.generateRandomPort();">QBT_TR(Random)QBT_TR[CONTEXT=OptionsDialog]</button>
|
<button style="margin-left: 1em;" onclick="qBittorrent.Preferences.generateRandomPort();">QBT_TR(Random)QBT_TR[CONTEXT=OptionsDialog]</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue