Commit Graph

15848 Commits

Author SHA1 Message Date
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
Carl Schwan
103d8b539a Redesign the Plasma Calendar applet
* Visually this removes the lines between the day delegates in the calendar
and make it use the correct highlighting component
* Use a SwipeView for switching between the month, year, and decade view
* Makes the header optional
* Improves the documentation of the MonthView

This patch is explicitely licensed under LGPL-2.0-or-later
2021-04-23 17:35:27 +00:00
Kevin Ottens
799121e70b [Wayland] Ensure pinned popup end up on the panel layer
The pinned popups need to act as a "panel extension". Easiest way to
achieve this on Wayland is to just make sure they end up on the panel
layer. This is simply done by changing the role on their corresponding
surface so that KWin treat them properly (as in like a panel but with
windows able to go under).

Neat way of doing it like this is that it will work wherever the popup
parent is coming from (a panel or the desktop).

BUG: 400317
2021-04-22 14:02:27 +02:00
Ahmad Samir
e0b7aa680c Remove one Qt 5.15 ifdef
GIT_SILENT
2021-04-17 15:47:51 +02:00
Nate Graham
4fdaec615b [ExpandableListItem] Fix determination of the number of list items
This fixes the problem of the default list item not being rendered with
bold text as intended, which was caused by checking the count property
of the wrong thing and causing a condition to always evaluate to false.
2021-04-13 21:39:12 -06:00
Carl Schwan
1fa74ab477 Fix month and year not getting updated after reseting date to today
The old code forgot to launch some signal by directly assigning todat to
the displayed date. Using the setter make sure everything is displayed
visually.
2021-04-13 18:18:12 +00:00
David Faure
252d4b91d2 GIT_SILENT increase KF_DISABLE_DEPRECATED_BEFORE_AND_AT 2021-04-11 12:09:16 +02:00
l10n daemon script
18c1940a64 GIT_SILENT Upgrade KF version to 5.82.0. 2021-04-10 11:36:29 +00:00
Nate Graham
9ce8e84f5e Fix PC3 TabButton alignment
Prior to a45bd75800, label alignment was
controlled by its Layout properties. However that commit made the label
fill width to fix elision, which means that the Layout.Alignment property
no longer has any effect anymore. Therefore, we need to use the
horizontalAlignment property to position the text within its
now-width-filling box.
2021-04-08 17:58:11 -06:00
Nate Graham
46b46c8135 Port to singleton Theme
We ported units to use the PlasmaCore.Units singleton earlier; now it's
time to do the same thing for PlasmaCore.Theme.

There are no UI changes or regressions detected.
2021-04-08 09:20:52 -06:00
Alexander Lohnau
1fd4040a33 GIT_SILENT Add auto generated files to .gitignore 2021-04-07 21:46:01 +02:00
Nate Graham
2fe8178e75 Correct API documentation for PlasmaExtras.PlaceholderMessage
It's "iconName", not "icon.name". This is a difference from the Kirigami
version for historical reasons.
2021-04-06 09:20:28 -06:00
David Edmundson
a45bd75800 Fix elide of TabButtons
Without fillWidth: true the width is unmanaged by the GridView

If the width is unmanaged it will fit the text

BUG: 434945
2021-04-05 14:34:47 +00:00
Noah Davis
239a48175e [widgets/listitem] Increase left/right margins to match top/bottom margins
4px -> 6px

Previously, they were oddly slim. Left/right margins are usually the same size as top/bottom margins or larger than top/bottom margins.
2021-04-04 21:55:43 -04:00
David Faure
82884be7a6 Fix build by reverting the level of Qt deprecation API.
I'll ensure there's a task about qmlRegisterInterface....
2021-04-04 15:49:48 +02:00
David Faure
508d371184 GIT_SILENT Upgrade Qt5 version requirement to 5.15.0. 2021-04-04 15:10:53 +02:00
l10n daemon script
93598ec180 GIT_SILENT Upgrade ECM and KF version requirements for 5.81.0 release. 2021-04-03 09:39:20 +00:00
Nicolas Fella
28811f2e7f Remove unused includes 2021-04-02 23:44:13 +02:00
Nicolas Fella
f30c84275f Deprecate AppletScript::description()
It's based on the deprecated KPluginInfo
2021-04-01 17:56:44 +00:00
Noah Davis
a9ed527663 [widgets/arrows] Fix viewBox size and naturalSize in SvgItems
The viewBox wasn't right, which made the values reported by naturalSize.width and naturalSize.height extremely small.

If you start an SVG from certain templates in Inkscape and then convert the units to px, the viewBox gets messed up. It won't look messed up in Inkscape because everything will appear scaled correctly, but it's actually roughly 26% of the size it should be. In order to fix this, you need to set the document scale to 1.0 which will cause all of the elements in the SVG to shrink to the size they really were. Then, you need to scale all the elements back up to their original sizes.
2021-03-31 19:20:42 +00:00
Nicolas Fella
aeb21cb68d Remove unused includes 2021-03-31 18:11:48 +02:00
Aleksei Nikiforov
325938ece3 Fix dead code in SvgRectsCache::loadImageFromCache
This dead code was found during investigation of KDE bug 433907.
"ok" is always "false", thus next condition is always "false"
and m_localRectCache is never filled from cache.
It looks like "ok" should be set to "true" if "key" contains a valid integer value.
2021-03-31 15:05:33 +00:00
Dan Leinir Turthra Jensen
8a35f83c4b Add a humanMoment unit to the various Units
Time in milliseconds equivalent to the theoretical human moment, which can be used
to determine whether how long to wait until the user should be informed of something,
or can be used as the limit for how long something should wait before being
automatically initiated.

Some examples:

- When the user types text in a search field, wait no longer than this duration after
  the user completes typing before starting the search
- When loading data which would commonly arrive rapidly enough to not require interaction,
  wait this long before showing a spinner

This might seem an arbitrary number, but given the psychological effect that three
seconds seems to be what humans consider a moment (and in the case of waiting for
something to happen, a moment is that time when you think "this is taking a bit long,
isn't it?"), the idea is to postpone for just before such a conceptual moment. The reason
for the two seconds, rather than three, is to function as a middle ground: Not long enough
that the user would think that something has taken too long, for also not so fast as to
happen too soon.

See also
https://www.psychologytoday.com/blog/all-about-addiction/201101/tick-tock-tick-hugs-and-life-in-3-second-intervals
(the actual paper is hidden behind an academic paywall and consequently not readily
available to us, so the source will have to be the blog entry above)

see also https://invent.kde.org/frameworks/kirigami/-/merge_requests/268
2021-03-31 14:44:50 +01:00
Marco Martin
fb16e8eb20 add PageIndicator
qml should be complete to all qqc2 components otherwise it can't be
accessible as Plasmacomponents 3 import
2021-03-31 15:26:48 +02:00
Nicolas Fella
bfa1100523 [pluginloader] Add methods to list containments using KPluginMetaData
To replace the KPluginInfo-based variants
2021-03-29 20:41:37 +02:00