Commit Graph

428 Commits

Author SHA1 Message Date
p-bo fc74642060 Translated using Weblate (Czech)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/cs/
2019-09-22 07:48:28 +02:00
Dmitry Matrokhin 9b12c21246 Fix flickering on font change
Root cause:
When font is changed paintEvent is called and we draw text "Mq" to
calculate font height. Then on next paintEvent we draw original content.
Since it's done in 2 steps we get flickering.
Fix:
Do calculating and redrawing in 1 step.
2019-08-17 20:49:13 +02:00
Gary Wang b4b11ae719 feat: add sendKeyEvent() api 2019-08-17 20:46:44 +02:00
Masamichi Ito e9df291361 Translated using Weblate (Japanese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/ja/
2019-08-17 15:39:16 +02:00
David H. Gutteridge 0b6b5c8bec Fix compilation on NetBSD
Like OpenBSD, NetBSD has util.h, not libutil.h.
2019-07-31 21:51:47 +08:00
BlahGeek 88e57a57fc Use QRectF for cursor drawing, fix artifacts in hidpi 2019-07-15 22:39:40 +02:00
Chih-Hsuan Yen 64fef7ab3c Allow to disable drawing line chars 2019-07-15 22:39:00 +02:00
Yen Chi Hsuan 4ffd19203a Fix numpad handling and add entries for numpad 5
KP_Clear is mapped from numpad 5 on non-Apple keyboards according to Qt
doc [1]. It's mapped from KP_Begin from XKB on X11.

Tests: with numlock off,

numpad 5 => "\e[OE"
Ctrl + numpad 5 => "\e[1;5E"
Alt + numpad 5 => "\e[1;3E"
Shift + numpad 5 => "5"

These results are the same as VTE3 0.56.3. On xterm 346, Shift + numpad
5 generates "\eO2u". However, Qt returns 5 instead of KP_Clear if Shift
is hold even with numlock off, so implementing Shift + numpad 5 might be
rather complicated. As a side note, shifted keypad sequences can be
found in emacs sources [2].

Note that on Wayfire (wlroots-based Wayland compositor), numpad 5 with
numlock off generates an event without Qt::KeypadModifier. Further
investigation needed.

Ref: https://github.com/lxqt/qtermwidget/issues/117

[1] https://doc.qt.io/qt-5/qt.html#Key-enum
[2] https://github.com/emacs-mirror/emacs/blame/master/lisp/term/xterm.el
2019-07-15 22:38:35 +02:00
Chih-Hsuan Yen 0d9c8cf0b5 Colons support in RGB definition
With this patch, non-color sequences using colons are also accepted. I
consider such sequences undefined behavior, though.

Closes https://github.com/lxqt/qterminal/issues/78
2019-07-15 21:07:20 +02:00
mscdex f4a3a6ac3f Announce truecolor support via COLORTERM 2019-07-15 21:06:08 +02:00
Chih-Hsuan Yen 1c633498f0 Add copy and paste actions to the example 2019-07-15 21:05:11 +02:00
Chih-Hsuan Yen 2cb98f24b7 Don't set the selection clipboard if it's unsupported
Or there are warnings on macOS and Wayland. For example,

> Data set on unsupported clipboard mode. QMimeData object will be deleted.
2019-07-15 21:05:11 +02:00
Chih-Hsuan Yen 5d99bae37d Use vanilla Qt instead of patched one
Since Qt 5.12.3 [1], Qt binaries can run on old kernels even if it's
compiled with statx support.

[1] https://github.com/qt/qtbase/commit/7148dfc67ff20c1c625d203aa47b574b3aaa5db1
2019-07-02 01:20:37 +08:00
Ma. Ito c10951b97c Translated using Weblate (Japanese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/ja/
2019-06-25 13:40:43 +08:00
Anders Bakken 5637ea1e5e Add QTermWidget::saveHistory
This enables an application to implement the functionality of easily
opening the entire history as a file in your favorite editor.
2019-06-21 12:44:08 +08:00
Tsu Jan 3467ff6482 Completed the support for transient scrollbars
Transient scrollbars don't take space but that wasn't considered in a small part of the code. This patch completes https://github.com/lxqt/qtermwidget/commit/2b7c2b38edd69613f5c1ec67958c18f438d27e4f

I encountered a small problem during a big compilation (qt), made and applied the patch and, by chance, had another big compilation (qtcreator) afterward. The test was successful, as expected.
2019-05-18 23:26:22 +08:00
Chih-Hsuan Yen 06dee362a5 Initial Travis CI setup 2019-05-06 01:32:09 +02:00
Luís Pereira ab49998a39 Use class instead of struct
TermWidgetImpl fits a Implementation class use.
2019-05-02 20:02:17 +08:00
eltonfabricio10 6947f7fc31 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/pt_BR/
2019-04-28 17:25:58 +02:00
Zang MingJie fcf0ebc498 Fix TerminalDisplay::getCharacterPosition memory access violation
Fix: lxqt/qtermwidget#266
2019-04-22 22:03:02 +08:00
Luís Pereira b87de89767 Use braced initializer list in returns
Replaces explicit calls to the constructor in a return with a braced
initializer list.
2019-04-13 15:49:15 +02:00
Luís Pereira 5e44880a70 Port to C++ bool literals 2019-04-13 15:49:15 +02:00
Luís Pereira 2110583a39 Port towards C++ headers 2019-04-13 15:49:15 +02:00
Luís Pereira b8906f6b0c Port towards C++11 nullptr 2019-04-13 15:49:15 +02:00
Luís Pereira 1e634114a3 Port towards C++11 override 2019-04-13 15:49:15 +02:00
Davi Lopes 8f1b40b55f Added translation using Weblate (Portuguese (Brazil)) 2019-04-07 09:58:56 +02:00
Alf Gaida ea7596a7a4 Reworded github issue template 2019-03-23 01:00:43 +01:00
Andrew Janke 5ce909cbc2 Swap Qt::ControlModifier and Qt::MetaModifier on Mac
This is because their meaning is different there.
See https://doc.qt.io/qt-5/qt.html#KeyboardModifier-enum
2019-03-21 11:02:14 +08:00
Chih-Hsuan Yen 9ee754ad0f Fix the PyQt5 binding with Qt 5.11+
Inspired by https://phabricator.kde.org/D15091
2019-03-12 17:43:44 +01:00
Luís Pereira 7718f36cd6 pyqt: Fixes deprecation warning (CMP0002)
There is no need to set CMP0002 to OLD, anymore. It can be safely removed.
Closes https://github.com/lxqt/qtermwidget/issues/177
2019-03-12 17:43:44 +01:00
Andrew Janke fa4a1bad42 Fix default font on macOS
Qt does not support fontconfig on macOS, so we need to work around it and
provide a "real" font family name for the default font. Otherwise, "Monospace"
will be unrecognized and it will fall back to a variable-width font.
2019-03-10 14:26:09 +08:00
Andrew Janke e292763e6d cmake: set CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON
This fixes a dylib linkage issue in client programs on macOS.
2019-03-06 00:04:00 +08:00
roxfr 3ee4927bad Translated using Weblate (French)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/fr/
2019-03-05 23:13:19 +08:00
Andrew Janke 3bc88706d5 example: Fix "Find" menu item name 2019-03-05 23:11:25 +08:00
Andrew Janke 0086b184bf KPty: Don't conditionalize chownpty existence on HAVE_OPENPTY
This fixes the build on Mac, which is the only place where HAVE_OPENPTY
is actually defined.
2019-03-05 22:59:08 +08:00
Andrew Janke 35464957c6 Replace Q_WS_MAC with Q_OS_MACOS for Qt 5 compatibility
The Q_WS_MAC Window Server macro is no longer defined in Qt 5: https://doc.qt.io/qt-5/macos-issues.html#compile-time-flags.
2019-03-05 22:44:45 +08:00
Alf Gaida 456e356809 Point release qtermwidget 0.14.1
* Bumped version to 0.14.1
* Only translations are changed.
2019-02-25 23:13:12 +01:00
Sérgio Marques 5a9a575d04 Translated using Weblate (Portuguese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/pt/
2019-02-25 21:25:53 +01:00
eltonfabricio10 d59fabcfdd Translated using Weblate (Portuguese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/pt/
2019-02-02 19:16:31 +01:00
Ayhan YALÇINSOY PhD. (Dr.) edf61c9877 Translated using Weblate (Turkish)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/tr/
2019-02-02 19:16:31 +01:00
Ayhan YALÇINSOY PhD. (Dr.) 4d11b7bdef Translated using Weblate (Turkish)
Currently translated at 100,0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/tr/
2019-02-02 19:16:31 +01:00
Alf Gaida 2730ab589e Changelog for 0.14.0 2019-01-24 22:57:59 +01:00
Pavel Shlyak 3da204b68d Cleanup KeyboardTranslator.cpp
The value is assigned twice. Seems to be unnecessary :)
2019-01-20 14:17:43 +01:00
Chih-Hsuan Yen b09e1d4882 Revert "Rework on memory management of filter-related objects"
This reverts commit 0154e036c7.
2019-01-14 13:17:00 +08:00
Ettore Atalan f475050f38 Translated using Weblate (German)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/de/
2019-01-01 17:02:03 +01:00
Einar Mostad 77f700c5fb Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/nb_NO/
2018-12-27 17:03:41 +08:00
Alf Gaida fa2b2b3437 translation update 2018-12-10 22:32:26 +01:00
Shlyak Pavel c1e94c94df Remove unnecessary checks 2018-12-10 01:18:54 +01:00
Alf Gaida daa6dd3541 Provide minimum versions 2018-11-30 21:38:00 +01:00
Miguel A. Bouzada 1cffced5a2 Translated using Weblate (Galician)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/gl/
2018-11-18 20:32:27 +01:00