John Preston
ffd2817d18
Destroy InputField::Inner before InputField.
...
Inner has a pointer to parent and uses it assuming it is InputField.
If Inner lives longer than InputField (till ~QWidget) then in some
cases it accesses InputField as a (not completely) destroyed object.
2018-07-31 22:56:02 +03:00
John Preston
be043a4437
Remove BypassWindowManagerHint in MediaView / Passport.
...
It makes all kinds of usages buggy, including choose file dialog.
Fixes #4936 .
I hope fixes #4950 , I hope fixes #4955 , I hope fixes #3553 .
2018-07-31 22:55:30 +03:00
John Preston
54cd55523b
Fix crash in markdown preprocessing.
2018-07-11 17:56:09 +03:00
John Preston
e1fd43b2a4
Fix crash in text post processing.
...
Fixes #4948 .
2018-07-11 17:56:06 +03:00
John Preston
165d1aacae
Fix tilde formatting in InputField.
...
Regression was introduced somewhen while uniting input field classes.
Fixes #4829 .
2018-06-28 16:07:53 +01:00
John Preston
b7ab4fd086
Improve triple-backtick replacement.
2018-06-27 22:58:33 +01:00
John Preston
dca6e10beb
Fix markdown apply to text with emoji.
2018-06-07 22:00:46 +03:00
John Preston
122ab94f3d
Fix text color glitch after palette update.
...
Once again fixes #4774 .
2018-06-07 21:25:10 +03:00
John Preston
dd81f5d59f
Replace base::lambda with shorter term.
...
base::lambda -> Fn (type alias for std::function).
base::lambda_once -> FnMut (type alias for base::unique_function).
base::lambda_guarded -> crl::guard.
base::lambda_call_type_t -> crl::deduced_call_type.
2018-06-04 18:38:27 +03:00
John Preston
9903546a2d
Allow date edition in passport.
2018-06-03 23:16:35 +03:00
John Preston
b4a2e84aa3
Fix palette update in InputField.
...
Fixes #4774 .
2018-06-03 21:57:52 +03:00
John Preston
cf7a779689
Fix mixed markup sending.
2018-06-01 01:01:50 +03:00
John Preston
8edf4c8711
Alpha version 1.2.25: Fix build for Xcode.
2018-05-31 23:42:48 +03:00
John Preston
43d19920e0
Apply markdown only when sending the message.
2018-05-31 21:30:28 +03:00
John Preston
bfc748cd31
Pass modifiers inside InputField submitted signal.
...
Also use non-MOC connections for all InputFields.
Also use Ctrl/Cmd + Enter to submit fast share box.
Fixes #4769 .
2018-05-31 15:20:28 +03:00
John Preston
0cbad9098e
Active window on drop to InputField.
2018-05-31 13:35:14 +03:00
John Preston
f334e2d0f4
Clear formatting at the start of the field.
2018-05-27 13:48:30 +03:00
John Preston
7252e9b266
Apply max length limit to initial text.
2018-05-26 18:39:13 +03:00
John Preston
07d8dafa5e
Allow inserting links with custom text.
...
Fixes #4737 .
2018-05-26 18:07:51 +03:00
John Preston
3f7947b404
Use input method commit events to commit replacements.
...
Partially fixes #4727 .
2018-05-25 23:36:32 +03:00
John Preston
4870558827
Apply formatting from context menu or shortcuts.
2018-05-25 23:31:18 +03:00
John Preston
c23ec41622
Don't replace 'code' tag inside a possible 'pre'.
...
Partially fixes #4728 .
2018-05-25 21:02:44 +03:00
John Preston
544aef19b4
Revert markdown by backspace only temporarily.
...
Don't revert if you move cursor by arrows or Home/End.
2018-05-25 21:02:38 +03:00
John Preston
24834ced9e
Fix input field palette setup.
...
Fixes #4732 . Fixes #4734 .
2018-05-25 20:50:36 +03:00
John Preston
250718e766
Fix build for Xcode.
2018-05-24 20:25:04 +03:00
John Preston
5e7642b42a
Support markdown and replaces in media captions.
2018-05-24 16:03:21 +03:00
John Preston
6f6ec217e3
Support markdown replaces in Ui::InputField.
2018-05-24 15:31:48 +03:00
John Preston
017ec87d60
Replace FlatTextarea with InputField.
2018-05-22 13:45:22 +03:00
John Preston
30dd8fe070
Unite InputField and InputArea.
...
Also support and use instant replaces in InputField-s.
2018-05-20 23:37:59 +03:00
John Preston
4f9507ed97
Fix build for Xcode 9.3.1 and OS X 10.6-10.7.
2018-05-13 21:12:44 +03:00
John Preston
168a7ce2e5
Add "Suggest emoji replacements" checkbox.
...
Also emoji suggestions insert an instant emoji replacement.
2018-05-13 18:56:08 +03:00
John Preston
4b763a76df
Instant in-field emoji and text replaces.
...
Fixes #4410 . Fixes #522 .
2018-05-13 18:14:02 +03:00
John Preston
9935a36c3d
Create and edit proxy box.
2018-05-05 21:55:38 +03:00
John Preston
840b42934b
Use server-side my_results in contacts.search.
2018-02-08 12:20:51 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
2a409e3734
Add files from clipboard to composed album.
...
Fixes #4243 .
2017-12-29 20:02:23 +03:00
John Preston
2569df9e5a
Rename some Ui methods.
...
myEnsureResized -> Ui::SendPendingMoveResizeEvents.
myGrab -> Ui::GrabWidget.
myGrabImage -> Ui::GrabWidgetToImage.
2017-12-26 19:20:08 +03:00
John Preston
afd1548533
Attempt to fix a crash in touch event handlers.
2017-11-30 22:18:39 +04:00
John Preston
8ff0120642
Add EditPeerInfoBox without saving.
2017-11-16 07:59:10 +04:00
John Preston
554eb3a342
Move stickers state variables to AuthSessionData.
...
Also allow to click on the selected set when choosing megagroup
sticker set and allow to paste a t.me link to the set there.
2017-11-16 07:59:09 +04:00
John Preston
09d1e3629a
Add media search to all info modes.
2017-11-16 07:59:08 +04:00
John Preston
83850d9b86
Change *[Fast|Animated] to anim::type in FadeWrap.
2017-11-16 07:59:06 +04:00
John Preston
25ffaaaa2d
Replace t_assert() with Assert().
...
Also use this assertions for Expects(), Ensures() and Unexpected().
2017-08-30 19:15:42 +03:00
John Preston
edbc3f8fde
Use QDataStream directly on QByteArray.
2017-08-25 14:39:30 +03:00
John Preston
fa818407e6
Improve group sticker set setup box.
2017-08-25 14:39:25 +03:00
John Preston
ce51abd9d0
Change dialogs filter text area for two icons.
2017-08-25 12:58:09 +03:00
John Preston
da0d78135d
Some refactoring in working with text entities.
...
Also move this code to TextUtilities namespace.
2017-07-06 14:37:42 +03:00
John Preston
665a1acfd8
Apply language with app restart if logged in.
...
Confirm and restart if logged in, just quickly apply if not.
2017-06-29 11:39:54 +03:00
John Preston
b94099e25b
Realtime UI translation in all fields and buttons.
2017-06-29 11:39:51 +03:00
John Preston
5fc4f4ed36
Realtime UI translation in Intro.
...
Also support realtime translation testing by F7-F6-F7-F8 keys.
2017-06-29 11:39:49 +03:00