ファイルからMD5計算
Revision | 77649bccbcc8946e9d571b94018cf9788c7b150c (tree) |
---|---|
Zeit | 2013-12-20 08:46:26 |
Autor | alucky4416 <alucky4416@user...> |
Commiter | alucky4416 |
CHG: bug fix at the file drop action.
@@ -132,7 +132,7 @@ void MainWindow::on_toolButton_Select_clicked() | ||
132 | 132 | ui->progressBar->setValue(0); |
133 | 133 | ui->checkBox_result->setText(""); |
134 | 134 | // Start Calc MD5 |
135 | - on_pushButton_Start_clicked(); | |
135 | + // on_pushButton_Start_clicked(); | |
136 | 136 | |
137 | 137 | if (ui->lineEdit_VerifyMD5->text().isEmpty()) { |
138 | 138 | ; |
@@ -142,6 +142,12 @@ void MainWindow::on_toolButton_Select_clicked() | ||
142 | 142 | } |
143 | 143 | } |
144 | 144 | |
145 | +void MainWindow::on_lineEdit_FilePath_textChanged(const QString &arg1) | |
146 | +{ | |
147 | + // Start Calc MD5 | |
148 | + on_pushButton_Start_clicked(); | |
149 | +} | |
150 | + | |
145 | 151 | void MainWindow::on_pushButton_Start_clicked() |
146 | 152 | { |
147 | 153 | // QMessageBox::information(this, tr("information"), tr("StartButton clicked.")); |
@@ -204,3 +210,4 @@ void MainWindow::slot_calc_progress(int progress) | ||
204 | 210 | { |
205 | 211 | ui->progressBar->setValue(progress); |
206 | 212 | } |
213 | + |
@@ -35,6 +35,8 @@ private slots: | ||
35 | 35 | |
36 | 36 | void on_toolButton_Select_clicked(); |
37 | 37 | |
38 | + void on_lineEdit_FilePath_textChanged(const QString &arg1); | |
39 | + | |
38 | 40 | void on_pushButton_Start_clicked(); |
39 | 41 | |
40 | 42 | void on_pushButton_Abort_clicked(); |
@@ -22,6 +22,9 @@ | ||
22 | 22 | <height>331</height> |
23 | 23 | </size> |
24 | 24 | </property> |
25 | + <property name="acceptDrops"> | |
26 | + <bool>true</bool> | |
27 | + </property> | |
25 | 28 | <property name="windowTitle"> |
26 | 29 | <string>QtCalcMD5</string> |
27 | 30 | </property> |
@@ -48,6 +51,9 @@ | ||
48 | 51 | <height>41</height> |
49 | 52 | </rect> |
50 | 53 | </property> |
54 | + <property name="acceptDrops"> | |
55 | + <bool>false</bool> | |
56 | + </property> | |
51 | 57 | <property name="alignment"> |
52 | 58 | <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> |
53 | 59 | </property> |
@@ -99,7 +105,7 @@ | ||
99 | 105 | <rect> |
100 | 106 | <x>20</x> |
101 | 107 | <y>120</y> |
102 | - <width>371</width> | |
108 | + <width>331</width> | |
103 | 109 | <height>23</height> |
104 | 110 | </rect> |
105 | 111 | </property> |
@@ -183,8 +189,8 @@ | ||
183 | 189 | <rect> |
184 | 190 | <x>20</x> |
185 | 191 | <y>200</y> |
186 | - <width>121</width> | |
187 | - <height>20</height> | |
192 | + <width>141</width> | |
193 | + <height>31</height> | |
188 | 194 | </rect> |
189 | 195 | </property> |
190 | 196 | <property name="font"> |
@@ -215,7 +221,7 @@ | ||
215 | 221 | <x>0</x> |
216 | 222 | <y>0</y> |
217 | 223 | <width>403</width> |
218 | - <height>22</height> | |
224 | + <height>26</height> | |
219 | 225 | </rect> |
220 | 226 | </property> |
221 | 227 | <widget class="QMenu" name="menuFile"> |