Commit Graph

15891 Commits

Author SHA1 Message Date
David Redondo
52b95888d5 Add function to hide tooltip immediately
The built in delay causes trouble on wayland where it can cause
closing of other popups.
2021-06-28 09:54:53 +00:00
l10n daemon script
ce39def7d1 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"
2021-06-28 01:23:35 +00:00
Aleix Pol
27cc45c8be Remove unused local variable 2021-06-28 01:52:02 +02:00
Andreas Cord-Landwehr
8953e77ec2 Add compatibility code when GLVND is not available
CMake's FindOpenGL internally handles EGL only correctly when GLVND is
available. This might not the case on embedded systems and actually it
is not necessary when EGL::EGL is found.

BUG: 438444
2021-06-24 20:11:44 +00:00
Alexander Lohnau
784f530af5 KF5PlasmaMacros: Only include ECM manually if config vars are missing 2021-06-22 13:11:13 +00:00
David Edmundson
b2f821ad21 [Calendar] Store plugin manager as QPointer
EventPluginsManager is created externally and managed by QML. We cannot
assume the lifespan outlives our Calendar class.

BUG: 385011
2021-06-22 03:27:11 +00:00
David Redondo
3e006a0c42 Connect to global shortcut changes
The intent behind this code seemingly was that KGlobalAccel would
update the shortcut of the QAction but that is not the case. This
leads to our config going out of sync when global shortcuts are
changed from the oustide (the kcm) and resetting on next start
since we set shortcuts with NoAutoLoading.
BUG:438662
FIXED-IN:5.84
2021-06-20 08:01:53 +00:00
l10n daemon script
03c3df109a 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"
2021-06-20 01:17:58 +00:00
Alexander Lohnau
8df168592b package structures: Use K_PLUGIN_CLASS_WITH_JSON directly
Task: https://phabricator.kde.org/T14542
2021-06-19 16:53:14 +00:00
Alexander Lohnau
3063e43abd dataengine examples: Use K_PLUGIN_CLASS_WITH_JSON directly
Task: https://phabricator.kde.org/T14542
2021-06-19 16:53:14 +00:00
Alexander Lohnau
094f82f9b4 templates: Use K_PLUGIN_CLASS_WITH_JSON directly
Task: https://phabricator.kde.org/T14542
2021-06-19 16:53:14 +00:00
l10n daemon script
3c84e6ae81 GIT_SILENT Upgrade ECM and KF version requirements for 5.84.0 release. 2021-06-19 16:04:14 +00:00
Aleix Pol
b0f8bff4ca SvgRectsCache: do not query elements twice
I was looking into why there is so much time spent here for the logout
greeter that only has buttons. It seems like we were querying the cache
file every time even though we already have separate code that checks
whether our information is valid.

As I started looking into it, ::loadImageFromCache was %25 of the CPU
time. After this patch it's short of 1%.
2021-06-19 02:57:52 +02:00
Alexander Lohnau
44a8e6c1ee Remove unneeded K_EXPORT_PLUGIN_VERSION macro usage 2021-06-14 19:54:40 +00:00
Alexander Lohnau
b63335d10a pluginloader: Remove deprecated version checks
Task: https://phabricator.kde.org/T14302

The explicit version checks are not needed anymore, the plugins are
installed into a specific namespace for each major version. Also the
plasma-frameworks API is stable during the lifetime of a major version.
2021-06-14 19:54:40 +00:00
Adriaan de Groot
a81a78becd CMake: do not expand variables beforehand
In **general**, variables in `if()` commands should not be expanded
"by hand" before use, because substitution occurs before the `if()`
command is parsed: in practice that means that a command like

	if(${A} STREQUAL "A")

can expand to (depending on the value of A being empty, "B" or "A")

	if( STREQUAL "A")
	if(B STREQUAL "A")
	if(A STREQUAL "A")

Then the `if()` command is processed, leading to:

 - a syntax error
 - comparing the value of variable B against string "A"
 - comparing the value of variable A (it's "A" because that
   is what `${A}` expanded to) against string "A"

This is explained in section *Variable Expansion* of the documentation
of the `if()` command, but keeps tripping people up.
2021-06-14 14:47:53 +00:00
Nate Graham
06747e5924 Add KF6 TODO to investigate setting focusPolicy: Qt.TabFocus by default
GIT_SILENT
2021-06-14 08:04:23 -06:00
Marco Martin
19c8c7dc2e fix graphics of tooltips
* proper margins for shadows
* use solid instead of opaque, which is pixelated

BUG:438121
2021-06-14 08:58:40 +00:00
Ismael Asensio
7b726cffb4 [DaysCalendar] Port to new Connections syntax 2021-06-13 00:26:06 +02:00
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