summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use empty d->cString for TQString::shared_null instead of null string.HEADmasterSlávek Banko2022-03-221-2/+2
| | | | | | | This restores consistency for the behavior of methods TQString::utf8() and TQString::local8Bit() with null TQStrings. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Avoid changes of d->cString for TQString::shared_null to make the value ↵Slávek Banko2022-03-221-4/+13
| | | | | | | | reliable. This precedes unnecessary allocations, potential use after free and crashes. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tools: fix to use `pthread_t` for Thread IDOBATA Akio2021-12-301-10/+10
| | | | | | | | | | | Thread ID is opaque type pthread_t, it may not be compatible with integer, and may integer with valid id `0`. Change to store mutex owner thread ID as `pthread_t` type with valid flag and compare with `pthread_equal()`, and don't try to print it. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Use the tqInstallPath* functions for all paths needed for the pkg-config file.Slávek Banko2021-12-301-20/+32
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Add a translationsdir variable to the tqt pkgconfig file (tqt-mt.pc).gregory guy2021-12-301-3/+6
| | | | Signed-off-by: gregory guy <gregory-tde@laposte.net>
* Add unicode points so that upper() and lower() functions work for:Ray-V2021-12-301-964/+981
| | | | | | | | | - latin letter sharp s - latin letter glottal stop - greek lunate sigma symbol - greek letter san Signed-off-by: Ray-V <ray-v@inbox.lv>
* Added tqDebug/tqWarning/tqFatal functions that takes a QCStringMichele Calgaro2021-12-302-1/+20
| | | | | | | argument. This fixes FTBFS of examples caused by previous ambiguous call and solves bug 3021. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix buildkey for GCC >= 7 if the version is listed including minor numbers.Slávek Banko2021-09-221-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Undo an unwanted deletion of the 'register' in the string.Slávek Banko2021-02-021-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix buffer overflow in XBM parser.Slávek Banko2021-02-021-7/+32
| | | | | | | | | 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>
* Update buildkey for >= GCC 9.Slávek Banko2021-02-021-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Prevent to set build directories as RPATHOBATA Akio2021-02-022-19/+3
| | | | | | It result in unwanted RPATH reference from installed binaries. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix `qt_xft_handle` to work as expectedOBATA Akio2021-02-021-1/+1
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix MIT_SHM related conditionOBATA Akio2021-02-021-1/+5
| | | | | | Prevent to build MIT_SHM related codes for !QT_MITSHM condition. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix to detect Thread Execution Scheduling support correctlyOBATA Akio2021-02-021-1/+4
| | | | | | | 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>
* Remove debug config for inputmethod pluginsOBATA Akio2021-02-024-4/+4
| | | | | | No reason to force to debug build. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix to set libtool special mode-args as a compiler flagOBATA Akio2021-02-021-2/+2
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix to record {MAJOR}.{MINOR} to `library_names` in libtool fileOBATA Akio2021-02-021-1/+1
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix to set `old_library` in libtool file only for `staticlib` projectOBATA Akio2021-02-021-1/+5
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix potentially buffer overrun related to readlink(2)OBATA Akio2021-02-021-1/+1
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix to detect file conponent from path properly in Makefile generatorOBATA Akio2021-02-023-6/+6
| | | | | | | 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>
* Fix to detect XRandR on multi-prefix package platformsOBATA Akio2021-02-021-16/+16
| | | | | | | | 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>
* Remove unwanted code for writing pngOBATA Akio2021-02-021-13/+0
| | | | | | | `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>
* Change to use PKG_LIBPNG_VER for libpng version checkOBATA Akio2021-02-021-23/+23
| | | | | | It is suggested in png.h for applications. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Update X11 path on NetBSDOBATA Akio2021-02-021-4/+4
| | | | | | It should be X11R7 on modern ports with recent releases. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix to display verbose message in some config testsOBATA Akio2021-02-023-3/+3
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Improve modern res API available conditionOBATA Akio2021-02-021-1/+1
| | | | | | | | | `__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>
* Replace dead URLs of "SEE ALSO" section in man pages to trinity onesOBATA Akio2021-02-024-5/+5
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix makeqpf man page based on source codesOBATA Akio2021-02-021-7/+14
| | | | | | | | 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>
* Fix a typo in linguest man pageOBATA Akio2021-02-021-1/+1
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Improved code for keyboard and mouse grabbing and releasing to avoidMichele Calgaro2021-02-021-23/+28
| | | | | | unnecessary actions. This relates loosely to bug 2955. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Removed incorrect execution bit.Michele Calgaro2021-02-021-0/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* The translation file mywidget_en.ts in examples/i18n renamedSlávek Banko2021-02-022-2/+2
| | | | | | to mywidget.ts to serve as a template. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix typo.Slávek Banko2021-02-021-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Remove dates from generated files.Slávek Banko2021-02-027-15/+9
| | | | | | This is related to the effort for reproducible builds. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Removed explicit usage of the 'register' keyword.Michele Calgaro2021-02-0148-408/+408
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix crash in tqimage for certain malformed ppm image filesSlávek Banko2019-12-181-1/+1
| | | | | | | | | | 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>
* Fix FTBFS when building with musl libc.Slávek Banko2019-12-111-0/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix build with PostgreSQL 12+.Slávek Banko2019-11-181-0/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Remove bool/my_bool artifact, the 'bool' data type is part of the c++François Andriot2019-11-181-1/+1
| | | | | | language and was added to c compilers with c99. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Replace dead trolltech website with trinity ones.Chris2019-07-131-1/+1
| | | | | Signed-off-by: Chris <xchrisx@uber.space> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Change tests for glibc version.Slávek Banko2019-06-1215-63/+7
| | | | | | | It resolves building with libc libraries other than glibc - for example musl libc. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Removed symlink to qpaintdc.h related to Qt1 removed in commit 03814b8bdd.Slávek Banko2019-06-091-1/+0
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* The TDE integration library (libqtkde) will be searched forgregory guy2019-06-021-5/+1
| | | | | | | | | | 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>
* This fixes bug: 639gregory guy2019-06-0110-12/+430
| | | | | | | | | | | | | | | | 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>
* Adjusted to use new QStringVariantMap type.Michele Calgaro2019-06-017-14/+14
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Added convenient QStringVariantMap type and iterators.Michele Calgaro2019-06-011-7/+7
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Adjusted to latest QVariant::QVariant(bool) function.Michele Calgaro2019-05-2717-55/+48
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Added utility functions qDebug/qWarning/qFatal based on QString parameter.Michele Calgaro2019-05-232-48/+85
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Added timestamp to debug functions (qDebug, qWarning, qFatal).Michele Calgaro2019-04-271-94/+13
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>