575 Commits

Author SHA1 Message Date
Lukáš Tinkl
58e898cfb0 fix: correctly parse the destination folder
when saving an image to file

NIM already pre-processes the path for us in `utils.formatImagePath`
2023-01-27 16:18:38 +01:00
Lukáš Tinkl
85b109cab5 fix: download image is saving to wrong folder
this seems to only happen on some linux platform QPAs where the native
file/folder dialog is returning bogus target directory URL; anyways
manipulating the URL using a QRegExp is fragile, better use builtin QUrl
methods for that

Needed for fixing https://github.com/status-im/status-desktop/issues/9307
2023-01-26 23:16:15 +01:00
Alex Jbanca
c65fd86229 fix(macosCmake): Prepend .mm files in order to override cpp implementation 2023-01-17 18:10:03 +02:00
Michał Cieślak
06a00bc8c3 feat: Add additional utilities for real-time app inspection
- context properties names exposed as a model
- checking if object is a model
- exposing human-readable type name
- exposing role names for models

Closes: https://github.com/status-im/status-desktop/issues/8787
2023-01-16 13:02:06 +01:00
Michał Cieślak
7f2dd43832 feat: add basic tools for app real-time monitoring
Required by: https://github.com/status-im/status-desktop/issues/8786
2023-01-13 13:09:50 +01:00
Lukáš Tinkl
61b42e03b8 chore: fix build with Qt 5.14 2023-01-10 00:04:56 +01:00
Lukáš Tinkl
d275476608 fix(StatusSyntaxHighlighter): code block fixes
- make the code bg/fg color configurable
- simplify the code, no need for an extra helper class
- fix code(block) regexes

Needed for https://github.com/status-im/status-desktop/issues/8649
2023-01-09 19:56:49 +01:00
mprakhov
d1926ff252 chore: add QSettings beginGroup and endGroup 2022-12-30 12:49:23 +02:00
Lukáš Tinkl
75b70971ca fix(SoundManager): use logarithmic sound volume scale
Needed for status-im/status-desktop#8426
2022-12-09 20:56:43 +01:00
Boris Melnik
ea103f1a60 fix(hunspell): Remove hunspell cos we not use it
Fixes: https://github.com/status-im/status-desktop/issues/8424
2022-12-09 13:08:21 +03:00
Michał Cieślak
5fecb811aa fix: reuse QNetworkAccessManagers and pass cstr to lambda safely 2022-12-08 10:47:55 +01:00
Lukáš Tinkl
c340f703a8 fix: stop leaking QNetworkAccessManager and its replies
this was a memleak and fd leak bomb resulting in the app not starting at
all:

```
(nim_status_client:342629): GLib-ERROR **: 11:16:11.873: Creating pipes for GWakeup: Too many open files
/home/jakubgs/bin/StatusIm: line 2: 342627 Trace/breakpoint trap (core dumped) appimage-run
~/Downloads/Status/StatusIm-Desktop-221206-082906-5ee51a.AppImage
```
2022-12-06 19:57:07 +01:00
Michal Iskierko
b6c0b40210 chore(@desktop): Expose QTimer functions
Issue #6179
2022-11-28 09:30:38 +01:00
Pascal Precht
592c8a4f38 refactor: default clipboard image base64 to JPG instead of PNG
Hardcoding this is already far from ideal. We should at least use the
same type that's later used in desktop before sending images to
status-go, **before** this gets fixed properly.

The next step will be to detect codecs and use them them dynamically.
2022-11-25 15:20:28 +01:00
Lukáš Tinkl
9add7e4a4d fix(QClipboardProxy): return imageBase64 as a QString
for better interop with NIM/status-go
2022-11-25 14:36:03 +01:00
Pascal Precht
4dfe2d941b QClipboardProxy: add support for images, html and urls 2022-11-25 10:56:26 +01:00
Patryk Osmaczko
d9a8ecd67c fix: use QClipboard properly in QClipboardProxy
- constructor with connection was never called
- `textChanged` was never emitted
- `clipboard` member was uninitialized
2022-11-24 17:10:40 +01:00
Jonathan Rainville
47ca4bb6ea chore: hook into QT logs with qInstallMessageHandler
Fixes #8296

This makes the QML logs finally show on Windows
2022-11-17 15:15:21 -05:00
Lukáš Tinkl
14499ccf9b feat: add RXValidator
a QRegularExpression validator with Unicode support

Needed for status-im/status-desktop#8115
2022-11-15 11:39:23 +01:00
Lukáš Tinkl
328c56cee2 feat: implement OS notifications on Linux
using "notify-send" wrapper

Related: status-im/status-desktop#2520
2022-10-13 09:46:56 +02:00
Lukáš Tinkl
9feb81883c fix: abort startup on QML errors
exit() the app immediately after encountering QML errors on startup

