Commit Graph

512 Commits (dfd0740aa1fc2d02bf22e85a24d6f8a667f7b820)
 

Author SHA1 Message Date
Alexander Golubev dfd0740aa1 Fix a -Wlogical-not-parentheses warning
The function returns the number of lowest zero bits of a 32-bit value
and shifts the value by that number. By the time it reaches last
condition x can be zero if and only if the passed value was zero and
hence we can immediately return 32.

Initially the condition were likely supposed to be `if (!(x & 1))` but
in this particular case it's the same as `!x` and subjectively it makes
more sense to just check if the number is zero. See discussion in
the #264.

See-also: https://mirror.git.trinitydesktop.org/gitea/TDE/tqt/pulls/264
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 709a2722bd)
2 weeks ago
Slávek Banko 6446d21873
Added description to the subject in the manual page.
Lintian tag: bad-whatis-entry

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e1d2885006)
2 months ago
Slávek Banko 2b9dfcfb8e
Use utf8 encoding for special characters in documentation.
Lintian tag: national-encoding

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0b030ddeb7)
2 months ago
Slávek Banko b266c29ac8
Cleaning up desktop files
The desktop files listed a mimetype, but it doesn't seem to be tied
to any specific file types. Also, the filename is not passed in the
Exec arguments.

Lintian tag: desktop-mime-but-no-exec-code

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit dee8637bfc)
2 months ago
Michele Calgaro 0d8f7d1bdb Remove support for Irix, which is discontinued and does not provide a c++17 complaint compiler
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 293aa66e26)
2 months ago
Michele Calgaro 6e9fce01fb
Don't look up '0-serialized' pointers in TQGDict. This replaces PR #263
It makes no logical sense to serialize a pointer value and in fact 0 is written. So the call to look_ptr is never executed when deserializing a pointer.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ec615dc3b5)
2 months ago
Michele Calgaro 658822a82c
Fix typo in previous commit
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b6ba99e65a)
2 months ago
Michele Calgaro a62edea8b2 Remove support for HPUX, which is discontinued and does not provide a c++17 complaint compiler.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2080def64c)
2 months ago
Denis Kozadaev 5b4e4b0285
fix all loops with empty body
Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 37a07263c7)
3 months ago
Denis Kozadaev ba7982b9d2
concatenating char and a string
Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 943a094971)
3 months ago
Michele Calgaro 798ac2b0c5 Drop support for Watcom compiler, which is not c++17 compliant.
Also remove some left over files that should have been deleted when
support for SCO was removed.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 43ae5aadf4)
3 months ago
Michele Calgaro 6727c1b1c9 Remove usage of TQ_FULL_TEMPLATE_INSTANTIATION and TQ_DUMMY_COMPARISON_OPERATOR.
The #defines were used for some very old compilers which had issues with template instantiation.
We are now using c++17 compilers, so this is unnecessary.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 45d592deb6)
3 months ago
Michele Calgaro 60ce9c848b
Remove usage of TQ_INLINE_TEMPLATES define. inline' is redundant in function template definitions, except for specific template specialization
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a10deb1dd3)
3 months ago
Alexander Golubev 9d53120e18 configure: use POSIX-compliant syntax for sed
The sed invocation previously introduced in 854c5d5c9 was using `\s` for
space matching which is GNU extensions. This commit replaces it with
POSIX-compliant character class `[[:space:]]`.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit c7a23a1e57)
3 months ago
Michele Calgaro b7e9211071
Remove Q_CANNOT_DELETE_CONSTANT define. We are using c++17 compilers,
this should no longer be needed.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 0b8194043a)
3 months ago
Michele Calgaro e28df018f2
Remove Q_NO_EXPLICIT_KEYWORD and Q_EXPLICIT macros.
We are using c++17 compilers, so 'explicit' is supported.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1df9f28205)
3 months ago
Michele Calgaro 5dd3e92430
Remove Q_NO_BOOL_TYPE define.
We are using c++17 compilers, so bool is always available.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 0b8fe7da6f)
3 months ago
Michele Calgaro 7bf7f80f35
Remove BSD g++ 3.4 spec since such old version does not provide a c++17 compiler
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit be6b00dc63)
3 months ago
Michele Calgaro 1aa5da9f00
Remove Q_BROKEN_TEMPLATE_SPECIALIZATION define.
We are using c++17 compilers, so template specialization are supported.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9e057c68de)
3 months ago
Michele Calgaro 436a341850
Replace TRUE/FALSE with boolean values true/false - part 11 (for R14.1.x only)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
3 months ago
Michele Calgaro 07b2200fce
Fix FTBFS caused by typo in previous commit
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 06d6a300dc)
3 months ago
Michele Calgaro ff89dd5cc3 Replace TRUE/FALSE with boolean values true/false - part 10
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 50326e196a)
3 months ago
Michele Calgaro 062b8a47d5
Add detection of supported c++ standards and require c++17.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 854c5d5c9c)
3 months ago
Michele Calgaro 791b5390e6 Replace TRUE/FALSE with boolean values true/false - part 9
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a4ebd73f48)
3 months ago
Michele Calgaro 3a477fb708 Replace TRUE/FALSE with boolean values true/false - part 8
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7d612f7c91)
3 months ago
Michele Calgaro e4085a83c1 Replace TRUE/FALSE with boolean values true/false - part 7
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5a863a8932)
4 months ago
Michele Calgaro 0ee946e4cf Replace TRUE/FALSE with boolean values true/false - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 771af909e7)
4 months ago
Michele Calgaro ceb93b10fa
Replace TRUE/FALSE with boolean values true/false - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d9f24c630d)
4 months ago
Michele Calgaro b87533f990
Replace TRUE/FALSE with boolean values true/false - part 4
Manually cherry-picked from commit 4d495175

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 months ago
Michele Calgaro 894037c3e6
Amend to previous 'replace TRUE/FALSE' commit
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(manually cherry-picked from commit 649c4c61a1)
8 months ago
Michele Calgaro 6e4a70d41a
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked and manually edited from commit 6dd781c483)
8 months ago
Michele Calgaro 81ade12909 Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c03a480087)
9 months ago
Michele Calgaro 35ced32e33 Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a7f1e6e255)
9 months ago
Michele Calgaro 7dd4848d61
Fix handling of socket notifier events in gmainloop functions.
This resolves issue #231.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2584dba8aa)
9 months ago
Michele Calgaro d4981524d7 Improve X11 'ProcessEvents()' with some code from the equivalent glib version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9735ca1c13)
10 months ago
Michele Calgaro d7d6cb2151
Explicitly add 'ExcludeTimers' to 'ProcessEvent' enum
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5e8114b6f0)
10 months ago
Michele Calgaro 5e1b310560
Do not check for expired TQt timers in 'gsourcePrepare' and 'gsourceCheck'
since timers are only activated by the main GUI thread in 'gsourceDispatch'.
This solves issue TDE/tdebase#635.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 6da60fd237)
10 months ago
Michele Calgaro 331b0cabe6
Update readme to reflect the change from TQt3 to TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1ae98bbe4d)
10 months ago
Slávek Banko 68744b0c87
Add missing templates for translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 893de4302d)
11 months ago
Slávek Banko 308e9a463b
Merge translation files from master branch.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
11 months ago
Michele Calgaro cc42c3a8ea
Fix usage of condition variable in TQThread which could lead to a thread being run multiple times in parallel.
Although highly unlikely, the following situation was possible:
- a thread is restarted while still running. The call to the second 'start()' blocks because the thread is still running
- the OS decides to randomly wake up the thread that called 'start()'
- a second thread is started and runs in parallel to the first thread, with obvious undefined behavior

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 3143d2d40a)
1 year ago
Michele Calgaro 67cb0f6762
Fix editing of text containing surrogate characters.
This relates to issue #162.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9c648bea9b)
1 year ago
Michele Calgaro fd79f0c8b0
Extend work on supporting surrogate characters done in commit e0a38072
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 486aa07930)
1 year ago
Michele Calgaro 7f62b55432 Drop support for discontinued DGUX
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 46f42bcd5a)
1 year ago
Michele Calgaro b645372503
Add support for surrogate pairs to TQChar API.
This relates to issue #162.
The new code is partially taken from Qt4 but with some local rework.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c5cda03125)
1 year ago
Michele Calgaro c919740e87
Fix FTBFS with gcc 15. This resolves issue #214
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d517cda6bd)
1 year ago
Michele Calgaro b559abe722 Add support for Unicode surrogate characters and planes above zero.
If the selected font supports the required characters, the text will be displayed correctly.
If the selected font does not support such characters, empty boxes will be displayed in place of the expected text.

Part of the code changes comes from Qt4 code.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit e0a38072cf)
1 year ago
Michele Calgaro 1c9111b379 Drop code for obsolete FreeType 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ccd304b2a6)
1 year ago
Michele Calgaro c147c9001b
Remove support for Tru64, OSF and SCO v3.2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2b0ea37581)
1 year ago
Michele Calgaro 10cded644d Remove support for discontinued Reliant/Sinix unix
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 792e93f6e9)
1 year ago