Commit graph

138 commits

Author SHA1 Message Date
Nicolas Fella
d57c66872c Port to new KService::property API 2023-10-06 07:56:53 +00:00
Nate Graham
e74baf8b6f Implement Plasma 6 settings re-org
Part of https://invent.kde.org/plasma/systemsettings/-/issues/15; see
that Issue for details.
2023-10-02 15:10:05 +00:00
Alexander Lohnau
a12e0b8e7f kcms: Add explicit includes for transient KAbstractConfigModule headers
Needed after https://invent.kde.org/frameworks/kcmutils/-/merge_requests/174
2023-10-01 17:30:17 +02:00
ivan tkachenko
ed0974b8cb
kcms/screenedges: Drop unused functions 2023-09-27 16:30:05 +03:00
l10n daemon script
6a1e86961a 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"
2023-09-19 02:14:27 +00:00
Nicolas Fella
6c7ac8391a Use keyword signature for target_link_libraries call 2023-09-16 22:20:45 +02:00
Alexander Lohnau
91f027be51 Specify KPackageStructure instead of KPackageType in knsrc files
The latter is removed in KF6

CCBUG: 474026
2023-09-01 20:20:07 +00:00
Kai Uwe Broulik
23059285cf kcms/screenedges: Port to KSvg
Removes the dependency on Plasma Framework from the KCMs.

This won't use the current Plasma theme but always the default one.
However, the monitor graphic hasn't really been used anywhere else
anymore (it used to be in e.g. the wallpaper settings in Plasma 4),
so I think this is alright.
2023-08-21 14:21:00 +00:00
Ismael Asensio
9add143a40 kcms/decoration: Fix highlight when hovering the preview
The preview item implements hover event filters, which by default
are accepted and not propagated to their parent, breaking the
hightlight on hover for the GridView.

We can simply "ignore()" those events so they are propagated,
but still fully functional.

Preemptively, do the same also for mouse events, which seem to be
already propagated now, but shouldn't according to the QQuickItem
documentation.

CCBUG: 473011
2023-08-18 20:39:32 +02:00
l10n daemon script
56ff7fd240 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"
2023-08-14 02:13:18 +00:00
Kai Uwe Broulik
19b8948b51 kcms/decoration: Rename dragging property to dragActive
ListView/GridView already have a dragging property and Qt 6.6
makes it FINAL to prevent you from overriding it.
2023-08-05 10:57:20 +00:00
Kai Uwe Broulik
8d571b0d1d kcms/decoration: Connect model signals for theme property
The theme property depends on the contents of the model,
so signal a change if the model has items added/removed
or got reset.

BUG: 470778
2023-08-05 09:42:07 +00:00
l10n daemon script
239266c13e 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"
2023-07-24 09:49:25 +00:00
Alexander Lohnau
33e32f293b Remove X-KWin-Exclude-Listing metadata flag
We only have one KWin script making use of this and that one is shown
regardless. The issue with this flag is that it will hide scripts from
the user without a possibility to see them.

For effects, we have quite a few internal ones and a possibility to show
even hidden ones. But we can not reuse this logic for the scripts.

BUG: 458572
FIXED-IN: 6.0
2023-07-18 08:51:48 +00:00
Laurent Montel
b823747c3b Add explicit moc includes to sources for moc-covered headers
* speeds up incremental builds as changes to a header will not always
  need the full mocs_compilation.cpp for all the target's headers rebuild,
  while having a moc file sourced into a source file only adds minor
  extra costs, due to small own code and the used headers usually
  already covered by the source file, being for the same class/struct
* seems to not slow down clean builds, due to empty mocs_compilation.cpp
  resulting in those quickly processed, while the minor extra cost of the
  sourced moc files does not outweigh that in summary.
  Measured times actually improved by some percent points.
  (ideally CMake would just skip empty mocs_compilation.cpp & its object
  file one day)
* enables compiler to see all methods of a class in same compilation unit
  to do some sanity checks
* potentially more inlining in general, due to more in the compilation unit
* allows to keep using more forward declarations in the header, as with the
  moc code being sourced into the cpp file there definitions can be ensured
  and often are already for the needs of the normal class methods
2023-07-15 08:40:49 +00:00
ivan tkachenko
b270ff92ae
kcms/scripts: Relax Kirigami import version
Needed to make DisplayHint type available, which is registered as 2.14.

Amends 899bef4126
2023-06-27 20:24:04 +03:00
ivan tkachenko
899bef4126
kcms/scripts: Set text of Delete action correctly
Fixes missing text on the menu item in ActionToolBar's menu.
2023-06-27 18:43:29 +03:00
l10n daemon script
c817568735 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"
2023-06-24 02:48:07 +00:00
Laurent Montel
7992813abc Remove unused import module (scripted) 2023-06-20 12:33:16 +00:00
Nicolas Fella
bc62760186 kcms/decoration: Use KCMultiDialog to open decoration kcms
Now that decoration configs are separate plugins we can plug those into KCMultiDialog instead of hand-rolling it ourselves

As a nice side-effect this should allow to implement the decoration config in QML

BUG: 470902
2023-06-14 12:37:23 +00:00
Aleix Pol
fbbaab3eaf kcm/decoration: Allow specifying the kcm separately from the decoration
It makes decorations lighter as they don't need to bundle its
configuration logic.
Deprecates the kcmodule property in favour of kcmoduleName which instead
of assuming that the kcm is local to the plugin, it provides the plugin
name to find and load.
2023-06-13 12:20:21 +02:00
Ismael Asensio
c34bae007d kcms/rules: Add missing KCM namespace qualifier
There was a missing `KCM.` qualifier to `ContextHelpButton`
preventing the component to load

ammends 784f36affa

