Commit graph

32 commits

Author SHA1 Message Date
ac2e96cc7d Updated lib_ui to latest patches-track-wip (TD 5.0.6) 2024-08-31 01:35:59 +03:00
91038c8f17 Updated lib_ui to latest patches-track-wip 2024-07-01 17:53:11 +03:00
John Preston
34fcd4981d Join block format changing to the same edit block. 2024-05-27 22:21:33 +04:00
John Preston
b2653606be Fix newline regression on Linux. 2024-05-27 22:07:51 +04:00
John Preston
f1d0a67d41 Attempt to fix link-formatting. 2024-05-27 15:02:22 +04:00
John Preston
951ccf4bb0 Fix wrong Backspace propagation. 2024-05-27 15:02:22 +04:00
John Preston
b0e408e53d Allow attaching length limit to InputField. 2024-05-24 09:37:18 +04:00
Ilya Fedin
037ceb272c Remove a no longer needed workaround for QTextEdit on X11
It's fixed in Qt 6.2 and seem to be even backported to 5.15

4b0b87b5c2
2024-05-19 09:54:52 +04:00
John Preston
72a1c98fa6 Fix inner QTextEdit focus in case InputField is focused. 2024-05-16 13:28:21 +04:00
John Preston
3aeeec3dfc Fix initial InputField text setting.
After stargin to merge block format to current cursor the
_lastTextWithTags was cleared before being set from the same reference.
2024-05-13 10:32:54 +04:00
John Preston
41d1fe9232 Improve custom fonts support in the InputField. 2024-05-08 18:36:18 +04:00
John Preston
86dc01e9bc Use custom-adjusted font metrics. 2024-05-02 11:32:44 +04:00
Ilya Fedin
a052b22872 Try to make font handling more straightforward 2024-04-23 09:47:46 +04:00
23rd
1587f9f1b9 Added storage of proper text size with emoji to input field. 2024-03-08 10:55:17 +04:00
Ilya Fedin
893dab0920 Do exact match for Ctrl+Shift+. 2024-03-08 08:06:33 +04:00
23rd
333587d95e Added function to count characters in input field with emoji. 2024-02-27 04:11:57 +03:00
John Preston
4ea96ef328 Fix saving custom emoji id in property. 2023-11-14 14:43:18 +04:00
John Preston
e3eabf8eff Allow better InputField content restriction. 2023-11-14 12:17:00 +04:00
John Preston
fee301f941 Use plain windows.h now it doesn't define small. 2023-11-13 18:59:56 +04:00
John Preston
f9b24c7551 Fix build on Windows. 2023-11-13 11:26:07 +04:00
Ilya Fedin
d047544584 Add X11 support for Ctrl+Shift+. 2023-11-11 21:25:14 +04:00
Ilya Fedin
f4b87f2322 Compare nativeVirtualKey with enum value 2023-11-11 21:25:14 +04:00
John Preston
85b25a109d Use Ctrl+Shift+Dot workaround on Windows only. 2023-11-10 11:18:46 +04:00
John Preston
835ba51f5e Don't include newlines in format by default. 2023-10-31 12:47:22 +04:00
John Preston
c317f2a353 Partially (italic+colored) support blockquotes. 2023-10-05 13:01:03 +04:00
John Preston
0d8717d48a Allow sending pre-blocks with language. 2023-10-04 22:17:27 +04:00
Ilya Fedin
ae8a74ea98 Remove Q_OBJECT from CustomEmojiObject 2023-09-07 21:58:45 +04:00
23rd
5a2402ad5d Slightly optimized include directives in InputField. 2023-08-31 17:09:59 +03:00
23rd
9d2f648a11 Replaced Qt slots in InputField and removed Q_OBJECT macro. 2023-08-31 17:09:59 +03:00
23rd
dfbf009904 Replaced QTimer with base::Timer in InputField. 2023-08-31 17:09:59 +03:00
23rd
6a7718ae96 Replaced Qt signals in InputField with rpl. 2023-08-31 17:09:59 +03:00
23rd
7a245fee51 Moved out InputField files to subfolder. 2023-08-31 17:09:59 +03:00
Renamed from ui/widgets/input_fields.cpp (Browse further)