Commit Graph

15922 Commits

Author SHA1 Message Date
l10n daemon script
2c6c29064d GIT_SILENT Upgrade KF version to 5.84.0. 2021-06-12 19:37:49 +00:00
Aleix Pol
b93b75d79b theme -> PlasmaCore.Theme 2021-06-11 17:26:14 +02:00
Alexander Lohnau
e54f5b793e Remove defunct test dataengine
The K_EXPORT_PLASMA_DATAENGINE_WITH_JSON expects a JSON file. But
considering that nobody complained about this and it has been broken for
years we can get rid of it.
2021-06-11 09:39:23 +00:00
Alexander Lohnau
6e53dcc2d2
KF5PlasmaMacros: Only try to install desktop files if they exist
The mechanism was used to make those files accessible to
KServiceTypeTrader, but that is not used anymore by KPackage.

KPackage can already handle JSON files for all its functionality,
consequently there is no reason to enforce having desktop files.
2021-06-08 21:46:43 +02:00
Kai Uwe Broulik
6b932130a2 Revert "Fix Label having non-integer sizes"
It messes with QtQuick Layouts in various ways and experience from
PlasmaComponents 2 has shown that giving `Label` any kind of explicit
size is just asking for trouble.

This reverts commit a4e4156a47.
2021-06-05 21:15:16 +00:00
l10n daemon script
33eb00127a GIT_SILENT Upgrade ECM and KF version requirements for 5.83.0 release. 2021-06-05 09:01:25 +00:00
Carl Schwan
c1517f728e Fix crash when there is already exactly 5 events displayed
And simplify code:
* Add constant for the max number of events that can be displayed at the
same time
* Use std::min to simplify a bit the code
* Rename nextIndex to addedEventCount
2021-06-03 15:32:20 +02:00
Ahmad Samir
6ca69fb7ca Clean up some cmake code
GIT_SILENT
2021-06-01 23:20:03 +02:00
Nicolas Fella
0889def484 Remove call to setClearBeforeRendering
It's on by default and the method is gone in Qt6
2021-06-01 09:29:29 +00:00
Ömer Fadıl Usta
acdb1eef51 Fix missing definition of HAVE_X11 2021-06-01 00:38:49 +00:00
Ahmad Samir
661c652e65 Fix FreeBSD build on the CI
GIT_SILENT
2021-06-01 00:19:51 +02:00
Ahmad Samir
a70957d96c Fix build with CMake 3.16
Use FindOpenGL from CMake upstream which finds both OpenGL and EGL.

Fix linking by using OpenGL::GLX (instead of ${OPENGL_gl_LIBRARY} which is
set to an empty string when GLVND is used). Thanks to Ömer Fadıl Usta for
mentioning that in https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/264

NO_CHANGELOG
2021-05-31 22:21:11 +02:00
Ahmad Samir
606144182c Remove CMAKE_AUTOMOC_RELAXED_MODE, deprecated since CMake 3.15
NO_CHANGELOG
2021-05-31 17:28:38 +02:00
Ahmad Samir
38d24bfac0 Bump required CMake version to 3.16
KF6 task: https://phabricator.kde.org/T14467

Bump cmake_minimum_required to 3.16 in templates too.
2021-05-31 17:28:31 +02:00
Noah Davis
ba1bf63e01 Change qqc2-desktop-style Units.fontMetrics property to a FontMetrics
This matches most other Kirigami.Units.fontMetrics properties
2021-05-26 17:36:56 -04:00
Ahmad Samir
29e06a6294 Remove compiler flags already defined in extra-cmake-modules
-DQT_NO_FOREACH

GIT_SILENT
2021-05-23 17:20:09 +02:00
Marco Martin
532817c004 Support for blur behind plasmoids
add a translucent version of the standard widget background, which
provides an opacity mask. the applet container in the desktop
will put a blurred wallpaper behind the widget background in this case.
being in translucent/ this blurred background will be enabled only when also the blurbehind kwin effect is enabled, so on low spec hardware this will be disabled as well
2021-05-20 15:40:05 +00:00
Nate Graham
8c443f504f Filter configure action out of overflow menu correctly
This code was trying to filter out the configure action but failing
because it was comparing a QMenuItem to a QAction. We need to compare
the QMenuItem's internal QAction in order for the configure action to
ever match.

Companion to 827afc3fc276d0d73b4e4d2f08e26c24a3e6ea71 in
plasma-workspace.
2021-05-18 07:52:21 -06:00
Alexander Lohnau
5dfa851f7b
Allow building the project without deprecations 2021-05-18 06:20:10 +02:00
Noah Davis
23105b27bc PC3 TabButton: Center align text without icon, use icon property 2021-05-17 16:34:37 -04:00
Laurent Montel
1eb845767d GIT_SILENT: use qt_ macro 2021-05-16 11:47:37 +02:00
Noah Davis
cc59bb5992 PC3 TabButton: Fix horizontal content alignment with max text width
bug was caused by commit a45bd75800
2021-05-14 11:53:25 -04:00
Carl Schwan
9a8613612f Fix events appearing in year or decade view
Bug is probably caused by using a DelegateModel on a simple ListModel.
Make sure we don't even try to load the event delegate when there is no
events or it's not a DayModel

BUG: 436999
2021-05-13 00:30:26 +02:00
David Faure
a9372fb6ac Call ki18n_install() unconditionally, see kcontacts!9 2021-05-08 17:26:12 +02:00
l10n daemon script
af206daa17 GIT_SILENT Upgrade KF version to 5.83.0. 2021-05-08 12:44:07 +00:00
David Edmundson
2ce8590eae Check QAction enablement before triggering
QAction::trigger does not check enablement. File manager's undo action
gets enabled/disabled depending on whether we have anything to undo.