BUG: 470906
FIXED-IN: 6
2023-06-11 15:44:49 +02:00
Alexander Lohnau
d251f3011c Remove unneeded QVariantList from KCM constructor args
The args are not needed and will be removed later in KF6
2023-06-10 06:50:27 +02:00
Nate Graham
80b7ed62da kcms/scripts: fix namespacing to make it load again
BUG: 470781
2023-06-09 08:42:05 -06:00
Alexander Lohnau
784f36affa kcms: Port to kcmutils_add_qml_kcm and org.kde.config QML module
kcmutils_add_qml_kcm creates a QRC that contains the "ui" folder.
This this simplifies the installation of KCMs, because all needed files
are bundled with the plugin.
In KCMUtils this means we can get rid of KPackage.

The new org.kde.kcmutils QML module also contains the org.kde.kcm
components that were previously part of KDeclarative.

Depends on https://invent.kde.org/frameworks/kcmutils/-/merge_requests/146
2023-06-06 20:32:02 +02:00
ivan tkachenko
888b9bb5a6
kcms/effects: Add myself to copyright header
Seems fair, since I refactored those UI files recently.
2023-06-05 12:19:16 +03:00
ivan tkachenko
f183a3f467
kcms/effects: Fix license headers
Project description isn't present anymore in other files.
2023-06-05 12:19:15 +03:00
ivan tkachenko
351f16e5f7
kcms/effects: Relax minor version import restriction on Kirigami module
We still keep major version number around though, because it used to
cause issues with path resolution without it.
2023-06-05 12:17:07 +03:00
ivan tkachenko
02d4c72e95
kcms/effects: Add context to i18n string
Similar to how it's written in KWin Scripts KCM.
2023-06-05 12:15:55 +03:00
ivan tkachenko
7db140d03b
kcms/effects: Move footer actions to the page header
…to avoid the "two stacked rows of buttons" effect.

Changes "Get New" button text to avoid redundancy because title already
contains the "Desktop Effects" string in it.
2023-06-04 14:58:12 +03:00
ivan tkachenko
3194d74851
kcms/effects: Remove obsolete autoPlay property from Video component
It does not exist in Qt 6 anymore, and it's not very clear how to
replace it.
2023-06-04 14:58:12 +03:00
ivan tkachenko
4faf50d8e3
kcms/effects: Set correct width expression for ListView delegates 2023-06-04 14:58:11 +03:00
ivan tkachenko
9164784270
kcms/effects: Set explicit spacing on layouts
Default value of 5 does not align with anything in KDE HIG.

Also a little bit of extra margin around the label looks better on top
of a search field.
2023-06-04 14:58:11 +03:00
ivan tkachenko
e0a89bf97d
kcms/effects: Set header label to WordWrap instead of eliding into nowhere 2023-06-04 14:58:11 +03:00
ivan tkachenko
7dd04616ad
kcms/effects: Set some sensible default (implicit) page size
so that kcmshell does not freak out with vertically collapsed window.
2023-06-04 14:58:11 +03:00
ivan tkachenko
4d63039b2f
kcms/effects: Fix & modernize QML/JS code style
Key-value mapping is more convenient to use than iterating through array
manually, and Map type is safer to use than plain old ECMAScript Object.
2023-06-04 14:58:10 +03:00
ivan tkachenko
b91d9a96ae
kcms/effects: Use ellipses instead of triple period
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
2023-06-04 14:58:08 +03:00
ivan tkachenko
69feba45ee
kcms/rules: Port signal handlers to explicit arguments, fix QML/JS code style
Implicit injection of arguments is deprecated in Qt 6, and throws runtime warnings.
2023-06-02 19:48:15 +03:00
ivan tkachenko
a1a3b9b656
kcms/rules: Use ellipses instead of triple period
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
2023-06-02 19:46:36 +03:00
ivan tkachenko
417a7f3601 kcms/scripts: Move footer actions to the page header
…to avoid the "two stacked rows of buttons" effect.

Changes "Get New" button text to avoid redundancy because title already
contains the "Script" word in it.
2023-06-01 06:44:21 +00:00
ivan tkachenko
ae11658e0c kcms/scripts: Always set spacing property on Row & Column layouts
Default value of 5 does not visually align with anything in our HIG.
2023-06-01 06:44:21 +00:00
ivan tkachenko
bef357db5b
kcms/scripts: Replace magic number with named enum member of NewStuff events 2023-05-31 17:16:00 +03:00
ivan tkachenko
5de83e78cc
kcms/scripts: Use ellipses instead of triple period
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
2023-05-31 16:43:14 +03:00
l10n daemon script
ba157fc3a7 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"
2023-05-23 03:29:49 +00:00
l10n daemon script
02df2c54a2 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"
2023-05-14 02:42:46 +00:00
l10n daemon script
fd67dd7b89 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"
2023-05-11 02:19:09 +00:00
Ismael Asensio
9d8d7e28a1 TabBox: Allow switchers to handle the tabbox hiding
Previously, the switcher item got hidden immediately after
selecting a window, so it wasn't possible to show an exit
transition.

Emit instead an `aboutToHide` signal and let the switchers
that opt-in to handle when to hide the tabbox by just setting
its `visible` property to `false`. In the default case we handle
that signal by immediately hiding the tabbox as usual.

For symmetry, add also a new `aboutToShow` signal which
simplifies setting an enter transition.
2023-05-05 18:40:35 +02:00
l10n daemon script
6499d2bc15 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"
2023-05-05 02:37:27 +00:00
Mike Noe
38ad317f27 kcms: Port away from Kirigami.Action.iconName 2023-04-27 06:51:28 +00:00
Alexander Lohnau
3ff7a527e3 kcms: Port to org.kde.config QML module from KConfig
The implementation in KDeclarative will be removed
2023-04-21 16:30:30 +02:00