Commit Graph

531 Commits (755d46927cc6a5719e695aeb8133be6897de62d8)
 

Author SHA1 Message Date
Michele Calgaro 8ac0e970e4
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 68b81013e8
Rename nt* canvas related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 1702a6daff
Rename nt* dom and xml related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 5fffa30386
Rename nt* sql related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 04913ce7a4
Rename ntqobject*.h and qobject*.cpp to tqobject*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro c11c0f228b
Move tqt.h from tqtinterface
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
OBATA Akio 729c01ffb2 Fix a missing `if` clause guard
It was mismatched with indents and sibling `if` clause cases.

Signed-off-by: OBATA Akio <obache@wizdas.com>
9 months ago
OBATA Akio 9ae164eb83 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>
9 months ago
Nik Reist 168dd9b0c5 Remove commercial site content and documentation
trolltech domain is no longer valid.

Signed-off-by: Nik Reist <nik.reist@murena.io>
9 months ago
Andrei Stepanov 486211a79e Translated using Weblate (Russian)
Currently translated at 100.0% (488 of 488 strings)

Translation: dependencies/tqt3
Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/ru/
10 months ago
Michele Calgaro 08a71c8f8d
Correctly release glib mainloop and gsource, to avoid memory leaks
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 months ago
Slávek Banko f5bf794e23
Update translations binary files
because they are not generated during build.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
10 months ago
Michele Calgaro 7563c4825f
Prevent creation of text codecs when the application is shutting down. This resolves issue #142
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
11 months ago
Alexander Golubev 9c5ea5617a 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>
11 months ago
Alexander Golubev 2b1c78cb53 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>
11 months ago
Alexander Golubev 1b951e5229 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>
11 months ago
Alexander Golubev ffbaaf0e1c 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>
11 months ago
Alexander Golubev fb0d62eec8 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>
11 months ago
Alexander Golubev ee63474739 examples/canvas: fix some memory leaks
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Hugo Carvalho 4bcca712ef Translated using Weblate (Portuguese)
Currently translated at 100.0% (464 of 464 strings)

Translation: dependencies/tqt3
Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/pt/
11 months ago
Hugo Carvalho e90af9984b Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (464 of 464 strings)

Translation: dependencies/tqt3
Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/pt_BR/
11 months ago
Alexander Golubev c2c385eef2 TQPrintDialog: cleanup data requested from libcups
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Alexander Golubev e1bb179fde 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>
11 months ago
Hugo Carvalho 7e24b2b61e Translated using Weblate (Portuguese)
Currently translated at 100.0% (464 of 464 strings)

Translation: dependencies/tqt3
Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/pt/
11 months ago
Alexander Golubev 5920542e9e 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>
11 months ago
Alexander Golubev 8a13d9aef4 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>
11 months ago
Alexander Golubev 1938504ea0 Zero padding bytes in DndReceiverProp struct.
This removes valgrind's complains about accessing uninitialized memory.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Alexander Golubev b1e6f38464 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>
11 months ago
Alexander Golubev bcda401191 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>
11 months ago
Alexander Golubev 1278ed0dad 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>
11 months ago
Alexander Golubev 8e4edc5883 gitignore: add a couple more tests
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Alexander Golubev 87129eac9a Add explicit declaration TQChar&TQCharRef default constructor/destructor
This suppresses -Wdeprecated-copy warning.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Alexander Golubev b930cec601 Resort includes in ntqt.h
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Alexander Golubev d8738f551b ./configure: turn thread support on by default
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Alexander Golubev cbdf333378 Avoid setting CONFIG=thread in qmake.conf
Otherwise it's impossible to override in ./configure

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Alexander Golubev 4100c9e29f Fix compilation with -no-thread
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
11 months ago
Alexander Golubev bd8bd100a4 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>
11 months ago
Alexander Golubev fad4acbe08 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>
12 months ago
Alexander Golubev beb37238fa 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>
12 months ago
Alexander Golubev 2f15a471f9 Fix FTBFS with -no-stl
On modern compilers placement new requires inclusion of <new>

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
12 months ago
Alexander Golubev 34587584ab 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>
12 months ago
Alexander Golubev 7578fa552b gitignore: add missing examples (sound, tablet)
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
12 months ago
Alexander Golubev 3cba79c7f5 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>
12 months ago
Alexander Golubev 92fe774704 fix grep complain in configure: "warning: stray \ before c"
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
1 year ago
Michele Calgaro 77697cb46c
Remove original Q_WS_* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Alexander Golubev facf04e60c Add .gitignore file
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
1 year ago
Michele Calgaro 1d318a47b0
Replace QT_STATIC_CONST_* with actual definitions
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 67bff2edca
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>
1 year ago
Michele Calgaro fb401a891f
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Slávek Banko a9d178f100
Fix potential buffer overflow in debug functions.
This resolves issue #70.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
1 year ago