Commit Graph

303 Commits (73a90d568d68aa49c7dd1a51dcafb729efd4f44e)
 

Author SHA1 Message Date
gregory guy 73a90d568d
Add a translationsdir variable to the tqt pkgconfig file (tqt-mt.pc).
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit 81c83b98e4)
4 years ago
Ray-V a5eb1aeef0
Add unicode points so that upper() and lower() functions work for:
- latin letter sharp s
 - latin letter glottal stop
 - greek lunate sigma symbol
 - greek letter san

Signed-off-by: Ray-V <ray-v@inbox.lv>
(cherry picked from commit 03d5d59646)
4 years ago
Michele Calgaro 0e9efe6bf1
Added tqDebug/tqWarning/tqFatal functions that takes a QCString
argument. This fixes FTBFS of examples caused by previous ambiguous
call and solves bug 3021.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 300c4d2bd2)
4 years ago
Michele Calgaro 1b74fac43d
Added utility functions qDebug/qWarning/qFatal based on QString parameter.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2c29133f7e)
4 years ago
Slávek Banko 8e44169855
Fix buildkey for GCC >= 7 if the version is listed including minor numbers.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e406862cea)
4 years ago
Slávek Banko 230a0c1ed9
Undo an unwanted deletion of the 'register' in the string.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 94748b6b74)
5 years ago
Slávek Banko 02ae5beea3
Fix buffer overflow in XBM parser.
Avoid parsing over the buffer limit, or interpreting non-hex as hex.
This still leaves parsing of lines longer than 300 chars unreliable.

Based on Qt5 patch for CVE-2020-17507.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 9d7d238e9e)
5 years ago
Slávek Banko d18dfa7dad
Update buildkey for >= GCC 9.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 511e8c7720)
5 years ago
OBATA Akio f9ac48efad
Prevent to set build directories as RPATH
It result in unwanted RPATH reference from installed binaries.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 5b1f8617d1)
5 years ago
OBATA Akio d5d6fa9adb
Fix `qt_xft_handle` to work as expected
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit a35e51a4fd)
5 years ago
OBATA Akio f013b070a1
Fix MIT_SHM related condition
Prevent to build MIT_SHM related codes for !QT_MITSHM condition.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 82d40179ad)
5 years ago
OBATA Akio 0fe2b27c81
Fix to detect Thread Execution Scheduling support correctly
If `_POSIX_THREAD_PRIORITY_SCHEDULING == 0`, it must be checked
with sysconf(_SC_THREAD_PRIORITY_SCHEDULING) at runtime.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit d61a821ad0)
5 years ago
OBATA Akio 41bd48d0ce
Remove debug config for inputmethod plugins
No reason to force to debug build.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 53ff73cc35)
5 years ago
OBATA Akio 6948355c1b
Fix to set libtool special mode-args as a compiler flag
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 20597c412f)
5 years ago
OBATA Akio 1bb4825b20
Fix to record {MAJOR}.{MINOR} to `library_names` in libtool file
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit ac08552d14)
5 years ago
OBATA Akio 76d31ef383
Fix to set `old_library` in libtool file only for `staticlib` project
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 4596513c45)
5 years ago
OBATA Akio 6da58c8804
Fix potentially buffer overrun related to readlink(2)
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 5c32919647)
5 years ago
OBATA Akio ccb28f09f4
Fix to detect file conponent from path properly in Makefile generator
It should be either `path.right(path.length() - sep_pos - 1)` or
`path.mid(sep_pos + 1)`.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 30a7754971)
5 years ago
OBATA Akio 9f643e0953
Fix to detect XRandR on multi-prefix package platforms
Change to find two XrandR header files from invidual directory.
"Xrandr.h" is in `libXrandr`, and "randr.h" is in `xorgproto` (used to be
`randrproto`) package, so they may be installed into different prefix.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit bade711c82)
5 years ago
OBATA Akio 3dc547aa1a
Remove unwanted code for writing png
`info_ptr->channels` will be set in the next called `png_set_IHDR()`,
so it is no effect.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit b00b5ea1c5)
5 years ago
OBATA Akio 714dc857b7
Change to use PKG_LIBPNG_VER for libpng version check
It is suggested in png.h for applications.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 2283b5627d)
5 years ago
OBATA Akio 0e19d0fe83
Update X11 path on NetBSD
It should be X11R7 on modern ports with recent releases.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 1048895383)
5 years ago
OBATA Akio 153d14805f
Fix to display verbose message in some config tests
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 6f2da8af3a)
5 years ago
OBATA Akio 7e71ac3dd2
Improve modern res API available condition
`__RES` is usable to check release date of resolver library.
Such modern res API appeared in BIND-8.2.0 libbind with __RES == 19980901,
it was refrected as BIND-8.2.2-P5 in glibc in pre 2.3 release with
__RES == 19991006.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit b676c7f90b)
5 years ago
OBATA Akio 9f25ff5721
Replace dead URLs of "SEE ALSO" section in man pages to trinity ones
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 0a9cd6f754)
5 years ago
OBATA Akio 0ca2edfed2
Fix makeqpf man page based on source codes
Change to use usage of the command instead of copy from qembed's one for
"SYNTAX" section.
Fix fontdir path from source code.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 441ec666a9)
5 years ago
OBATA Akio 3afd04abc4
Fix a typo in linguest man page
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit a50c78b668)
5 years ago
Michele Calgaro 5a19653cb5
Improved code for keyboard and mouse grabbing and releasing to avoid
unnecessary actions. This relates loosely to bug 2955.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bc1b1fed7d)
5 years ago
Michele Calgaro e9d6b1eb3d
Removed incorrect execution bit.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1c53644408)
5 years ago
Slávek Banko ab708dcb04
The translation file mywidget_en.ts in examples/i18n renamed
to mywidget.ts to serve as a template.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 990d01f066)
5 years ago
Slávek Banko e77622d4bb
Fix typo.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8b71fd2791)
5 years ago
Slávek Banko fd708f1b02
Remove dates from generated files.
This is related to the effort for reproducible builds.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit fc8564a5f0)
5 years ago
Michele Calgaro 7e66c40362
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 961eb3f6e2)
5 years ago
Slávek Banko d8d67a842b
Fix crash in tqimage for certain malformed ppm image files
The ppm format specifies that the maximum color value field must be
less than 65536. The handler did not enforce this, leading to
potentional overflow when the value was used in 16 bits context.

