Commit graph

1560 commits

Author SHA1 Message Date
Kristen McWilliam
caaac80ca5
fix: copy auth code to desktop clipboard
SMS auth codes generate a notification that has a "Copy $code" button
(eg. "Copy 123456"), but the button doesn't actually copy the code as
expected. This patch fixes that.

BUG: 451539

BUG: 435614
2024-10-17 13:51:23 -04:00
Biswapriyo Nath
935d874d57 plugins/systemvolume: Remove workaround for mingw toolchain
This reverts the change from 595e8d9a35
and a01af1b406 commit.

PKEY_Device_DeviceDesc was added in mingw-w64 headers in the
following commit.

0b02ea1d7d/
0b02ea1d7d (mirror)
2024-10-15 09:30:28 +00:00
Carl Schwan
9832f380dc findthisdevice: Add audio playback
Similar to the C++ kcm
2024-10-13 19:40:34 +00:00
Carl Schwan
20bba74b0b findthisdevice: Fix getting defaultSounds in the QML app
Now use the same code as the C++ kcm
2024-10-13 19:40:34 +00:00
Biswapriyo Nath
b40f2a785f plugins/systemvolume: Fix linker error with mingw toolchain
This commit fixes the following linker error with mingw ld.

ld.exe: systemvolumeplugin-win.cpp:373:(.text+0x11ae): undefined
reference to `_GUID const& __mingw_uuidof<IPolicyConfigVista>()'
ld.exe: systemvolumeplugin-win.cpp:373:(.text+0x11b6): undefined
reference to `_GUID const& __mingw_uuidof<CPolicyConfigVistaClient>()'
2024-10-13 15:42:06 +00:00
Carl Schwan
0e782de07f Port kdeconnect_share_config away from Qt labs 2024-10-10 13:16:31 +00:00
Rob Emery
36f8b27a0d Switching to static_cast 2024-10-10 09:01:48 +01:00
Rob Emery
d91409bb73 Switching back to comment block 2024-10-10 08:54:36 +01:00
Rob Emery
c437b74f76 Fixing error: unused variable 'IMAGE_DATA_SIGNATURE' 2024-10-10 08:51:57 +01:00
Rob Emery
e3af5e6312 Fixing 'argument': conversion from 'size_t' to 'int', possible loss of data
assert no longer required because size_t is unsigned anyway
2024-10-10 08:51:57 +01:00
Rob Emery
65ee0e616c Force cast to int to avoid warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data 2024-10-10 08:51:57 +01:00
Rob Emery
68ad1a53a5 Uncommenting code to silence compiler warnings but retaining
noop
2024-10-10 08:51:57 +01:00
Rob Emery
68ee5422a0 Fixing implicit capture of 'this' via '[=]' is deprecated in C++20 --
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0806r2.html
2024-10-10 08:51:57 +01:00
Rob Emery
223dcfec6d Fixing deprecated bitwise ops of dissimiliar enums 2024-10-10 08:51:57 +01:00
Carl Schwan
725a4e6d46 kdeconnect_runcommand_config: Fix i18n call 2024-10-09 10:26:16 +00:00
Biswapriyo Nath
2310f7ce76 plugins/lockdevice: Remove unnecessary MSVC specific pragma directive
Fixes the following compiler warning with mingw-w64 toolchain:
    
    lockdeviceplugin-win.cpp:18: warning: ignoring '#pragma comment ' [-Wunknown-pragmas]
       18 | #pragma comment(lib, "user32.lib")
2024-10-08 15:46:11 +00:00
Carl Schwan
e04072c83e kdeconnect-app: Remove PluginInfoPage wrapper
Base the config page on Kirigami.Page and create them directly.
2024-10-06 11:04:44 +00:00
l10n daemon script
51a9f26bc1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-09-20 01:25:09 +00:00
Christoph Wolk
ba5061a215 plugins/runcommand: set Dialog preferredWidth
The Add command dialog currently does not set a preferredWidth, which
seems to cause repeated binding loops and a lot of log spam until the
dialog is actually put on screen.

