Commit Graph

450 Commits (cd45e22a58c274f0ca089f722d9984bb2ae446c6)
 

Author SHA1 Message Date
OBATA Akio cd45e22a58
Fix to compare thread_id with `pthread_equal()`
`pthread_t` is an opaque type, should not be compared with `==`.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 9ae164eb83)
9 months ago
Nik Reist 03ef2cdd33
Remove commercial site content and documentation
trolltech domain is no longer valid.

Signed-off-by: Nik Reist <nik.reist@murena.io>
(cherry picked from commit 168dd9b0c5)
9 months ago
Michele Calgaro 8141b881e3
Correctly release glib mainloop and gsource, to avoid memory leaks
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 08a71c8f8d)
10 months ago
Slávek Banko 73c9765982
Merge translation files from master branch.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
10 months ago
Michele Calgaro 57465e08e9
Prevent creation of text codecs when the application is shutting down. This resolves issue #142
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7563c4825f)
11 months ago
Alexander Golubev b44105403d
TQTextEdit: remove one of two readOnly flags
There were two flags for read-only with different capitalization:
readonly and readOnly. This was probably a mistake.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 9c5ea5617a)
11 months ago
Alexander Golubev bca1fe4e8f
TQTextEdit: add missing mightStartDrag initialization
mightStartDrag might have been used uninitialized when moving mouse with
pressed mouse button into window.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 2b1c78cb53)
11 months ago
Alexander Golubev a097a55f62
Improve TQFont-related cleanup
Improve TQFont cleanup making sure that all instances of TQFont are
destroyed before TQApplication (or specifically before disconnect from
X11). This gets reed of several valgrind complains about leaks deep
inside fontconfig.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 1b951e5229)
11 months ago
Alexander Golubev f2504a8f49
Improve TQFont-related cleanup
Improve TQFont cleanup making sure that all instances of TQFont are
destroyed before TQApplication (or specifically before disconnect from
X11). This gets reed of several valgrind complains about leaks deep
inside fontconfig.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit ffbaaf0e1c)
11 months ago
Alexander Golubev b000ed6ad6
TQFileDialog: cleanup pixmaps before destroying TQApplication
Otherwise it results in small memmory leakage on exit of Xlib data.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit fb0d62eec8)
11 months ago
Alexander Golubev 32f9784928
examples/canvas: fix some memory leaks
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit ee63474739)
11 months ago
Alexander Golubev 4ab92f6b79
TQPrintDialog: cleanup data requested from libcups
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit c2c385eef2)
11 months ago
Alexander Golubev 41c8fa0f9d
inputmethods/xim: fix incorrect fontset ref counting
- rename fontsetRefCount -> fontsetCacheRefCount
- move fontsetCacheRefCount to constructor as setHolderWidget() could be
  called more than once

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit e1bb179fde)
11 months ago
Alexander Golubev bb6797db1f
TQPrinterPrivate: add virtual destructor.
As derivative from it e.g. TQPrinterUnixPrivate are getting deleted (e.g
in unix TQPrinter implementation) by a reference to base class.

Also added missing include to the header.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 5920542e9e)
11 months ago
Alexander Golubev ba56610030
Zero unused data fields in XClientMessageEvent struct
valgrind was complaining about access to uninitialized data because
unused elements in client_message.data.l array weren't set o any value.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 8a13d9aef4)
11 months ago
Alexander Golubev 323382b189
Fix TQThreadStorage destruction in the main thread
Before that the allocations of TQThreadStorage objects from the main
thread were never destroyed and memory associated with them were never
freed. The second one isn't a huge problem as at that point program is
terminating anyway (but it still makes valgrind complain). The first one
is the bigger issue as destructors might contain some essential external
cleanups like removing temporary files.

Also make `TQApplication::guiThread()` return `0` when the thread is
destroyed (may happen on the program exiting during destruction of
statics).

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit b1e6f38464)
11 months ago
Alexander Golubev 336e61b230
Fix TQString::sprintf() not calling va_end() in case of bad cformat
Also rearrange code a bit so it would be obvious that the function
doesn't return a dangling reference.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit bcda401191)
11 months ago
Alexander Golubev 4bed6be862
Fix a small memory leak in xim plugin
TQXIMInputContext::setHolderWidget() function may be (and actually is)
called more than once. This results in multiple instances of the same
object being added to ximContextList. But the destructor removes only
one instance, which effectively results in leak of several bytes
whenever a window is opened.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 1278ed0dad)
11 months ago
Alexander Golubev d730db2c0d
gitignore: add a couple more tests
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 8e4edc5883)
11 months ago
Alexander Golubev 57f90016c3
Add explicit declaration TQChar&TQCharRef default constructor/destructor
This suppresses -Wdeprecated-copy warning.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 87129eac9a)
11 months ago
Alexander Golubev 590a2e0434
Resort includes in ntqt.h
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit b930cec601)
11 months ago
Alexander Golubev 5d90b0352d
./configure: turn thread support on by default
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit d8738f551b)
11 months ago
Alexander Golubev 5232ccdf64
Avoid setting CONFIG=thread in qmake.conf
Otherwise it's impossible to override in ./configure

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit cbdf333378)
11 months ago
Alexander Golubev d643d19c96
Fix compilation with -no-thread
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 4100c9e29f)
11 months ago
Alexander Golubev 9d1f80158e
Fix up mkspecs/linux-g++-32/qplatformdefs.h
The head of file was accidentally deleted in 455154ce

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit bd8bd100a4)
11 months ago
Alexander Golubev ee2df97887
Fix compilation with -disable-inputmethod and -no-inputmethod
As for now here are two sets of inputmethod options:
- -enable-inputmethod/disable-inputmethod - which seems to supposed to
  control whether build the 'inputmethod' module or not
