Topic: erreur de frappe trouvée dans les fichiers

@Laurent (scorpio810)

erreur de frappe trouvée dans les fichiers

../sources/ui/dynamicelementtextitemeditor.cpp
26 = #include "../ui_dynamicelementtextitemeditor.h"

_  devrait être  /
26 = #include "../ui/dynamicelementtextitemeditor.h"

../sources/ui/elementinfowidget.cpp
24  #include "../ui_elementinfowidget.h"

_ devrait être  /
24  #include "../ui/elementinfowidget.h"

I am an pre-retired industrial developer technician and born in 1960.Electrical, Electronics, Mechanical,Électricité, électronique, mécanique,Native language(Dutch)/langue maternelle/moedertaal(BE,NL).OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)

Re: erreur de frappe trouvée dans les fichiers

Did you read line 18 in both cpp-files?

There the headerfiles are already included.
So:
If the lines you mentioned do not cause compilation-errors, they do not need to be changed.

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

3 (edited by Re-searcher 2025-10-09 16:26:08)

Re: erreur de frappe trouvée dans les fichiers

The include ui_ files are generated files.


QET_changes-files

../ui_ TO ui

../sources/ui/

dynamicelementtextitemeditor.cpp   
line 26 MUST BE #include "ui_dynamicelementtextitemeditor.h"
elementinfowidget.cpp
Line 24 MUST BE #include "ui_elementinfowidget.h"
imagepropertieswidget.cpp
Line 23 MUST BE #include "ui_imagepropertieswidget.h"
inditextpropertieswidget.cpp
Line 24 MUST BE #include "ui_inditextpropertieswidget.h"
linksingleelementwidget.cpp
Line 28 MUST BE #include "ui_linksingleelementwidget.h"
multipastedialog.cpp
Line 27 MUST BE #include "ui_multipastedialog.h"
potentialselectordialog.cpp
Line 28 MUST BE #include "ui_potentialselectordialog.h"
shapegraphicsitempropertieswidgetcpp
Line 24 MUST BE #include "ui_shapegraphicsitempropertieswidget.h"

I am an pre-retired industrial developer technician and born in 1960.Electrical, Electronics, Mechanical,Électricité, électronique, mécanique,Native language(Dutch)/langue maternelle/moedertaal(BE,NL).OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)

4 (edited by plc-user 2025-10-12 11:26:29)

Re: erreur de frappe trouvée dans les fichiers

The project compiles here without any warnings or errors regarding these lines the way they are now!
If there would be a general problem with these lines, more users would have reported...

What is your build-environment?
What versions do you use? (OS, Qt, Compiler, etc)
How do you compile?
What error-messages do you get, when not changing these lines?

Edit:
You have not yet given any reason why these lines should be changed.

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: erreur de frappe trouvée dans les fichiers

I also found this
J'ai également trouvé ceci


../sources/colorbutton.cpp: In member function ‘void ColorButton::clicked(bool)’:
../sources/colorbutton.cpp:56:32: warning: unused parameter ‘checked’ [-Wunused-parameter]
   56 | void ColorButton::clicked(bool checked)
      |                           ~~~~~^~~~~~~


../sources/colorcombobox.cpp: In member function ‘virtual void ColorComboBox::paintEvent(QPaintEvent*)’:
../sources/colorcombobox.cpp:80:45: warning: unused parameter ‘e’ [-Wunused-parameter]
   80 | void ColorComboBox::paintEvent(QPaintEvent *e) {
      |                                ~~~~~~~~~~~~~^


../sources/editor/UndoCommand/openelmtcommand.cpp: In member function ‘virtual void OpenElmtCommand::redo()’:
../sources/editor/UndoCommand/openelmtcommand.cpp:66:102: note: ‘#pragma message: @TODO uncommante slot_select when fixed, see itemChange function for each primitive’
   66 | #pragma message("@TODO uncommante slot_select when fixed, see itemChange function for each primitive")
      |                                                                                                      ^

I am an pre-retired industrial developer technician and born in 1960.Electrical, Electronics, Mechanical,Électricité, électronique, mécanique,Native language(Dutch)/langue maternelle/moedertaal(BE,NL).OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)

Re: erreur de frappe trouvée dans les fichiers

@Re-searcher:
And I found, that you do not answer questions and do not explain what you want to say with your posts.
This way, you are just wasting the time of people who read your posts.
Just barking around does not help at all!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

7 (edited by Re-searcher 2025-10-15 08:05:00)

Re: erreur de frappe trouvée dans les fichiers

OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)

Use qmake6 in console

