Commit graph

42 commits

Author SHA1 Message Date
John Preston
45ffbdeef9 Track Ui::Text::String modifications on parse. 2023-10-11 21:49:00 +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
John Preston
02440524ea Add per-line geometry / colors customization for Text. 2023-10-04 22:17:27 +04:00
23rd
7a245fee51 Moved out InputField files to subfolder. 2023-08-31 17:09:59 +03:00
23rd
3fea35ff19 Added regexp for excluding digits. 2022-12-29 13:36:03 +03:00
John Preston
06f3c837f6 Add TextForMimeData::WithExpandedLinks method. 2022-09-21 18:54:37 +04:00
John Preston
9604836ed9 Fix custom emoji copy from TextWithEntities to clipboard. 2022-08-15 15:13:28 +03:00
John Preston
9cb7bb58f6 Update custom emoji entity format. 2022-07-05 23:35:03 +04:00
John Preston
6bd7518109 Fix editing text with custom emoji and formatting. 2022-07-01 12:55:26 +04:00
John Preston
e6b3951b40 Support serializing / deserializing custom emoji as tags. 2022-06-30 13:22:03 +04:00
23rd
7bd7ada3ff Split qt_adapters to separated files. 2022-01-24 19:29:36 +03:00
John Preston
0488688592 Use '\' instead of '$' as a tags separator. 2022-01-20 11:19:45 +03:00
23rd
b81b9371e6 Removed TextParseRichText. 2022-01-08 08:24:06 +03:00
23rd
7e279bd83a Removed text commands. 2022-01-08 08:24:06 +03:00
23rd
3461c18cda Extracted ellipsis string from String::Text to global access. 2021-12-25 18:24:09 +03:00
23rd
774da18a38 Added utility to correctly cut text with commands. 2021-12-25 17:31:53 +03:00
23rd
9c1572564b Added utility to replace spoiler entities with text commands. 2021-12-24 15:49:02 +03:00
23rd
fc6c3841ee Improved utility to clean text from text commands except spoilers. 2021-12-24 15:49:02 +03:00
23rd
8331322c20 Replaced tag separator to avoid conflicts with new spoiler tag. 2021-12-24 15:49:02 +03:00
23rd
ee4a94c122 Added spoiler support to input field. 2021-12-24 15:49:02 +03:00
23rd
c06f0435c4 Moved splitting of tags to separated method. 2021-12-22 17:03:52 +03:00
Ilya Fedin
004270ebd0 Try with QList 2021-10-20 10:27:52 +04:00
Ilya Fedin
93987b3703 Fix a type mismatch 2021-10-20 10:27:52 +04:00
Ilya Fedin
ee36b1f451 Use StringViewMid adapter 2021-10-20 10:27:52 +04:00
Ilya Fedin
64e40913df Use new Qt 6 adapters 2021-10-19 19:28:45 +04:00
Ilya Fedin
8e5d35229a Simple replacements for Qt 6
QStringRef -> QStringView
QTextCursor constructor accepts a QTextDocument only
Some headers are moved, so paths are removed
QMatrix -> QTransform
Methods returning qsizetype are wrapped to int()s to allow compiler to deduce the type
2021-10-19 17:06:25 +04:00
Ilya Fedin
a2d1114a93 Get rid of osx and linux32 special targets 2021-08-11 16:01:30 +03:00
Ilya Fedin
51cfd0ba35 Fix -Wunused-variable warnings with gcc 2021-07-19 18:59:36 +03:00
Ilya Fedin
b8485c0d8a Fix -Wunused-variable warnings 2021-07-13 21:24:22 +03:00
John Preston
0134685622 Fix converting entities to tags. 2021-06-23 15:55:03 +04:00
John Preston
2d71162f4a Convert overlapping tags to entities and back. 2021-06-22 18:29:12 +04:00
John Preston
96b4c6c57a Allow several tags with '|' separator in InputField. 2021-06-22 14:42:57 +04:00
Ilya Fedin
c74cf04cc6 Get rid of deprecated ranges::view usage 2021-03-13 19:06:44 +03:00
John Preston
f06346fbf0 Allow precompute size of serialized tags. 2020-11-13 20:26:30 +03:00
John Preston
d4c99701b5 Fix deprecation warnings on Qt 5.15.1. 2020-11-04 18:44:45 +03:00
John Preston
54a8c62bf5 Fix links parsing in case of surrogate pairs. 2020-10-30 16:08:03 +03:00
John Preston
d71d2121b1 Move some methods out of the global scope. 2020-06-03 19:04:52 +04:00
John Preston
555a9d203c Add a separate Semibold entity type. 2020-05-08 12:07:35 +04:00
John Preston
8d8d561127 Support rich text in toasts. 2020-04-07 13:58:24 +04:00
John Preston
199e51706f Support build with range-v3 0.9.1. 2019-10-02 14:43:04 +03:00
John Preston
85c83003ca Initial commit. 2019-09-17 17:48:58 +03:00