If we unconditionally invoke the method we can crash.

As an aside, the comment about QQuickItem and shortcut looks very
outdated.
2021-05-07 11:23:47 +01:00
Carson Black
3f218664a5 Introduce new SVG element: menubaritem
`menubaritem` is used to render the background of menu bar items
in applets such as the global menu applet.
2021-05-06 20:10:46 +00:00
Noah Davis
1b67e0045e Add sizeForLabels icon size to Units 2021-05-06 15:49:15 +00:00
Antonio Larrosa Jimenez
a4e4156a47 Fix Label having non-integer sizes
When using a non-integer baseLine, the height can be non-integer, resulting
in non-exact pixel alignments which generate artifacts on the screen.

This happened in Kickoff's LeaveView in Plasma 5.18 (currently used in
openSUSE Leap 15.3) where the focus outline was painted with a different
width in the top and bottom borders due to this pixel misalignment.
2021-05-06 15:30:39 +00:00
Nicolas Fella
e9ef688387 [pluginloader] Deprecate listContainments and listContainmentsOfType
They are based on the deprecated KPluginInfo and unused.
2021-05-06 13:38:39 +02:00
Nicolas Fella
43e4a16152 Add 5.83 to deprecation versions 2021-05-06 13:36:15 +02:00
Nicolas Fella
56e7c54da2 Deprecate PluginLoader::listContainmentsForMimeType
It's unused and problematic since it uses KPluginInfo
2021-05-06 13:27:44 +02:00
Michail Vourlakos
047023d809 add missing signal is setConstraintHints
--when an applet is updating its constraintHints
a signal must be triggered in order for everyone
to be informed. This way applets we can support
applets that update their constraintHints dynamically or
based on user demand.
2021-05-05 20:34:11 +00:00
Nate Graham
cfc473a8f5 Allow ExpandableListItem to not be expandable when it has no valid actions
Typically ExpandableListItem expands when you click on it or its
expander arrow, and shows a list of contextual actions. However there
may occasionally arise cirsumstances under which an item has no actions.
An example would be in the Disks & Devices applet when a device doesn't
match any of the Solid predicates and therefore gets no contextual
actions. In this case, we should hide the expander arrow and now let the
user try to expand it, because there would just be a little empty list
stub.
2021-05-05 20:31:41 +00:00
Konrad Materka
5984d4960f [dataengine] Emit sourceRemoved earlier
Emit `sourceRemoved` before source is actually removed, so that
visualization has a chance to disconnect itself.

BUG: 436350
BUG: 436180
CCBUG: 435991
2021-05-04 07:14:57 +00:00
Nate Graham
950a78f225 Revert "Revert 4d4db0b199780d8e3a94594fb72739565cd3919d's theme changes"
This reverts commit 3701b184d8 and allows
the new higher Plasma transparancy to be shipped with Frameworks 5.83,
right around the same time when Plasma 5.22 will be released.
2021-05-03 15:07:44 -06:00
Friedrich W. H. Kossebau
fb9f3703a7 Port away from ECMSetupVersion's deprecated *_VERSION_STRING CMake variable
NO_CHANGELOG
2021-05-02 20:32:27 +02:00
Alexander Lohnau
052df913e4
GIT_SILENT Add auto generated files to .gitignore 2021-05-02 13:13:20 +02:00
l10n daemon script
1882e9a7bd GIT_SILENT Upgrade ECM and KF version requirements for 5.82.0 release. 2021-05-01 09:47:44 +00:00
Carl Schwan
b3f8e96517 Add up to 5 event indicators to the DayDelegate
This commit replaces the existing triangular event indicator on calendar
days with colored dots; one per event, up to five events per day. The dots
will use the color of the event, if it has one.
2021-04-29 21:38:46 +00:00
Vlad Zahorodnii
629f4421a7 Port Plasma::Dialog to QWindow-based effects API
The WId-based KWindowEffects API is deprecated.
2021-04-28 06:08:19 +00:00
Nicolas Fella
6215355f28 Remove unneeded KIO linkage 2021-04-27 22:07:15 +02:00
Zren (Chris Holland)
d9e6f7a825 Apply 2 suggestion(s) to 1 file(s) 2021-04-27 16:18:24 +00:00
Chris Holland
ba6414959d Fix PC3.GroupBox.color
SystemPaletteSingleton was a QQC1.Private import. Not sure why it's in
a QQC2 theme. Nothing in Plasma uses this GroupBox so it makes sense
why it wasn't noticed before.
2021-04-27 16:18:24 +00:00
David Redondo
d59fe4e07a Fix i18n call
GIT_SILENT
2021-04-27 08:58:35 +02:00
David Redondo
27299d1405 ContainmentInterface: Set transient parent of submenues
The actions added by plugins or applets can contain actions that are
menues. This causes a problem for the panel because it doesn't take
focus when right clicked. Since the menues had no transientParent, they
were created as new toplevels.
BUG:417378
2021-04-27 06:44:36 +00:00
Aleix Pol
2d5a492df6 Remove unused import from test 2021-04-26 17:00:48 +02:00
Laurent Montel
5bc66ef272 Fix mem leak found by asan 2021-04-25 18:49:22 +00:00
Alexander Lohnau
dea5b8fe4e
GIT_SILENT Remove unused KPluginTrader import 2021-04-24 18:20:04 +02:00
Niccolò Venerandi
b4e4d21219 Make the size of the task manager margins as big as the panel ones
BUG: 434324
FIXED-IN: 5.22
2021-04-23 21:19:23 +00:00