This change sets the preferredWidth to 20*gridUnit, which seems to be
the typical size used in small dialogs and is about the size that the
dialog has without a width explicitly set.
2024-09-08 13:19:44 +00:00
Christoph Wolk
3e7936dc08 plugins/runcommand: improve PlaceholderMessage
While the HIG is not quite clear on this, PlaceholderMessages throughout
KDE applications and kcms tend to have sentence capitalization in their
title and include a verb (e.g. "Playlist is empty", "No game controllers
found"). The runcommand plugin breaks with this; it uses title
capitalization and does not include a verb: "No Commands".

This change modifies the title to read "No commands configured".
2024-09-08 13:19:44 +00:00
Christoph Wolk
eecdc67074 plugins/runcommand: use ColumnLayout for ListView
The ListView displaying the configured actions currently directly uses a
label that is made multi-line by including a newline. As a consequence,
eliding the text does not work properly and there is a visual clash with
the included action button. It also means that there is a rather
pointlessly translatable string that is just there for UI logic.

This change modifies the delegate to use a ColumnLayout instead, which
enables correct eliding of the labels and more cleanly separates layout
and content concerns.
2024-09-08 13:19:44 +00:00
Christoph Wolk
9f34092aa9 plugins/runcommand: make config dialog HIG-compliant
The HIG recommend that buttons with an action label that require further
user input end in an ellipsis, and that dialog buttons should clearly
indicate what they do. Button labels typically do not match the given
exceptions that license sentence case. Currently, the main "Add command"
button in the configuration button does not end in an ellipsis even
though it opens a dialog, is sentence case, and the dialog has a "Save"
rather than the customary "Add" that is used for these kinds of actions,
in particular in kcms. The dialog title is also not translatable.

This change adds the ellipsis, converts the button to title case, makes
the dialog title translatable, and adds an "Add" button as an action to
the dialog.
2024-09-08 13:19:44 +00:00
Alexander Lohnau
26c9f77b2b plugins/systemvolume: Work around remaining clang-format differences between different versions 2024-09-08 08:46:53 +00:00
Alexander Lohnau
013ba537b5 Fix clang-format 14 being confused about comment before access modifier 2024-09-08 08:46:53 +00:00
Alexander Lohnau
213b73f1dd Small typo fixes in docstrings 2024-09-08 08:46:53 +00:00
l10n daemon script
daa164bea1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-28 01:25:08 +00:00
l10n daemon script
92b24bdd52 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-19 01:21:04 +00:00
l10n daemon script
7b3ca281b1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-15 01:21:22 +00:00
l10n daemon script
727364a38d SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-13 01:21:06 +00:00
Arjan Marku
16ccee7ac9 fix: don't send clipboard network packets on empty text
If you lock the screen in EndeavourOS, a signal KSystemClipboard:changed is emitted with empty text and clipboard mode QClipboard::Clipboard. Upon unlock the clipboard will be re-synced.

A clipboard network packet will be sent for KSystemClipboard::changed signals if:
1. the received mode is QClipboard::Clipboard
2. the new content and its type are different from the current ones.

The problem here is that, before locking the screen, current content is not empty. As of condition #2, a network packet with the empty text will be sent, which clears the current clipboard selection in GBoard but the contents stay the same. Upon re-sync in unlock, a packet will be sent again due to #2.

This commit aims to fix this by ignoring empty text updates since from the end-user it unnecessarily clears the current clipboard selection and results in many "Copied to clipboard" toasts.
2024-08-12 11:06:11 +00:00
Alexander Lohnau
b1c3049fc1 Add custom JSON schema, extending KPluginMetaData and enforcing KDE-Connect specific keys 2024-08-12 11:01:22 +00:00
l10n daemon script
5a2f1903d0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-08-09 01:21:37 +00:00
ivan tkachenko
21d7b4fbdc Virtual Monitor: Replace the video-monitor icon with something that exists
There is no "video-monitor" in Breeze Icons, so it inappropriately falls
back to "video" icon which looks like a file icon rather than a device.
2024-08-05 23:07:01 +00:00
Christoph Wolk
19763dbf46 plugins/runcommand: use Kirigami.Dialog
The "Add Command" dialog in the settings for the Run Command plugin
looks rather broken at the moment, as the size is not explicitly set and
the default value ends up much smaller than the contents. It uses
QQC2.Dialog, even though the plugin makes heavy use of Kirigami. Using
Kirigami.dialog here would solve the sizing issue, and generally lead to
a more consistent interface.

This change makes the plugin use Kirigami.Dialog instead of QQC2.

BUG: 487438
2024-08-05 22:06:14 +00:00
Krut Patel
f2e506e059 mpris-remote: Support for fetching album art
Implementation of sending album art from phone to PC.

Complementary MR for the android side: https://invent.kde.org/network/kdeconnect-android/-/merge_requests/353

Fixes: https://bugs.kde.org/show_bug.cgi?id=422136
2024-07-31 16:39:28 +00:00
l10n daemon script
b4bcc7a924 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-07-30 01:23:49 +00:00
Albert Vaca Cintora
4f3a896833 Remove SSH flag to enable deprecated algorithms and keys
New OpenSSH versions don't ship them, causing an error:
 Bad key types '+ssh-dss,ssh-rsa'

We will add compatibility with newer keys on the Android side soon, as
part of this year's GSOC project.
2024-07-12 14:14:01 +00:00
l10n daemon script
7a57ad580b SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-28 01:20:00 +00:00
l10n daemon script
ee303f76b1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-18 01:20:08 +00:00
l10n daemon script
c052b49d41 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-17 01:18:25 +00:00
Albert Vaca Cintora
6ae69c89c5
Fix powershell example command 2024-06-14 14:56:46 +02:00
Ben Yip
3d7b849e90 fix: runcommand with args fails on windows 2024-06-14 15:06:15 +08:00
l10n daemon script
2df8782142 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-11 01:18:34 +00:00
l10n daemon script
065a23e386 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-10 01:17:37 +00:00
l10n daemon script
aa009cfd85 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-09 01:17:55 +00:00
l10n daemon script
d60215a7bd SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-05 01:18:01 +00:00
Albert Astals Cid
9faa049c55 Make clang-format happy 2024-06-04 19:02:58 +02:00
Albert Vaca Cintora
17c97a4768 Add a parent to KCompositeJob
So they are stopped if the device is destroyed
2024-06-04 14:15:23 +00:00
l10n daemon script
29de4a52bb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-03 01:17:38 +00:00
l10n daemon script
c9cac4160f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-02 01:17:34 +00:00