23rd
8b0ff16b66
Fixed isolated emoji under spoilers.
2021-12-30 03:24:11 +03:00
23rd
e961883914
Fixed spoiler width for thin characters.
2021-12-30 03:23:39 +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
44853e9334
Added ability to show or hide spoilers from outside.
2021-12-25 17:31:53 +03:00
23rd
db871a87f5
Added animation for spoilers.
2021-12-24 15:49:02 +03:00
23rd
2c1e6b458d
Moved SpoilerClickHandler to separated file.
2021-12-24 15:49:02 +03:00
23rd
af2cfca307
Improved style of selected text with spoilers.
2021-12-24 15:49:02 +03:00
23rd
6c9d832ad8
Added nice corners for spoilers.
2021-12-24 15:49:02 +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
bcf16c6c80
Added spoiler support to conversion from Ui::Text::String to text.
2021-12-24 15:49:02 +03:00
23rd
6b905f7754
Added text command for spoilers.
2021-12-24 15:49:02 +03:00
23rd
1819e6e3a5
Added initial spoiler support to Ui::Text::String.
2021-12-24 15:49:02 +03:00
23rd
e19a4c6544
Added index for spoiler to AbstractBox.
2021-12-22 22:39:03 +03:00
23rd
8aeb6def88
Moved out AbstractBlock implementation from header file.
2021-12-22 17:08:11 +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
John Preston
d81997194e
Allow forcing links to be always underlined.
2021-09-19 12:41:44 +03:00
23rd
38d65bf16e
Added separate entity type for media timestamp.
2021-08-16 13:32:58 +03: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
f239f66ce5
Fix build with Xcode.
2021-06-22 20:31:57 +04:00
John Preston
0028a534d2
Fix parsing links with markup to entities.
2021-06-22 19:04:29 +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
6ff8d15de0
Move qtextitemint ifdef to cmake
2021-05-31 22:51:06 +03:00
Ilya Fedin
0dbb210385
Fix deprecated declarations warning in QTextItemInt
2021-05-31 22:51:06 +03:00
John Preston
d07bee87cd
Use LOG/DEBUG_LOG from lib_base.
2021-04-20 16:39:27 +04:00
John Preston
51b4074cc9
Support 64 bit mention ids in entities.
2021-04-08 16:19:50 +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
9c9a4bc4d8
Custom non-internal links should go to entities.
2020-10-30 18:13:50 +03:00
John Preston
54a8c62bf5
Fix links parsing in case of surrogate pairs.
2020-10-30 16:08:03 +03:00
John Preston
663e2cc133
Don't expand urls same as text.
2020-10-08 12:00:28 +03:00
John Preston
e712f9b3de
Add time format getter to Ui::Integration.
2020-09-30 12:10:23 +03:00
Ilya Fedin
88a4a27d8e
Add a file with missing QTextItemInt symbols
2020-07-13 09:36:31 +04:00
John Preston
fffdce5cb5
Fix copying text with links containing a newline.
2020-07-08 09:33:35 +04:00
John Preston
4e6763d176
Remove old ways to customize mentions.
2020-06-16 19:10:18 +04:00
John Preston
ab61721a13
Allow passing std::any context to link creation method.
2020-06-09 13:04:44 +04:00
John Preston
d71d2121b1
Move some methods out of the global scope.
2020-06-03 19:04:52 +04:00