Compare commits

...

7 Commits

Author SHA1 Message Date
Laurent Trinques af33719995 Merge pull request #341 from plc-user/master
more precise Log-Text for search of "qet_tb_generator"
2025-02-02 15:48:48 +01:00
Laurent Trinques 4c12b3c679 Flatpak upgrade tkinter git to update to python 3.11 2025-02-02 15:16:53 +01:00
plc-user e1dc978f97 more precise Log-Text for search of "qet_tb_generator" to avoid misunderstandings 2025-02-02 14:48:38 +01:00
Laurent Trinques 1b2d8061a5 Merge pull request #340 from plc-user/master
machine_info: add entry for QETApp::configDir() also for win
2025-02-02 13:34:42 +01:00
plc-user b0f0a56a88 machine_info: add entry for QETApp::configDir() also for win
We use QETApp::configDir() to save configuration-files (*.json)
for creating BOM, nomenclature, etc. during runtime.
So it's interesting for win-users, too, which configDir is used.
2025-02-02 12:49:59 +01:00
Laurent Trinques d6d38141c9 Merge pull request #339 from plc-user/master
remove dead code (local variables that were never used)
2025-02-02 12:24:19 +01:00
plc-user 331cecc05c remove dead code (local variables that were never used) 2025-02-02 12:16:28 +01:00
4 changed files with 11 additions and 17 deletions
@@ -29,7 +29,7 @@
{
"type": "git",
"url": "https://github.com/iwalton3/tkinter-standalone",
"commit": "2301112d142ebaf7532b25600c77d1a2edc9ef04"
"commit": "23c793bad2429f4a81eee9f50e2d07ae845b7785"
}
],
"modules": [
+4 -4
View File
@@ -162,13 +162,13 @@ void MachineInfo::send_info_to_debug()
qInfo()<< " Company Elements Dir:"<< QString(QETApp::companyElementsDir().toLatin1());
qInfo()<< " Company TitleBlock Templates Dir:"<< QString(QETApp::companyTitleBlockTemplatesDir().toLatin1());
qInfo()<< "";
qInfo()<< " For QET configuration-files:";
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
qInfo()<< " App Config Location: see Regedit: HKEY_CURRENT_USER/Software/QElectroTech/";
qInfo()<< " App-Config: see Registry \"HKEY_CURRENT_USER/Software/QElectroTech/\"";
qInfo()<< " additional config-files:";
#else
qInfo()<< " App Config Location:"<< QETApp::configDir();
qInfo()<< " For QET configuration-files:";
#endif
qInfo()<< " App Config Location:"<< QETApp::configDir();
qInfo()<< " For data-files (user-/company-collections, titleblocks, etc.):";
qInfo()<< " App Data Location:"<< QETApp::dataDir();
qInfo()<< " Directory for project stalefiles:";
+6 -1
View File
@@ -2387,10 +2387,15 @@ void QETDiagramEditor::generateTerminalBlock()
if (openedProjects().count()) {
foreach(QString exe, exeList) {
qInfo() << " success so far: " << success << " - now searching for " << exe;
if ((success == false) && exe.length() && QFile::exists(exe)) {
success = process->startDetached(exe, {(QETDiagramEditor::currentProjectView()->project()->filePath())});
}
if (success == true) {
qInfo() << " qet_tb_generator found here:" << exe;
break;
} else {
qInfo() << " qet_tb_generator not found :" << exe;
}
}
} else {
qInfo() << "No project loaded - no need to start \"qet_tb_generator\"";
-11
View File
@@ -906,17 +906,6 @@ QDomElement QetShapeItem::toXml(QDomDocument &document) const
if (m_shapeType == Rectangle)
{
QRectF rect(m_P1, m_P2);
rect = rect.normalized();
qreal x = m_xRadius;
if (x > rect.width()/2) {
x = rect.width()/2;
}
qreal y = m_yRadius;
if (y > rect.height()/2) {
y = rect.height()/2;
}
result.setAttribute("rx", QString::number(m_xRadius));
result.setAttribute("ry", QString::number(m_yRadius));
}