Commit graph

20 commits

Author SHA1 Message Date
ivan tkachenko
90946829bf
plasmoid: Basic code cleanup 2024-07-12 11:44:13 +03:00
Prajna Sariputra
4caf77445f Remove KF5 plasmoid
Now that KDE Connect has moved to Qt6 only since https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/621 we can remove the old KF5 plasmoid.
2023-12-23 16:34:33 +00:00
Prajna Sariputra
44301dd51f plasmoid: Add port to KF6/Plasma 6 alongside the current KF5/Plasma 5 version
Currently the plasmoid is still written for KF5/Plasma 5, and in addition
it also still uses PlasmaComponents2 stuff, which has been removed in
KF6/Plasma 6. So, this is an attempt to port the plasmoid so that it works
in Plasma 6.

BUG: 476389
2023-11-30 23:41:36 +00:00
Simon Redman
cec5d8086a [Plasmoid] Use icon for battery and connectivity status
## Summary

Use a pretty, granular icon for battery and connectivity status instead of whacking it into the device name.

## Test Plan

It looks so nice!

![image](/uploads/7e64d1339507e1dae90ee70c02327aa6/image.png)

Tested all provided icon states by hacking Battery.qml and Connectivity.qml to provide different values.
2021-07-14 03:30:25 +00:00
Nicolas Fella
f90d6a019f Rework the battery plugin
Instead of having the DBus stuff in a separate class expose the plugin class itself like we do for the other plugins.

Replace the method-based API with properties.

Change the path to <device>/battery for consistency with other plugins
2020-08-27 15:04:40 +00:00
Nicolas Fella
87db95b22f Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
Nicolas Fella
3b8fedea1a Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
Nicolas Fella
66e5eefe20 Gave plasmoid some love
Summary:
Make the plasmoid content transparent
Include battery info in header
Only show remotekeyboard input if available
Make header always centered

before:
{F3820966}

after:
{F3820965}

Reviewers: #kde_connect, apol

Reviewed By: #kde_connect, apol

Subscribers: jeanv, albertvaka, apol, #kde_connect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D6943
2017-07-27 17:15:07 +02:00
Aleix Pol
b69247b4e5 Don't force the creation of a DeviceInterface for every pluginchecker
Create one per device and share it
2016-08-21 18:57:27 +02:00
David Kahles
8d7dad3604 Introduce QML component to check for plugin availability
Remove those checks from three different places and put them into a reusable
component, which can be used for different plugins.

REVIEW: 127583
2016-04-07 16:39:26 +02:00
Albert Vaca
a303b73238 Merge branch 'master' into frameworks
Conflicts:
	cli/kdeconnect-cli.cpp
	core/CMakeLists.txt
	plasmoid/package/contents/ui/FullRepresentation.qml
	plugins/ping/pingplugin.cpp
2014-07-01 23:59:38 +02:00
Albert Vaca
cd8864fd92 Trying to fix a warning in the plasmoid: "root not defined" 2014-07-01 01:26:08 +02:00
Aleix Pol
3e74a97304 Port plasmoid to Plasma Next 2014-06-18 02:35:48 +02:00
Albert Vaca
e9a9d742d6 Fixed sftp plugin crashing when mounting
Removed sftp notificatons and some configuration options
Homogenized coding style
2014-06-07 18:34:48 +02:00
Àlex Fiestas
34bee764e8 Use i18n properly using arguments rather than replaces
i18n accepts extra arguments to properly perform the
replacements of %1 by the proper value, we have to use that
instead of calling .arg in the resulting QString so i18n can
do some magic for us.
2014-02-28 17:36:03 +01:00
Albert Vaca
182da7bfc5 Browse button on plasmoid only visible if sftp plugin enabled 2014-02-19 16:28:17 +01:00
Samoilenko Yuri
35f3f68037 unmount state removed from palsmoid 2014-02-16 10:55:15 +04:00
Albert Vaca
372ea8839b Added missing i18n() calls to plasmoid 2014-02-14 17:11:41 +01:00
Samoilenko Yuri
1ce8750093 simple bugfixes 2014-02-06 19:25:47 +04:00
Samoilenko Yuri
22718a0bd9 DeclarativePlugin::BatteryInterface removed
Due to bug occured in QML property access(when object derived from QDBusAbstract interface) C++
part of BatteryPlugin in plasmoid rewritten in pure QML.
BatteryPluginDBusInterface fixed to avoid this bug.

Bug occuring when QML try to access any property of any object derived from
QDBusAvstractInterface - QML engine crashes.
2014-02-06 00:37:55 +04:00