g++ -c -pipe -std=c++17 -Wall -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -DQET_ALLOW_OVERRIDE_CED_OPTION -DQET_ALLOW_OVERRIDE_CTBTD_OPTION -DQET_ALLOW_OVERRIDE_CD_OPTION -DQET_ALLOW_OVERRIDE_DD_OPTION -DQET_EXPORT_PROJECT_DB -DQAPPLICATION_CLASS=QApplication -DQT_MESSAGELOGCONTEXT -DGIT_COMMIT_SHA=\"411fb3c4dc54b6aaea00f034d6c5396de5daa474\" -DQET_LANG_PATH=/home/me/1QET093ec56/build/share/qelectrotech/lang/ -DQET_COMMON_COLLECTION_PATH=/home/me/1QET093ec56/build/share/qelectrotech/elements/ -DQET_COMMON_TBT_PATH=/home/me/1QET093ec56/build/share/qelectrotech/titleblocks/ -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I../../1QET093ec56 -I. -I../SingleApplication -I../sources/ui -I../sources/TerminalStrip/ui -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/KF6/KWidgetsAddons -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtXml -I/usr/include/x86_64-linux-gnu/qt6/QtSql -I/usr/include/x86_64-linux-gnu/qt6/QtConcurrent -I/usr/include/KF6/KCoreAddons -I/usr/include/x86_64-linux-gnu/qt6/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o dynamicelementtextitemeditor.o ../sources/ui/dynamicelementtextitemeditor.cpp
../sources/ui/dynamicelementtextitemeditor.cpp:26:10: fatal error: ../ui_dynamicelementtextitemeditor.h: No such file or directory
   26 | #include "../ui_dynamicelementtextitemeditor.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:6893: dynamicelementtextitemeditor.o] Error 1
make: *** Waiting for unfinished jobs....

I am an pre-retired industrial developer technician and born in 1960.Electrical, Electronics, Mechanical,Électricité, électronique, mécanique,Native language(Dutch)/langue maternelle/moedertaal(BE,NL).OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)

Re: erreur de frappe trouvée dans les fichiers

I can only repeat myself:

plc-user wrote:

The project compiles here without any warnings or errors regarding these lines the way they are now!
If there would be a general problem with these lines, more users would have reported...

Compiled Qt6-branch of QET with the latest Debian unstable and Qt6.

You seem to be doing something different from everyone else:
You are the first and so far the only one to report these effects...

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: erreur de frappe trouvée dans les fichiers

I'm in the process of adjusting the configuration. CONFIG and QMAKE_CXXFLAGS are changed.
Je suis en train d'ajuster la configuration. CONFIG et QMAKE_CXXFLAGS sont modifiés.

CONFIG += qt c++17 debug warn_on link_pkgconfig
QMAKE_CXXFLAGS += -std=c++17 -Wall

EN
https://gcc.gnu.org/onlinedocs/gcc/
https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

I am an pre-retired industrial developer technician and born in 1960.Electrical, Electronics, Mechanical,Électricité, électronique, mécanique,Native language(Dutch)/langue maternelle/moedertaal(BE,NL).OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)

Re: erreur de frappe trouvée dans les fichiers

Anyone playing around with compiler flags should know:
- what he is doing
- that it can go wrong!
Or rather: It will go wrong!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: erreur de frappe trouvée dans les fichiers

Comme vous ne me croyez pas, regardez ceci.
../sources/ui/alignmenttextdialog.cpp
Vous verrez alors que j'ai raison.

Vous devez supprimer ../ avant ui_



If you don't believe me, take a look here.
../sources/ui/alignmenttextdialog.cpp
You'll see that I'm right.

You need to remove ../ before ui_

I am an pre-retired industrial developer technician and born in 1960.Electrical, Electronics, Mechanical,Électricité, électronique, mécanique,Native language(Dutch)/langue maternelle/moedertaal(BE,NL).OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)

Re: erreur de frappe trouvée dans les fichiers

Différence entre #include ui_file
Difference between #include ui_file


../sources/ui/alignmenttextdialog.cpp

#include "alignmenttextdialog.h"

#include "../qetgraphicsitem/dynamicelementtextitem.h"
#include "ui_alignmenttextdialog.h"




../sources/ui/dynamicelementtextitemeditor.cpp


#include "dynamicelementtextitemeditor.h"

#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../diagram.h"
#include "../elementtextpattern.h"
#include "../qetgraphicsitem/dynamicelementtextitem.h"
#include "../qetgraphicsitem/element.h"
#include "../qetgraphicsitem/elementtextitemgroup.h"
#include "../ui_dynamicelementtextitemeditor.h"
#include "../undocommand/addelementtextcommand.h"
#include "../undocommand/deleteqgraphicsitemcommand.h"
#include "dynamicelementtextmodel.h"

#include <QTreeView>
#include <QUndoCommand>

I am an pre-retired industrial developer technician and born in 1960.Electrical, Electronics, Mechanical,Électricité, électronique, mécanique,Native language(Dutch)/langue maternelle/moedertaal(BE,NL).OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)