When running tqmoc on a Proxy.cpp file, it gives a warning regarding Q_OBJECT macro.
tqmoc service1Proxy.h
service1Proxy.h:57: Error: The declaration of the class "Service1Proxy" contains signals or slots
but no TQ_OBJECT macro.
moc file is generated as this is just a warning, but we should fix this as well.
## Basic information
- TDE version: R14.1
- Distribution: Debian Stretch
- Hardware: any
<!--
Use SL/* labels to set the severity level.
Please do not set a milestone.
-->
## Description
When running tqmoc on a <x>Proxy.cpp file, it gives a warning regarding Q_OBJECT macro.
```
tqmoc service1Proxy.h
service1Proxy.h:57: Error: The declaration of the class "Service1Proxy" contains signals or slots
but no TQ_OBJECT macro.
```
moc file is generated as this is just a warning, but we should fix this as well.
In usual processing, tmoc is called instead of tqmoc:
tmoc service1Proxy.h -o service1Proxy.moc
Such a call ensures the automatic use of tqt-replace-stream before calling tqmoc, thus not displaying the warning.
As far as I know, in the source code is now commonly used Q_OBJECT, not TQ_OBJECT. Therefore, I believe that it would not be correct to use TQ_OBJECT in these generated files.
In usual processing, `tmoc` is called instead of `tqmoc`:
```
tmoc service1Proxy.h -o service1Proxy.moc
```
Such a call ensures the automatic use of `tqt-replace-stream` before calling `tqmoc`, thus not displaying the warning.
As far as I know, in the source code is now commonly used `Q_OBJECT`, not `TQ_OBJECT`. Therefore, I believe that it would not be correct to use `TQ_OBJECT` in these generated files.
Basic information
Description
When running tqmoc on a Proxy.cpp file, it gives a warning regarding Q_OBJECT macro.
moc file is generated as this is just a warning, but we should fix this as well.
In usual processing,
tmoc
is called instead oftqmoc
:Such a call ensures the automatic use of
tqt-replace-stream
before callingtqmoc
, thus not displaying the warning.As far as I know, in the source code is now commonly used
Q_OBJECT
, notTQ_OBJECT
. Therefore, I believe that it would not be correct to useTQ_OBJECT
in these generated files.This will probably be address after R14.1.0 release 😉
I am of the opinion that we can now close this issue because the current code is fine and we need to use tmoc, not tqmoc.
OK, thank you Slavek, I agree and close.