task: status-im/status-desktop#7013
2022-08-15 17:56:02 +02:00
Patryk Osmaczko
0ae5a55d97 feat: add qml debugging
task: status-im/status-desktop#6973
2022-08-11 12:24:07 +02:00
Patryk Osmaczko
a5645e4b34 feat: register SortFilterProxyModel types
- it allows to `import SortFilterProxyModel 0.2`

relates: status-im/status-desktop#6510
2022-07-21 13:24:41 +02:00
Patryk Osmaczko
5f5ac16125 chore(git): add vendor/SortFilterProxyModel
relates: status-im/status-desktop#6510
2022-07-21 13:24:41 +02:00
Alexandra Betouni
7e8b91f510 fix(StatusSyntaxHighlighter): Updated regex and text formatting
Closes https://github.com/status-im/status-desktop/issues/6030
2022-06-14 16:20:46 -04:00
Michal Iskierko
51a56e88c3 feature(desktop/general): Showing number of all notifications on tray icon badge
Functionality added to OSNotification.
MacOS version.

Issue #4922
2022-05-26 14:12:59 +02:00
Sale Djenic
d66f310147 feat: url scheme event added 2022-05-13 11:18:05 +02:00
Sale Djenic
8b9fe82625 feat: get text from the clipboard 2022-03-30 18:30:01 +02:00
Khushboo Mehta
7c9d386121 feat: add support for download and copy image by url 2022-03-29 22:48:11 +02:00
Alexandra Betouni
676b1d9bc8 fix(chatinput/mentions) added clipboard proxy to prevent paste text missbehavior 2022-03-03 14:56:57 -05:00
Richard Ramos
ea578a6ae6 fix: add system certificates 2022-02-23 15:18:48 -04:00
Richard Ramos
e750cb76e8 feat: dos_add_self_signed_certificate 2022-02-21 17:01:26 -04:00
Sale Djenic
5509d6f963 feat: function to check if the app is active and make the app active are added 2022-02-21 21:26:58 +01:00
Sale Djenic
671fb1adc4 feat: sound manager added 2022-02-21 21:26:58 +01:00
Sale Djenic
379e803d94 chore: registering types is done after QGuiApplication instantiation 2022-01-31 21:41:42 +01:00
Iuri Matias
d86befc4cd fix rebase slipup 2021-09-20 11:35:30 -04:00
Andrei Smirnov
5fb8a012a3 QGuiApplication to not mess with QCoreApplication and QApplication 2021-09-20 11:35:30 -04:00
Sale Djenic
e79a3e179f feat(@desktop/general): (macos) Keychain manager added
LocalAuthentication class - used to authenticate OS' logged user (using Touch Id)
Keychain class - able to store/read/remove item from the Keychain
KeychainManager class - manages the flow of storing/reading/removing an item from
the Keychain using own sync/async methods

This change is required as part of the feature issue-2675
2021-09-17 12:46:45 -04:00
Sale Djenic
f5bcf6ee5f feat(@desktop/general): QSettings class exposed to nim 2021-09-17 12:46:45 -04:00
Sale Djenic
57312bafa5 refactor(@desktop/general): status custom events and os notification moved to the status namespace
- DockShowAppEvent
- OSThemeEvent
- OSNotification
are now part of our `Status` namespace

Corresponding files are renamed and moved to appropriate Status folder.
2021-09-17 12:46:45 -04:00
Andrei Smirnov
0bebd4cc2a fix(@desktop/systemtrayicon): using proper QApplication class 2021-09-16 16:52:58 -04:00
Michael Bradley, Jr
10af6b3074 feat: expose from local file
And revise some naming re: "to local file".
2021-09-16 16:31:27 -04:00
Anthony Laibe
631b2d1f3f feat: expose to local file 2021-09-16 16:31:27 -04:00
B.Melnik
9da380cf96 feat(Spellchecking): Update Spellchecker
Closes: #3443
2021-09-15 14:32:05 -04:00
B.Melnik
0071238cdc feat(Spellchecker): Add spellchecker class 2021-09-15 14:32:05 -04:00
Andrei Smirnov
96d1ad594a Passing custom events over single instance IPC 2021-09-15 14:24:42 -04:00
Andrei Smirnov
8e5de9d401 Fixing SingleInstance for *nix 2021-09-15 14:24:42 -04:00
Andrei Smirnov
44ef468f01 fix(@desktop/chat): proper font style for code blocks 2021-09-07 14:26:21 -04:00
Sale Djenic
5ff11d3eb3 fix(@desktop/general): (windows) clicking push notification does expand the app but does not open correct channel/chat
Windows notifications added in a native way.
This change is required as part of the fix for ticket 2996.

Fixes: #2996
2021-09-06 15:09:04 -04:00
Sale Djenic
cafe9c6742 fix(@desktop/general): (macos) clicking push notification does expand the app but does not open correct channel/chat
MacOS notifications handled in a native way.
This change is required as part of the fix for ticket 2996.

Fixes: #2996
2021-09-06 15:09:04 -04:00