Browse Source

Add 16 KiB, 8 MiB and 16 MiB piece sizes in Torrent Creator

adaptive-webui-19844
ngosang 9 years ago
parent
commit
91818417be
  1. 2
      src/gui/torrentcreatordlg.cpp
  2. 17
      src/gui/torrentcreatordlg.ui

2
src/gui/torrentcreatordlg.cpp

@ -60,7 +60,7 @@ TorrentCreatorDlg::TorrentCreatorDlg(QWidget *parent) @@ -60,7 +60,7 @@ TorrentCreatorDlg::TorrentCreatorDlg(QWidget *parent)
showProgressBar(false);
loadTrackerList();
// Piece sizes
m_pieceSizes << 32 << 64 << 128 << 256 << 512 << 1024 << 2048 << 4096;
m_pieceSizes << 16 << 32 << 64 << 128 << 256 << 512 << 1024 << 2048 << 4096 << 8192 << 16384;
loadSettings();
show();
}

17
src/gui/torrentcreatordlg.ui

@ -158,8 +158,13 @@ @@ -158,8 +158,13 @@
<bool>false</bool>
</property>
<property name="currentIndex">
<number>3</number>
<number>4</number>
</property>
<item>
<property name="text">
<string>16 KiB</string>
</property>
</item>
<item>
<property name="text">
<string>32 KiB</string>
@ -200,6 +205,16 @@ @@ -200,6 +205,16 @@
<string>4 MiB</string>
</property>
</item>
<item>
<property name="text">
<string>8 MiB</string>
</property>
</item>
<item>
<property name="text">
<string>16 MiB</string>
</property>
</item>
</widget>
</item>
<item>

Loading…
Cancel
Save