File tree 2 files changed +29
-38
lines changed
2 files changed +29
-38
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ SummaryPage::SummaryPage(QWidget *parent) :
36
36
}
37
37
38
38
void SummaryPage::initializePage () {
39
+ ui->summaryTextBox ->clear ();
39
40
QString inputPath = field (" inputPath" ).toString ();
40
41
ui->summaryTextBox ->append (QString (" <b>Input path:</b> %1\n " ).arg (inputPath));
41
42
if (QFileInfo (inputPath).isDir ())
@@ -59,14 +60,14 @@ void SummaryPage::initializePage() {
59
60
60
61
int pieceSizeIndex = field (" pieceSize" ).toInt ();
61
62
int pieceSize;
62
- if (pieceSizeIndex == 0 )
63
+ if (pieceSizeIndex == 0 ) {
63
64
pieceSize = 0 ;
64
- else
65
- pieceSize = 1024 * (2 << (pieceSizeIndex + 2 ));
66
- if (pieceSize == 0 )
67
65
ui->summaryTextBox ->append (QString (" <b>Piece size:</b> Auto\n " ));
68
- else
66
+ }
67
+ else {
68
+ pieceSize = 1024 * (2 << (pieceSizeIndex + 2 ));
69
69
ui->summaryTextBox ->append (QString (" <b>Piece size:</b> %1 KB\n " ).arg (pieceSize));
70
+ }
70
71
ui->summaryTextBox ->append (QString (" <b>Include file modification times:</b> %1\n " ).arg (field (" includeFileModTimes" ).toString ()));
71
72
ui->summaryTextBox ->append (QString (" <b>Private torrent:</b> %1\n " ).arg (field (" privateTorrent" ).toString ()));
72
73
Original file line number Diff line number Diff line change 13
13
<property name =" windowTitle" >
14
14
<string >WizardPage</string >
15
15
</property >
16
- <widget class =" QLabel" name =" label" >
17
- <property name =" geometry" >
18
- <rect >
19
- <x >10</x >
20
- <y >0</y >
21
- <width >141</width >
22
- <height >17</height >
23
- </rect >
24
- </property >
25
- <property name =" font" >
26
- <font >
27
- <pointsize >14</pointsize >
28
- <weight >75</weight >
29
- <bold >true</bold >
30
- </font >
31
- </property >
32
- <property name =" text" >
33
- <string >Summary</string >
34
- </property >
35
- </widget >
36
- <widget class =" QTextEdit" name =" summaryTextBox" >
37
- <property name =" geometry" >
38
- <rect >
39
- <x >10</x >
40
- <y >20</y >
41
- <width >381</width >
42
- <height >221</height >
43
- </rect >
44
- </property >
45
- <property name =" readOnly" >
46
- <bool >true</bool >
47
- </property >
48
- </widget >
16
+ <layout class =" QVBoxLayout" name =" verticalLayout" >
17
+ <item >
18
+ <widget class =" QLabel" name =" label" >
19
+ <property name =" font" >
20
+ <font >
21
+ <pointsize >14</pointsize >
22
+ <weight >75</weight >
23
+ <bold >true</bold >
24
+ </font >
25
+ </property >
26
+ <property name =" text" >
27
+ <string >Summary</string >
28
+ </property >
29
+ </widget >
30
+ </item >
31
+ <item >
32
+ <widget class =" QTextEdit" name =" summaryTextBox" >
33
+ <property name =" readOnly" >
34
+ <bool >true</bool >
35
+ </property >
36
+ </widget >
37
+ </item >
38
+ </layout >
49
39
</widget >
50
40
<resources />
51
41
<connections />
You can’t perform that action at this time.
0 commit comments