James Graham
63af4cae77
Fix timeline layout for non text messages
...
Change the target of the hover component and delegate layout to timeline container so it applies to all delegates not just text messages.
BUG: 457689
2022-08-22 17:38:50 +00:00
Nate Graham
619369e148
Add hackaround for Qt bug to all non-horizontally-scrollable scrollviews
...
https://bugreports.qt.io/browse/QTBUG-83890 has been open for years with
a patch that's been stalled for years. There's no indication that it's
going to be fixed anytime soon, and it generates bug reports for us.
Let's add the typical hackaround for all non-horizontally-scrollable
scrollviews.
BUG: 457584
2022-08-08 15:02:09 -06:00
Tobias Fella
916e7465f1
Don't show a link preview for empty links
...
When hovering over a link without a target, qt5 will report the link target to be "1", which is wrong.
To work around this, we manually check if the link is "1" and if it is, we discard it.
In theory, this means that we won't get a preview for any link that actually *is* "1", but why would any link be "1"?
It's not worth reporting this to Qt since it seems fixed in Qt6
BUG: 456877
2022-07-18 21:18:48 +02:00
Tobias Fella
8257a9d65e
Refactor delegates and improve context menu opening
...
This unifies the context menu opening and makes sure that clicking *anywhere* on the delegate opens the context menu, not just on the content
2022-07-18 20:12:26 +02:00
James Graham
400d86a1e9
Precise time on hover
...
Implement showing a long datetime as a tooltip when hovering over the timestamp for a message. The timestamp is also moved to just after the username of the poster this means it will not be under the hover buttons unless the message is very short.
Also some cleanup of the alignment of items in the bubble. The reply text is now indented the same amount as the username and message and the padding isn't removed from the username and message when avatars are disabled.
Implements: network/neochat#223
2022-07-15 15:39:33 +00:00
Tobias Fella
b1581a54d1
Allow sending encrypted messages if build supports it
2022-07-14 16:59:37 +02:00
James Graham
6957dd0fa2
Apply margin in SectionDelegate both for Compact and Bubble mode
2022-07-13 17:27:13 +00:00
Tobias Fella
7de4014b28
Update formatting
2022-07-13 17:27:13 +00:00
James Graham
63e7ec1bd7
Spell like an American
2022-07-13 17:27:13 +00:00
James Graham
f24428fab3
Apply margin in ReadMarkerDelegate both for Compact and Bubble mode
2022-07-13 17:27:13 +00:00
James Graham
5fb311b509
Implement new delegate behaviour on ReadMarkerDelegate
...
Make sure that the messgae hover buttons account for the delegate x displacement
2022-07-13 17:27:13 +00:00
James Graham
f0d832f756
Make sure extra width is never less than 0
2022-07-13 17:27:13 +00:00
James Graham
a7c137ca39
Allow the delegate and bubble widths to grow when the ListView is very wide.
...
Disable user message on the right setting when in compact mode as it doesn't work anyway.
2022-07-13 17:27:13 +00:00
James Graham
a96e8958c9
Centre the timline when using bubbles but not in compact mode
2022-07-13 17:27:13 +00:00
James Graham
7dc951d2cd
Support user messages on the right even when wide
...
Limit maximum delegate width to ensure that the gap between user and non-user messages isn't too large
2022-07-13 17:27:13 +00:00
Tobias Fella
2bcd7118f4
Ensure that text isn't formatted in context menu
2022-07-09 23:01:13 +02:00
Tobias Fella
e0df553a72
Remove unused imports & includes
2022-07-08 13:16:07 +02:00
Nicolas Fella
722aa422e7
Fix activating browser windows on Wayland
...
QDesktopServices::openUrl does not have XDG activation support yet so it can't raise an existing browser window when opening URLs
Instead use KIO::OpenUrlJob, which does support that
2022-07-05 22:55:12 +00:00
Jan Bidler
083a2f9772
Compact Mode improvements
...
BUG: 454897
2022-06-07 12:33:14 +00:00
Tobias Fella
525015fe78
Fix fix
2022-06-05 00:41:59 +02:00
Tobias Fella
8700611235
Fix hoverActions
2022-06-04 20:32:49 +02:00
James Graham
e62288e6f1
Adds some basic mouse contorls to the quickswitcher. The icons can now be clicked to select the room and the highlight is moved to the current hovered room.
2022-05-21 10:55:43 +00:00
Tobias Fella
5595d8f896
Allow disabling sending of typing notifications
2022-05-02 10:36:48 +00:00
Marcus Harrison
d0bc8f3d05
Fix mis-aligned user messages
...
In compact mode with userMessagesOnRight, the user
avatar disappeared and their messages left space
on the right for an avatar that wasn't displayed
anymore.
2022-04-14 14:38:02 +02:00
Tobias Fella
decd528079
Disable busyindicator
2022-04-09 19:47:17 +02:00
Tobias Fella
aef6d6fc85
More typing notification improvements
2022-04-08 20:37:17 +02:00
Tobias Fella
432e209b16
Try fixing stuck read notifications
2022-04-08 20:33:41 +02:00
Tobias Fella
334c13b36c
Set preferredWidth and preferredHeight of images
2022-03-11 15:09:57 +01:00
Tobias Fella
12f3f72a67
Lower typing notification timeouts
2022-03-08 15:00:00 +01:00
Tobias Fella
b2a8430fa2
Don't apply autocompletion when autocomplete list is empty
...
Fixes sending messages like ':)'
2022-03-01 00:26:28 +00:00
Tobias Fella
faeb1964bd
Prepare Image & Video loading for E2EE
...
Changes the urls to make sure they are decrypted, while making sure that
it is backwards compatible to libQuotient 0.6
2022-02-25 21:15:46 +01:00
Tobias Fella
db8b2fd64b
Aggregate similar state events
2022-02-25 20:10:07 +00:00
Tobias Fella
dc9d574b58
Fix login regex
2022-02-23 22:49:58 +01:00
Jose Flores
7c807e6a25
Modifies regex check for valid matrix server to accept ip addresses.
2022-02-22 22:54:43 +00:00
Tobias Fella
dd91cb91d0
Load replied-to message when it isn't in the timeline already
2022-02-18 16:11:51 +01:00
ivan tkachenko
3e6f38c8ea
Use ellipsis in «Loading…» strings
2022-02-04 20:59:17 +03:00
Tobias Fella
bce560b03b
Fix left margin in EncryptedDelegate
2022-01-30 23:21:00 +01:00
Carl Schwan
297684a139
Fix issues with saveFileAs
...
Fix #491
2021-12-28 23:42:16 +01:00
Carl Schwan
aa9dcc87cb
Fix variable lookup in the timeline delegates
...
This fix issues with downloading and interacting with files
2021-12-28 16:18:05 +01:00
Carl Schwan
dd977976db
Improve emoji pane
2021-12-26 13:26:42 +00:00
Carl Schwan
5f41378214
Fix image tooltip
...
display needs to be from the model and not from the Control
2021-12-26 00:14:09 +01:00
Carl Schwan
ca2b5fde8e
Remove lag when starting user autocompletion
...
We realistically don't need to interate over every user when typing '@',
since this is not usefull for the user and create some lag.
2021-12-25 18:31:22 +01:00
Carl Schwan
e79e06235f
Fix QuickSwitcher activation
...
By making sure the global menu bar is disabled when not needed. This
should also help with memory usage.
Fix #482
2021-12-25 14:41:43 +01:00
Tobias Fella
332d6c9782
Minor improvements
...
- Rename TextDelegate to RichLabel since it's not actually a delegate
- Allow web search for whole messages
2021-12-15 00:53:43 +01:00
Tobias Fella
599ab11656
Refactor delegates
2021-12-14 22:27:29 +00:00
Tobias Fella
ff707b7a58
Remove dead code
2021-12-14 16:48:42 +01:00
Carl Schwan
658eb187c9
Prevent instability with TextArea with null as background
2021-12-08 14:16:34 +01:00
Tobias Fella
d65962cbaa
Use plaintext in completion menu
2021-11-22 00:20:49 +01:00
Tobias Fella
c81ca6f8bb
Set the height of statedelegates
2021-11-16 00:45:42 +01:00
Tobias Fella
740662e3f0
Remove visibility setting from FullScreenImage
2021-11-16 00:21:01 +01:00