Based on Qt5 patch for CVE-2018-19872.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b08a6d71ba)
6 years ago
Slávek Banko 361ea8bcf0
Fix FTBFS when building with musl libc.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 40078adb6a)
6 years ago
Slávek Banko e514327dcc
Fix build with PostgreSQL 12+.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 271050fb4c)
6 years ago
François Andriot 2f9841a32b
Remove bool/my_bool artifact, the 'bool' data type is part of the c++
language and was added to c compilers with c99.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit aa53689da2)
6 years ago
Chris 84ae294824
Replace dead trolltech website with trinity ones.
Signed-off-by: Chris <xchrisx@uber.space>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d368cdf93e)
6 years ago
Slávek Banko 46d5b162ee
Change tests for glibc version.
It resolves building with libc libraries
other than glibc - for example musl libc.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit edad20d4f9)
6 years ago
gregory guy 3c5f0f8856
The TDE integration library (libqtkde) will be searched for
in the Qt plugins directory, instead of the TDE plugins
directory, which cannot be known at Qt build time.

This resolves issue #3.

Signed-off-by: gregory guy <g-gregory@gmx.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1ef55acbce)
6 years ago
gregory guy 309cbda6e2
This fixes bug: 639
Add desktop files for:
- assistant-qt3
- designer-qt3
- linguist-qt3
- qtconfig-qt3

These files have been made with the contribution of Laurent Dard's
patch (see bugzilla:639) with little change/addition from I.

Add 'sysshare' option to the configure script.

Signed-off-by: gregory guy <g-gregory@gmx.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7c13f5df2f)
6 years ago
Michele Calgaro 5151555c0e
Reintroduced debug, warning and fatal functions since this are part of
R14.0.x API.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Michele Calgaro d17480bf1d
Added timestamp to debug functions (qDebug, qWarning, qFatal).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 3ae061484d)
6 years ago
Slávek Banko 2fd4dcbf56
bmp image: check for out of range image size.
Make the decoder fail early to avoid spending time and memory on
attempting to decode a corrupt image file.

Based on Qt5 patch for CVE-2018-19873.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a00e43bd1c)
6 years ago
Slávek Banko ac1b4232ff
Check for QImage allocation failure in qasyncimageio.
Since image files easily can be (or corrupt files claim to be) huge,
it is worth checking for out of memory situations.

Based on Qt5 patch for CVE-2018-19870.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a04cfea092)
6 years ago
Slávek Banko c966e917a9
Add the definition _WANT_SEMUN to ensure the definition of the semun structure.
This resolves bug 2991.

Thanks to Nikolaus Klepp for initial patch.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ee61bf8d1a)
7 years ago
Slávek Banko 5a7d49f513
Make use of QString::utf8() and QString::local8Bit() safe for conversion to char*.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0a1966b25e)
7 years ago
Slávek Banko 872d13f1ae
Enable gcc visibility support for *BSD builds.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 26c3a9ba48)
7 years ago
Slávek Banko 875b5b1a14
Rename qt_untranslated.ts to template.ts
to make it clear for what purpose this file is intended.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 72dfa4c3d1)
7 years ago
Michele Calgaro ec5adca5bb
Improved class name used in previous commit. Suggestion comes from Slavek :-)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 19ef3e4359)
7 years ago