mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
improve readability
This commit is contained in:
@@ -2354,14 +2354,9 @@ void QETDiagramEditor::generateTerminalBlock()
|
||||
#endif
|
||||
|
||||
bool success = false;
|
||||
QList<QString> exeList;
|
||||
QProcess *process = new QProcess(qApp);
|
||||
|
||||
// If launched under control:
|
||||
//connect(process, SIGNAL(errorOcurred(int error)), this, SLOT(slot_generateTerminalBlock_error()));
|
||||
//process->start("qet_tb_generator");
|
||||
|
||||
if (openedProjects().count()) {
|
||||
QList<QString> exeList;
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
|
||||
exeList << QStandardPaths::findExecutable("qet_tb_generator.exe")
|
||||
<< "qet_tb_generator"
|
||||
@@ -2378,6 +2373,15 @@ void QETDiagramEditor::generateTerminalBlock()
|
||||
<< (QDir::homePath() + "/.qet/qet_tb_generator")
|
||||
<< "qet_tb_generator";
|
||||
#endif
|
||||
|
||||
// If launched under control:
|
||||
//connect(process, SIGNAL(errorOcurred(int error)), this, SLOT(slot_generateTerminalBlock_error()));
|
||||
//process->start("qet_tb_generator");
|
||||
|
||||
qInfo() << " project to use for qet_tb_generator: "
|
||||
<< (QETDiagramEditor::currentProjectView()->project()->filePath());
|
||||
|
||||
if (openedProjects().count()) {
|
||||
foreach(QString exe, exeList) {
|
||||
qInfo() << " success so far: " << success << " - now searching for " << exe;
|
||||
if ((success == false) && exe.length() && QFile::exists(exe)) {
|
||||
|
||||
Reference in New Issue
Block a user