From 34f89d3174305d8142c4fa1fb43ab1304f1f8188 Mon Sep 17 00:00:00 2001 From: ngosang Date: Sat, 4 Jul 2015 01:53:19 +0200 Subject: [PATCH] Add 16 KiB, 8 MiB and 16 MiB piece sizes in Torrent Creator --- src/gui/torrentcreator/createtorrent.ui | 17 ++++++++++++++++- src/gui/torrentcreator/torrentcreatordlg.cpp | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/gui/torrentcreator/createtorrent.ui b/src/gui/torrentcreator/createtorrent.ui index 876accdd1..524fc2db8 100644 --- a/src/gui/torrentcreator/createtorrent.ui +++ b/src/gui/torrentcreator/createtorrent.ui @@ -158,8 +158,13 @@ false - 3 + 4 + + + 16 KiB + + 32 KiB @@ -200,6 +205,16 @@ 4 MiB + + + 8 MiB + + + + + 16 MiB + + diff --git a/src/gui/torrentcreator/torrentcreatordlg.cpp b/src/gui/torrentcreator/torrentcreatordlg.cpp index 882192ce6..6568c811f 100644 --- a/src/gui/torrentcreator/torrentcreatordlg.cpp +++ b/src/gui/torrentcreator/torrentcreatordlg.cpp @@ -59,7 +59,7 @@ TorrentCreatorDlg::TorrentCreatorDlg(QWidget *parent): QDialog(parent), creatorT showProgressBar(false); loadTrackerList(); // Piece sizes - m_piece_sizes << 32 << 64 << 128 << 256 << 512 << 1024 << 2048 << 4096; + m_piece_sizes << 16 << 32 << 64 << 128 << 256 << 512 << 1024 << 2048 << 4096 << 8192 << 16384; loadSettings(); show(); }