Lines 9-14
Link Here
|
9 |
* * |
9 |
* * |
10 |
***************************************************************************/ |
10 |
***************************************************************************/ |
11 |
|
11 |
|
|
|
12 |
#include <cstdlib> |
12 |
|
13 |
|
13 |
#include <qlineedit.h> |
14 |
#include <qlineedit.h> |
14 |
#include <qlabel.h> |
15 |
#include <qlabel.h> |
Lines 86-92
Link Here
|
86 |
"Quit some other programs.\n" |
87 |
"Quit some other programs.\n" |
87 |
"CalcChecksum will be terminated now!"); |
88 |
"CalcChecksum will be terminated now!"); |
88 |
printError(err); |
89 |
printError(err); |
89 |
exit(1); |
90 |
std::exit(1); |
90 |
} |
91 |
} |
91 |
connect(comm, SIGNAL(lineAvailable_signal(const string*)), this, SLOT(handleProgressRequest(const string*))); |
92 |
connect(comm, SIGNAL(lineAvailable_signal(const string*)), this, SLOT(handleProgressRequest(const string*))); |
92 |
|
93 |
|
Lines 624-634
Link Here
|
624 |
} |
625 |
} |
625 |
} else if (unlikely(c == 'S')) { |
626 |
} else if (unlikely(c == 'S')) { |
626 |
// Progressbar top-value (total-steps value) |
627 |
// Progressbar top-value (total-steps value) |
627 |
progressBar->setTotalSteps(atoi(data->substr(1, |
628 |
progressBar->setTotalSteps(std::atoi(data->substr(1, |
628 |
data->length()).c_str())); |
629 |
data->length()).c_str())); |
629 |
} else { |
630 |
} else { |
630 |
// push progressBar |
631 |
// push progressBar |
631 |
progressBar->setProgress(atoi(data->c_str())); |
632 |
progressBar->setProgress(std::atoi(data->c_str())); |
632 |
} |
633 |
} |
633 |
} |
634 |
} |
634 |
|
635 |
|