• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ファイルからMD5計算


Commit MetaInfo

修訂77649bccbcc8946e9d571b94018cf9788c7b150c (tree)
時間2013-12-20 08:46:26
作者alucky4416 <alucky4416@user...>
Commiteralucky4416

Log Message

CHG: bug fix at the file drop action.

Change Summary

差異

--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -132,7 +132,7 @@ void MainWindow::on_toolButton_Select_clicked()
132132 ui->progressBar->setValue(0);
133133 ui->checkBox_result->setText("");
134134 // Start Calc MD5
135- on_pushButton_Start_clicked();
135+ // on_pushButton_Start_clicked();
136136
137137 if (ui->lineEdit_VerifyMD5->text().isEmpty()) {
138138 ;
@@ -142,6 +142,12 @@ void MainWindow::on_toolButton_Select_clicked()
142142 }
143143 }
144144
145+void MainWindow::on_lineEdit_FilePath_textChanged(const QString &arg1)
146+{
147+ // Start Calc MD5
148+ on_pushButton_Start_clicked();
149+}
150+
145151 void MainWindow::on_pushButton_Start_clicked()
146152 {
147153 // QMessageBox::information(this, tr("information"), tr("StartButton clicked."));
@@ -204,3 +210,4 @@ void MainWindow::slot_calc_progress(int progress)
204210 {
205211 ui->progressBar->setValue(progress);
206212 }
213+
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -35,6 +35,8 @@ private slots:
3535
3636 void on_toolButton_Select_clicked();
3737
38+ void on_lineEdit_FilePath_textChanged(const QString &arg1);
39+
3840 void on_pushButton_Start_clicked();
3941
4042 void on_pushButton_Abort_clicked();
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -22,6 +22,9 @@
2222 <height>331</height>
2323 </size>
2424 </property>
25+ <property name="acceptDrops">
26+ <bool>true</bool>
27+ </property>
2528 <property name="windowTitle">
2629 <string>QtCalcMD5</string>
2730 </property>
@@ -48,6 +51,9 @@
4851 <height>41</height>
4952 </rect>
5053 </property>
54+ <property name="acceptDrops">
55+ <bool>false</bool>
56+ </property>
5157 <property name="alignment">
5258 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
5359 </property>
@@ -99,7 +105,7 @@
99105 <rect>
100106 <x>20</x>
101107 <y>120</y>
102- <width>371</width>
108+ <width>331</width>
103109 <height>23</height>
104110 </rect>
105111 </property>
@@ -183,8 +189,8 @@
183189 <rect>
184190 <x>20</x>
185191 <y>200</y>
186- <width>121</width>
187- <height>20</height>
192+ <width>141</width>
193+ <height>31</height>
188194 </rect>
189195 </property>
190196 <property name="font">
@@ -215,7 +221,7 @@
215221 <x>0</x>
216222 <y>0</y>
217223 <width>403</width>
218- <height>22</height>
224+ <height>26</height>
219225 </rect>
220226 </property>
221227 <widget class="QMenu" name="menuFile">