Felipe Kinoshita
7f308065a7
applets/batterymonitor: make string translatable
...
This commit makes the string "No Batteries Available" translatable.
BUG: 454114
4 years ago
Alexander Lohnau
90d36545ea
Revert "[kcms/cursor] Port to required properties"
...
We can not use the required properties, because it breaks the property binding.
ec79af7396 apparently fixes that, however
it is not released as part of Qt6 or is part of the KDE patch collection.
This reverts commit f3293bc59e .
BUG: 453226
4 years ago
Fushan Wen
97a9a98ec5
wallpapers/image: Use QStringLiteral
4 years ago
Fushan Wen
f921af3e4e
wallpapers/image: Register KFileItem in registerTypes()
4 years ago
Fushan Wen
b23fa2d92d
wallpapers/image: Remove BackgroundListModel
4 years ago
Fushan Wen
451a6a0733
wallpapaers/image: Add autotests for ImageBackend
...
Use Qt Quick Test to test the backend can provide correct model images.
4 years ago
Fushan Wen
4e83485718
wallpapers/image: Adapt to model changes in ImageBackend and QML frontend
4 years ago
Fushan Wen
d63cf4a76b
wallpapers/image: Add autotests for SlideFilterModel
4 years ago
Fushan Wen
5a607c33b2
wallpapers/image: Add roleNames() in SlideFilterModel
4 years ago
Fushan Wen
cca481b79a
wallpapers/image: Add custom image provider for KPackage wallpapers
...
The url format is image://package/get?dir=<DIR>
DIR is package path.
4 years ago
Fushan Wen
3153540284
wallpapers/image: Add autotest for SlideModel
4 years ago
Fushan Wen
9fab17a67d
wallpapers/image: Rewrite SlideModel based on QConcatenateTablesProxyModel
...
SlideModel is inherited from QConcatenateTablesProxyModel, and its
source model is ImageProxyModel. Each folder will create its
corresponding ImageProxyModel.
4 years ago
Fushan Wen
b1b841a28c
wallpapers/image: Move openContainingFolder to SlideFilterModel
4 years ago
Fushan Wen
59188cf191
wallpapers/image: Add autotest for ImageProxyModel
4 years ago
Fushan Wen
f96b82b122
wallpapers/image: Add ImageProxyModel
...
A proxy model that aggregates data from ImageListModel and PackageListModel.
4 years ago
Fushan Wen
61de99dd64
wallpapers/image: Add autotest for PackageListModel
4 years ago
Fushan Wen
0d68f88850
wallpapers/image: Add PackageListModel
...
List KPackage wallpapers, usually in a folder.
4 years ago
Fushan Wen
c247589f4e
wallpapers/image: Add autotest for ImageListModel
4 years ago
Fushan Wen
d4a1c07a81
wallpapers/image: Add ImageListModel
...
List images that do not belong to any KPackages.
4 years ago
Fushan Wen
78df214f6c
wallpapers/image: Add AbstractImageListModel class
...
This serves as the base class for image list models.
4 years ago
Fushan Wen
9a473c8240
wallpapers/image: Remove testfindpreferredimage
...
It's moved to PackageFinderTest.
4 years ago
Fushan Wen
5ce62bd74c
wallpapers/image: Add autotest for PackageFinder
...
Test PackageFinder can find packages and choose a correct size.
4 years ago
Fushan Wen
523ed1e053
wallpapers/image: Add PackageFinder
...
Find KPackage wallpapers.
4 years ago
Fushan Wen
d0a580c539
wallpapers/image: Add autotest for ImageFinder
...
Test ImageFinder can find images.
4 years ago
Fushan Wen
bf006a4866
wallpapers/image: Add ImageFinder to find images
...
A runnable that finds all available images in the specified paths.
4 years ago
Fushan Wen
a1b63b685f
wallpapers/image: Add findSymlinkTarget()
...
This helps find the real file path.
4 years ago
Fushan Wen
ce6dbf90b9
wallpapers/image: Move distance and resSize to distance.cpp
4 years ago
Fushan Wen
8324f1188b
wallpapers/image: Move suffix check to suffixcheck.cpp
...
Will be used in finders.
4 years ago
Fushan Wen
ad0578e71e
wallpapers/image: Add autotest for ImageSizeFinder
...
Test the finder can return a correct image dimension.
4 years ago
Fushan Wen
5ac9042989
wallpapers/image: Move ImageSizeFinder to finder/imagesizefinder.cpp
...
Don't crowd the code in backgroundlistmodel.cpp
4 years ago
Fushan Wen
41697f9a1c
wallpapers/image: Add static library for autotests
4 years ago
Fushan Wen
13a6e77276
calendar: move translation domain from libplasma5 to plasmashellprivateplugin
...
The calendar component is in plasmashellprivateplugin now.
4 years ago
Fushan Wen
125c0ae189
GIT_SILENT libicu: move find_package to root CMakeLists.txt
4 years ago
Ismael Asensio
dca34e5286
kcms/colors: Small code Cosmetic changes
...
- Apply clang-format
- Rename property to not look like a verb
- Use new connection syntax
4 years ago
Ismael Asensio
6e7a147e3e
kcms/colors: Simplify bindings and interaction
...
To set the wallpaper accent color, use the property setter instead
of an invokable, so we reduce one codepath and it's easier to keep
the state in sync between UI and backend.
Also reduce unnecesary explicit bindings on the QML side
4 years ago
Ismael Asensio
2b55732fb7
kcms/colors: Fix reset from selected "color from wallpaper"
...
On the `load()` method emit the signals to notify that the properties
regarding accent colors have changed, so the UI gets updated accordingly.
They're emitted unconditionally since the minimal performance improvement
wouldn't compense the extra code complexity to check for changes here.
4 years ago
Fushan Wen
1e498d0744
calendar: Show alternate date under the current date
4 years ago
Fushan Wen
e421073f5e
calendar: Add support for sublabel in DayDelegate
...
The sublabel will be displayed under the day number.
CCBUG: 429892
4 years ago
Fushan Wen
54728d548b
daysmodel: Add alternate date and sub-label properties
...
The calendar applet will need those properties to show alternate
calendar date.
CCBUG: 429892
4 years ago
Fushan Wen
7d68b36bef
eventpluginsmanager: relay `alternateDateReady` and `subLabelReady`
...
Two new signals are added in CalendarEventsPlugin, so we need to relay
them to make DaysModel receive them.
CCBUG: 429892
4 years ago
Fushan Wen
31a6d1c61f
applets/digital-clock: Port to `org.kde.plasma.workspace.calendar`
4 years ago
Fushan Wen
16047812a0
applets/calendar: Port to `org.kde.plasma.workspace.calendar`
4 years ago
Fushan Wen
1906bb0934
applets/analog-clock: Port to `org.kde.plasma.workspace.calendar`
4 years ago
Fushan Wen
862be9cc7b
calendar: remove unused `CalendarData`
4 years ago
Fushan Wen
0159a28be6
calendar: port to d-pointer in Calendar
4 years ago
Fushan Wen
25e87fe46b
calendar: move m_roles to initializer list
4 years ago
Fushan Wen
6c754e7ab0
calendar: port to d-pointer in EventPluginsManager
4 years ago
Fushan Wen
229ce95212
calendar: port to d-pointer in DaysModel
4 years ago
Fushan Wen
35b44bc015
calendar: fix a build error in string concatenation
4 years ago
Fushan Wen
601503eeed
calendar: remove plugins.qmltypes
...
It will be automatically generated during installation.
4 years ago