The class was little changed during lifetime of Qt4, so it was possible
to relatively easy backport them. This changeset is based on Qt4.8.7.
The changes include:
* This fixes several issues on "old-school multihead" X11 setups (with
several screens per display i.e. when DISPLAY has form ":x.y" also
known as "TDE_MULTIHEAD" or "Zaphod mode"). In particular:
* fix graphical drag&drop problems across displays.
* fix menus being displayed outside of the screen.
* add screenCountChanged() signal
* emit resized() signal
See-also: https://github.com/qt/qt/blob/v4.8.7/src/gui/kernel/qdesktopwidget_x11.cpp
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Symbols renamed:
* {qt=>tqt}_desktopwidget_update_workarea
* {qt=>tqt}_desktopwidget_workarea_dirty
* {qt=>tqt}_net_supports()
* {qt=>tqt}_net_*
* {qt=>tqt}_x11_create_desktop_on_screen
All those are internal symbols; the changes don't affect API/ABI. No
additional changes required.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
With certain characters a loop inside TQTextEngine::shape() could
repeat forever because some script engines were requesting more memory
because of a mistake.
In particular this were observed with at least letters "ई" (U+0908,
DEVANAGARI LETTER II) and "ༀ" (U+0F00, TIBETAN SYLLABLE OM).
The problem was already solved in Qt somewhere between last Qt3 release
and first Qt4. But due to no public VCS is available it's impossible to
pinpoint an exact commit. This patch is heavily based on the Qt-4.3.5
code.
Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tqt/issues/270
Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tdeutils/issues/93
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
The function returns the number of lowest zero bits of a 32-bit value
and shifts the value by that number. By the time it reaches last
condition x can be zero if and only if the passed value was zero and
hence we can immediately return 32.
Initially the condition were likely supposed to be `if (!(x & 1))` but
in this particular case it's the same as `!x` and subjectively it makes
more sense to just check if the number is zero. See discussion in
the #264.
See-also: https://mirror.git.trinitydesktop.org/gitea/TDE/tqt/pulls/264
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
The desktop files listed a mimetype, but it doesn't seem to be tied
to any specific file types. Also, the filename is not passed in the
Exec arguments.
Lintian tag: desktop-mime-but-no-exec-code
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
It makes no logical sense to serialize a pointer value and in fact 0 is written. So the call to look_ptr is never executed when deserializing a pointer.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Also remove some left over files that should have been deleted when
support for SCO was removed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
The #defines were used for some very old compilers which had issues with template instantiation.
We are now using c++17 compilers, so this is unnecessary.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
The sed invocation previously introduced in 854c5d5c9 was using `\s` for
space matching which is GNU extensions. This commit replaces it with
POSIX-compliant character class `[[:space:]]`.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>