Commit graph

142 commits

Author SHA1 Message Date
Aleix Pol
79246f2b1a app: Put the Placeholder inside the view
If there's more than one main item in the ScrollablePage, QtQuick gets
confused and the placeholder does not get displayed.

(cherry picked from commit e0a64f4a30)
2024-03-07 19:51:43 +01:00
Nicolas Fella
3f97274b4a Fix loading settings 2024-01-10 23:21:31 +01:00
Nicolas Fella
42ce4764d2 [app] Fix plugin list
Filter out not loaded plugins

Fix loading the plugin components
2024-01-09 23:14:26 +01:00
Jonah Brüchert
aa09d338ee Improve display of devices in the drawer
BUG: 474453
2024-01-09 21:38:35 +00:00
Nicolas Fella
e6383a47ca Fix start dir for file dialog 2023-12-25 15:56:13 +00:00
Nicolas Fella
69a1d5ec6b Port to ecm_add_qml_module 2023-12-25 15:56:13 +00:00
Nicolas Fella
27afd0eb9a [app] Undo Qt5 compatibility hacks and fix QML code 2023-12-25 15:56:13 +00:00
Nicolas Fella
37ff0b5318 [app] Remove QML import versions
Those are not needed in Qt6 and only get in the way
2023-12-25 15:56:13 +00:00
Nicolas Fella
dd88056693 [app] Fix ListSectionHeader width 2023-12-25 15:56:03 +00:00
Nicolas Fella
7fcafdf12e Port away from Kirigami BasicListItem
It doesn't exist any more in KF6
2023-12-23 16:34:47 +00:00
ivan tkachenko
5db4263af6
Port implicit default content items to use contentItem: property
See also
https://invent.kde.org/frameworks/kirigami/-/merge_requests/1338
and
https://invent.kde.org/frameworks/kirigami/-/merge_requests/1340
2023-11-09 00:06:14 +03:00
Carl Schwan
85897fcdc3 Port to FormCard
This is the successor for MobileForm
2023-09-15 16:10:47 +00:00
Karthik Nishanth
9e53696e35 Close the overlay drawer when window width is reduced
Previously when the window width was reduced, the overlay drawer
was still visible except it was hidden behind the main view.

Taking inspiration from the binding in OverlayDrawer.qml source,
I set up a callback to match it closely. Now, it closes the
drawer when the window is resized.

Note: Both before and after this commit, there is a warning when
one collapses the window width.

> QQuickItem::stackBefore: Cannot stack
> QQuickRectangle(0x55b4746513d0, parent=0x55b4744a4750,
> geometry=0,0 0x0) before QQuickPopupItem(0x55b4747871c0),
> which must be a sibling
2023-09-11 13:11:03 +00:00
Karthik Nishanth
f42bb35346 Fix undefined property accesses
Adds a check for root.currentDevice before accessing its properties
2023-09-11 13:11:03 +00:00
Alexander Lohnau
eabb280d9c Fix runcommand page not being able to be displayed in Qt6 2023-07-25 18:29:38 +02:00
Alexander Lohnau
6d1a7c613b Fix PluginInfoPage not being able to be displayed in Qt6 2023-07-25 18:29:38 +02:00
Albert Astals Cid
4fa2e93246 Improve/change "Pair" i18n messages 2023-07-22 18:05:25 +00:00
Alexander Lohnau
f57d59e605 Fix runtime issues with Qt6
To have the code bits reusable, they are defined as cmake variables.
In order to make the relative paths work and avoid touching every line
from the QRC, the resulting file is put into the source dir.
2023-07-20 13:32:07 +03:00
Albert Vaca Cintora
0c1e0df5ae Do not use toLocaleTimeString to convert ms to hh:mm:ss format
The current code didn't seem to work on all locales
2023-06-29 08:28:25 +00:00
Albert Vaca Cintora
2e0550651e Remove mpris "nowPlaying" field
We've had separate title & artist for a while, and all clients should be
using those by now.

Also fixes the position change not being emitted when the song changes,
and fixes the values being written after emitting that they changed.
2023-06-08 21:58:58 +00:00
Albert Vaca Cintora
144a60b58a Allow disabling clipboard auto-share and add option to share manually
Continues the work started in !396 by rebasing it onto latest master and
making the "send clipboard" button from the plasmoid invisible when
automatic syncing is enabled.
    