- -inputmethod/-no-inputmethod - which seems to supposed to
  enable/disable inputmethod support without changing the ABI.

Before the patch both -disable-inputmethod and -no-inputmethod were just
breaking the build: -no-inputmethod were disabling some code with
support for the module, but didn't disabled the module build itself nor
build of plugins. -disable-inputmethod were disabling build of plugins
and module, but didn't disabled code depending upon it.

It seems the inputmethod support were still WIP when the last release of
Qt3 came to be, hence the mess.

This patch fixes the build if both -disable-inputmethod AND
-no-inputmethod are supplied. Disabling only one is not enough due to
tqmake/configure have problems handling two different options of the
same name.  Later the -inputmethod/-no-inputmethod should be probably
removed entirely.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit fad4acbe08)
12 months ago
Alexander Golubev 9aa03105ab
Fix FTBFS with -no-xkb
The analogue of XkbKeycodeToKeysym() used to be XKeycodeToKeysym(), but
it was deprecated in favour of XGetKeyboardMapping() method.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit beb37238fa)
12 months ago
Alexander Golubev 77927b79b7
Fix FTBFS with -no-stl
On modern compilers placement new requires inclusion of <new>

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 2f15a471f9)
12 months ago
Alexander Golubev 7b575b58e5
avoid translating the /qt/XIMInputStyle options when saving into config
Also use "On The Spot" as the default when the setting in the config is
incorrect.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 34587584ab)
12 months ago
Alexander Golubev 53a1dfa82b
gitignore: add missing examples (sound, tablet)
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 7578fa552b)
12 months ago
Alexander Golubev 94c71d50f6
Fix FTBFS with -qt-sql-sqlite3
Fix FTBFS when sqlite3 sql driver is being built into the library

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 3cba79c7f5)
12 months ago
Alexander Golubev cabcb339c6
fix grep complain in configure: "warning: stray \ before c"
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 92fe774704)
1 year ago
Michele Calgaro 486ac7828c
Remove original Q_WS_* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 77697cb46c)
1 year ago
Alexander Golubev da061df465
Add .gitignore file
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit facf04e60c)
1 year ago
Michele Calgaro 33c36fae2a
Replace QT_STATIC_CONST_* with actual definitions
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1d318a47b0)
1 year ago
Michele Calgaro 473cd1e8a5 Replace Q_WS_* defines with TQ_WS_* equivalents
This is the first part of the replacement process.
Usage of Q_WS_* has been replaced with the equivalent TQ_WS_*.
Definition of Q_WS_* has been mirrored into TQ_WS_* defines, to allow
TDE code to continue building till replacement is carried over to all
other modules.
Once that is completed, the original Q_WS_* defines will
be removed.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 67bff2edca)
1 year ago
Michele Calgaro ecca365daf
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fb401a891f)
1 year ago
Slávek Banko 1c30858477
Fix potential buffer overflow in debug functions.
This resolves issue #70.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a9d178f100)
1 year ago
Mavridis Philippe f30ac87a4f
Add support for HistoryBackButton and HistoryForwardButton
This resolves TDE/tdebase#421.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit aec0061106)
1 year ago
Mavridis Philippe c339f68fc0
Update README
A new README with markdown format, updated information on TQt, contributor section and translations status.

The old README has been preserved as README.Qt3 for historical reasons.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit fd6c582f15)
1 year ago
Michele Calgaro a059b24f5a
tqdesigner: prevent SEGV from invalid pointer. This resolves issue #97.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit 6e5c7efaca)
1 year ago
Michele Calgaro ccc0d8e4ef
Replaced various '#define' with actual strings - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5eccf2a5e3)
1 year ago
Michele Calgaro 541b900725
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 089d5266f0)
1 year ago
Michele Calgaro d73937a9f7 Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b35e0845dc)
1 year ago
Michele Calgaro eb42871e99
Replace Q_EXPORT_*/Q_EXTERN defines with TQ_EXPORT_*/TQ_EXTERN
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1ba13366a7)
1 year ago
Michele Calgaro 440483234f
Replace various Q_* and QT_* defines with TQ_* and TQT_*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 926102a455)
1 year ago
Michele Calgaro 0c8091f80e Reintroduced porting documentation previously removed
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fd565e9bad)
2 years ago
Michele Calgaro b195cee3f4
Drop attic Qt2 classes (TQtMultiLineEdit and TQtTableView)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7c116f3bf7)
2 years ago
Denis Kozadaev eb4fc5004b
SunOS res_ninit() requires a clean structure
Signed-off-by: Denis Kozadaev <denis@dilos.org>

init structure without condition

Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 47f034c129)
2 years ago
Michele Calgaro 984ea06ed6
Revert "Add single TQObject root parent for all guarded pointers."
Commit b167d09c was functionally incorrect and is causing issues on
selected distributions.
This reverts commit b167d09c43.
This resolves issue TDE/tde#128.

(cherry picked from commit fb1f3d6445)
2 years ago