John Preston
048156ecda
Support fractional border in rounded input field.
2023-07-18 20:44:53 +04:00
John Preston
a7d5031889
I hope this fixes some focus problems.
2023-05-24 21:01:23 +04:00
John Preston
37531086ec
Drop all formatting by default in InputField.
2023-04-24 21:25:20 +04:00
John Preston
56945859e3
Try allowing correct handling.
2023-04-20 13:36:37 +04:00
John Preston
41ee2fb0f0
Use QFontMetricsF and ceil() the width() results.
2023-01-24 12:10:48 +04:00
John Preston
4befce5a29
Fix colored custom emoji in field.
2022-12-15 19:10:35 +04:00
John Preston
4ec3aced2e
Support colored emoji more widely.
2022-12-15 17:24:36 +04:00
John Preston
4ba3000a28
Get rid of FlatInput class.
2022-10-20 17:41:57 +04:00
John Preston
e72b521618
An attempt to improve input fields touch-screen support.
2022-09-19 14:18:59 +04:00
John Preston
4ff5bc5773
Provide correct colors for spoiler selection.
2022-09-17 01:59:01 +04:00
John Preston
73b6bc5e13
Implement animated spoilers.
2022-09-17 00:22:08 +04:00
John Preston
01c4ba869a
Allow requesting low-quality scaling of custom emoji.
2022-08-23 17:46:56 +03:00
John Preston
2f5d5e0e79
Don't allow custom emoji pseudo-links in EditLink.
2022-08-15 18:40:24 +03:00
John Preston
fbd82ff92b
Simplify CustomEmojiId.
2022-08-15 13:12:41 +03:00
John Preston
2f21e92bbe
Fix build with GCC.
2022-07-19 22:32:02 +03:00
John Preston
0daf3d4ac7
Support instant-replacement with a custom emoji.
2022-07-18 20:30:09 +03:00
John Preston
d7318d849e
Make custom emoji size 12% larger.
2022-07-06 12:20:29 +04:00
John Preston
2bec778251
Fix custom emoji before a newline.
2022-07-06 10:41:30 +04:00
John Preston
ec76a4c0bb
Optimize custom emoji repaints in the InputField.
2022-07-06 10:09:10 +04:00
John Preston
9cb7bb58f6
Update custom emoji entity format.
2022-07-05 23:35:03 +04:00
John Preston
464c6a6171
Custom emoji not pausing by default.
2022-07-01 17:32:35 +04:00
John Preston
0b829240fd
Don't insert object character without _customEmojiObject.
2022-07-01 17:01:11 +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
John Preston
3668ee1085
Remove Pre tag when removing Code tag.
2022-05-23 12:39:04 +04:00
Ilya Fedin
a32f3a94b9
Use modifier workaround only on X11
...
It's a bug in Qt's xcb backend after all
2022-05-19 11:50:39 +04:00
Ilya Fedin
eb82d31c55
Set additional margin to the input field without style sheet
2022-05-02 14:06:03 +04:00
Ilya Fedin
183576ae65
Make a comment about the Qt's Caps Lock bug
...
In order to remember remove it once the bug is fixed
2022-04-14 09:07:40 +04:00
Ilya Fedin
f2c77daccc
Use setContentMargins in QLineEdit-based input fields
2022-03-05 16:55:33 +04:00
23rd
2d54e9fd35
Fixed background display after untoggling spoilers in input fields.
2022-01-24 20:44:32 +03:00
23rd
7bd7ada3ff
Split qt_adapters to separated files.
2022-01-24 19:29:36 +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
John Preston
7efa1f9b2b
Use base::unique_qptr for PopupMenu-s.
2021-12-09 21:55:19 +04:00
Ilya Fedin
397be4f175
Call QInputMethod::show on TouchEnd
...
Qt calls QInputMethod::show on mouseReleaseEvent, but tdesktop sets Qt::WA_AcceptTouchEvents, so Qt's callback is never called and the keyboard is never shown. Adding the same to TouchEnd event should synchornize the behavior.
QInputMethod::hide is called in QWidget::focusOutEvent and shouldn't be affected.
2021-10-25 08:47:23 +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
b35d2d257a
Use base/random.h instead of openssl::RandomValue.
2021-09-15 13:16:44 +03:00
23rd
093e3129ab
Replaced singleShot with InvokeQueued in InputField.
2021-09-06 13:19:32 +03:00
John Preston
ec3af38ad9
Attempt to fix a possible crash in InputField.
2021-09-01 18:50:00 +03:00
Ilya Fedin
b8485c0d8a
Fix -Wunused-variable warnings
2021-07-13 21:24:22 +03:00
Ilya Fedin
f0c474c6ae
Fix clang warnings
...
Fixes -Wrange-loop-construct and -Wdeprecated-enum-enum-conversion
2021-07-13 20:16:48 +03:00
Ilya Fedin
b0c950b02a
Fix -Wunused-function warnings
2021-07-13 20:15:45 +03:00
John Preston
e73e1a6c0f
Fix new formatting mixing with emoji.
2021-06-24 17:01:03 +04:00
John Preston
2d71162f4a
Convert overlapping tags to entities and back.
2021-06-22 18:29:12 +04:00
John Preston
d3eff6f38a
Add and remove tags without clearing markup.
2021-06-22 16:35:01 +04:00
John Preston
96b4c6c57a
Allow several tags with '|' separator in InputField.
2021-06-22 14:42:57 +04:00
John Preston
ff0daf7d83
Fix breaking formatting tag on newline.
2021-06-22 11:08:04 +04:00
John Preston
b1d5ed4ab5
Always call raise() before activateWindow().
2021-06-07 11:24:22 +04:00