I didn't find a way to do the same in kdeconnect-indicator and
kdeconnect-app (why do we have 3 UIs???), so in those we always show the
option for now.
2023-06-07 19:48:25 +00:00
Albert Vaca Cintora
f138a0f07a Add a spinner to the app when pairing is requested 2023-06-02 16:38:52 +00:00
Albert Vaca Cintora
064ddfa3fe Refactor PairingHandler
We now have a single PairingHandler for all types of links.

The implementation now is more aligned with the one for Android.
2023-06-02 16:38:52 +00:00
Aleix Pol
6bd8bebad9 mousepad: Provide an out for touchpad users
At least my touchpad cannot have left and right buttons at the same time.
This makes it possible to exit at least using the keyboard.
2023-05-12 15:48:25 +02:00
Aleix Pol
9266556510 mousepad: Implement relative mouse movements
Somehow it wasn't done.
2023-05-12 15:48:25 +02:00
Carl Schwan
e682304747 Add title and icon to setting
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
f12aa5d88f Fix qml warning
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
b55013f57a Improve coding style
- Use latest QQC2 import
- Remove curvy brance from single statement block

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
cd0db29609 Use custom sidebar implementation
It has nicer default width

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
d74737a1e4 Fix setting page sometimes not visible when clicking on it
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
Carl Schwan
b930114eb0 Add setting page and expose about data info
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-12-14 16:46:57 +00:00
ivan tkachenko
4b6caf9af4
Port away from deprecated QML features 2022-09-21 01:14:37 +03:00
Nicolas Fella
bb5ab942b7 [app] Fix reading device name 2022-06-23 11:49:22 +02:00
Piyush Aggarwal
3e1e9f4410 improve mouse lock behaviour and info label text 2021-08-09 03:00:40 +05:30
Aleix Pol
cf8ada2b5d app: make it possible to lock the mouse when using the remote input
It makes it possible to use normal touchpads and mice
2021-07-30 23:25:30 +00:00
Piyush Aggarwal
91c05d0f17 mousepad: add drag support and better click registration 2021-07-16 01:49:49 +05:30
Piyush Aggarwal
85aee29545 app->mousepad.qml: add support for remote click, wheel scroll 2021-07-15 08:18:11 +05:30
Piyush Aggarwal
6c4ba39653 remotecontrolplugin: change sendCommand function params to allow support for scroll 2021-07-15 08:18:07 +05:30
Bharadwaj Raju
036704e161 Fix text color in Plugin Settings
Remove references to nonexistent "listItem" for getting color
2021-05-11 09:53:43 +05:30
Nicolas Fella
645bf381c4 Add missing license headers
I'm the sole author of these files
2021-02-27 20:04:47 +01:00
Nicolas Fella
40c155f990 [app/mpris] Fix displaying times > 2h
We need to apply the correction for all hours >= 1, not just 1
2021-02-07 15:39:03 +00:00
Nicolas Fella
473b1f07c3 [app] Improve plugin config delegates
Add description and make them more consistent with other list items in
KDE.
2020-11-16 12:21:47 +00:00
Nicolas Fella
753b1a2b0c Constify variable 2020-11-16 12:21:47 +00:00
Bharadwaj Raju
cb51cb4adf Fix bug with use of drawer hiding when not wideScreen
Make drawer reappear when resized from narrow to wide screen if drawer
was closed in narrow mode.
2020-09-25 17:42:22 +05:30
Carl Schwan
5d9dad3d7e Remove hack introduced by previous commit
Instead of hardcoding font size, use default font size, this makes the
height of the Heading normal and don't overflow.
2020-09-19 14:59:35 +02:00
Carl Schwan
21f0227e06 Use Kirigami header in sidebar 2020-09-19 12:51:11 +00:00
Nicolas Fella
400c800deb [app] Add plugin settings page
Include a page that allows (de)selecting and configuring plugins

This is one of the last missing pieces for feature parity with the KCM.
2020-09-08 20:33:20 +02:00
Nicolas Fella
87db95b22f Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
Nicolas Fella
05a1978331 [app] Allow refreshing the device list
The Android app and the KCM allow forcing a refresh, which is useful sometimes. kdeconnect-app should have that too given we want to replace the KCM.
2020-08-07 12:56:47 +02:00
Nicolas Fella
5657547179 [app/volume] Use property setter 2020-08-07 00:08:31 +02:00