Commit Graph

346 Commits (14c414378d96f7463b989384f4a0e5dd76632b6d)

Author SHA1 Message Date
Michele Calgaro 14c414378d
Fix OpenType language definition tags and array access. This resolves issue #171
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 months ago
Michele Calgaro a30f5359f0
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 months ago
Michele Calgaro 252a2ec8b0
Rename IO and network class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro 87d29563e3
Rename utility class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro 628b0bb74c
Rename drag-n-drop nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro 7552c6d730
Rename main window nt* related files to equivalent tq*. The file
"ntqsession.h" was totally unnecessary and has been removed.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro c113da2069
Rename codec nt* related files to equivalent tq*.
The qrtlcodec files have been renamed into tqhebrewcodec files, for consistency with file naming used for other codecs.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro aeefd3fe45
Rename threading nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro 2cbcca0db1
Rename date and time nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro a09a6bc05e
Remove documentation for QWS classes and Qt/Embedded
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro 7bc57326e6 Rename style nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro ccbc1c3572
Rename icon nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro 0cf411b09c
Rename text nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro e6077c30d1
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 8c029298d9
Rename image nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 0881ed5059
Rename ptr nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 1f0ce8533c
Rename template library nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
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
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
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 c2c385eef2 TQPrintDialog: cleanup data requested from libcups
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
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 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>
12 months ago
Alexander Golubev 4100c9e29f Fix compilation with -no-thread
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
12 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 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
Michele Calgaro 77697cb46c
Remove original Q_WS_* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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