Commit graph

3426 commits

Author SHA1 Message Date
Ivailo Monev
bdccbb1709 generic: implement hybrid suspend/sleep method
marking as extension because it was not implemented before and the FDO
spec is dead (i.e. not a spec anymore), may or may not work with other
power managers implementing the interface (org.freedesktop.PowerManagement)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 02:14:44 +02:00
Ivailo Monev
c06770a96f kio: remove archive slaves leftovers
they were not using the X-KDE-LocalProtocol property either

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 11:30:38 +02:00
Ivailo Monev
1460e60247 kio: remove binary compat bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 11:29:03 +02:00
Ivailo Monev
f744763fcd kutils: update the play button from KMediaWidget::setPlay()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 07:27:07 +02:00
Ivailo Monev
a735d4ee3b kutils: remove TODO related to KMediaWidget
don't have to restore the position from KMediaWidget itself

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 07:26:42 +02:00
Ivailo Monev
22755ffef1 kutils: drop the fullscreen option of the media widget
that nasty hack was working like a charm tho. oh, well..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 07:08:27 +02:00
Ivailo Monev
8c1a5d300a kutils: invert the meaning of the KMediaWidget::setPlay() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 06:54:53 +02:00
Ivailo Monev
238f9c37bc kutils: drop the hidden controls option
it is very tricky to do it correctly, especially with KMainWindow and the
like doing their thing with menu/status bars

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 06:20:37 +02:00
Ivailo Monev
7408c3b692 kutils: de-duplicate KAbstractPlayer code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 06:03:56 +02:00
Ivailo Monev
b19a07619d kimgio: correct note in jp2 plugin
color space is exclusive value

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 02:46:42 +02:00
Ivailo Monev
12a58a3ee0 kutils: media classes debug and warning messages review
some of them were wrapped in i18n() macro with the idea to use some of them
in errorString() getter to report MPV initialization failure for example
but I do not think I will implement that (not that there is error(QString)
signal for reporting MPV failure after its initialization)

the debug messages are also quite spammy (because of time-pos property
changing constantly while playing for example), i.e. don't enable them
unless you have good reason for that because multiple media classes
instances can quickly fill your ~/.xsession-errors with lots of messages

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 02:22:04 +02:00
Ivailo Monev
7f4e028fb6 kutils: do not observe loadfile property
altought it is a command an event it send for it but the property is not
used by the media classes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 02:09:40 +02:00
Ivailo Monev
883db83628 kutils: KMediaPlayer initialization optimization
there used to be "vo" option doing the same I believe, anyway it should
speed up initializations by not checks for other contexts (it is to be
rendered into X11 window after all)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 01:15:44 +02:00
Ivailo Monev
254431d75a kutils: udate comment in KMediaWidget::_updateError()
there used to be option to disable the controls (play/pause button,
position slider, etc.)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-28 23:07:13 +02:00
Ivailo Monev
a8ec0ae048 plasma: remove binary compat bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-28 01:28:02 +02:00
Ivailo Monev
211ea52f22 kdecore: PCI IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 23:41:10 +02:00
Ivailo Monev
d598c3cccf kimgio: verify the image color space earlier in jp2 plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 18:23:35 +02:00
Ivailo Monev
a0afe27554 kimgio: do not attempt to load images in YUV, e-YCC and CMYK color space
if the decoder cannot tell (correctly) the color space then.. idk

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 18:17:19 +02:00
Ivailo Monev
ac32164782 kdeui: remove unused KFontChooser widget
unused since the raw (X11) fonts support was dropped

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 07:29:50 +02:00
Ivailo Monev
b0e419b650 kutils: set the horizontal size type of the main KMediaWidgetUI widget to expanding
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 06:13:59 +02:00
Ivailo Monev
797ecf1dfc kutils: show KMediaWidget play button text conditionally
this feature is mostly for Dolphin which fits it into a small area and
there really is not enough space for the position slider

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 05:59:37 +02:00
Ivailo Monev
e5dbeb8cb4 kutils: correct slot name in KMediaWidget constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 04:52:16 +02:00
Ivailo Monev
6e8e2238cc kdecore: add comment to KDebug() default switch case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 04:51:47 +02:00
Ivailo Monev
f80529f5cd kdecore: replace hard-codec KDebug output types with enums
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 02:44:44 +02:00
Ivailo Monev
945f411733 kparts: disconnect the slotWidgetDestroyed() slot from KParts::Part::setAutoDeleteWidget() conditionally
fixes possible crash

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 01:46:17 +02:00
Ivailo Monev
1ecd860cd3 kio: specialize only the globs matching
the soft MIME matching via KMimeType::is() is way too.. soft. it can match
application/x-dvi as plain/text (and use ps thumbnailer) which is not ideal
(should use only textthumbnail thumbnailer for plain/text and ps
thumbnailer for application/x-dvi)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 00:02:56 +02:00
Ivailo Monev
5d0377b9e6 kutils: rename the internal KMediaWidget UI class
so that the uic tool does not generate code that uses variables with
the name of the private KMediaWidget class (KMediaWidgetPrivate)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 00:45:28 +02:00
Ivailo Monev
667c23d743 kutils: delete the player before the UI from KMediaWidget destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 00:36:02 +02:00
Ivailo Monev
98f1b0b90a plasma: fix shortcuts
who tought using the same shortcut for multiple actions is going to work?
the single character shortcuts are very likely to conflict with other
shortcuts aswell

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 11:47:09 +02:00
Ivailo Monev
f9b87a7adf kio: update comment in PreviewJobPrivate::getOrCreateThumbnail()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 06:13:29 +02:00
Ivailo Monev
e3f470feab kio: typo
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 06:12:13 +02:00
Ivailo Monev
9e3f2b3eb2 kio: log PreviewJob messages to the kio (KIOJob) debug area
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 06:10:02 +02:00
Ivailo Monev
9e5c94b905 kio: check if any of the preferred services is in the list of enabled plugins
the reason for checking the preffered offers first should be obvious - it
is questionable which match should be done first. should it be the glob or
the exact match? chicken and egg thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 02:25:06 +02:00
Ivailo Monev
bc10416911 kio: try to find thumbnailer plugin via KMimeTypeTrader::query() first
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 02:13:58 +02:00
Ivailo Monev
2e6f3fba02 kio: PreviewJobPrivate::startPreview() rewrite
mostly to make the MIME types check consistent by using KMimeType::is()
for the comparison (as done by KPreviewPropsPlugin::supports() for example)
and to filter the ThumbCreator service type (to avoid invalid KMimeType
checks)

fixed KFileMetaInfo regression for plugins that use globs aswell

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 01:25:33 +02:00
Ivailo Monev
27de045733 kio: drop unused remote thumbnailers feature
none of the plugins support it and it slows down the thumbnail
preview generation (or fetching of existing thumbnail)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-25 23:25:40 +02:00
Ivailo Monev
de3384ee46 kio: format and indent previewjob source file
side note: the MIME matching code in PreviewJobPrivate::startPreview() is
spaghetti

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-25 22:41:13 +02:00
Ivailo Monev
86082941ab kded: load service modules in defined order
previously autoloaded modules would be loaded in arbitrary order regardless
of what phase they are ment for from Kded::initModules() but phase two
should be done by ksmserver

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-25 20:51:10 +02:00
Ivailo Monev
b6d30b98fb kded: update examples in HOWTO
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-25 20:10:39 +02:00
Ivailo Monev
bab2e1b6e4 kded: log the kde_running variable value
if it is false then modules that are not ment for full session are not
automatically loaded on init so it shall serve as a hint when debugging

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-25 20:01:24 +02:00
Ivailo Monev
e20d610997 kutils: load kpasswdstore module in phase 1
see the hack in kdirshare module

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-25 19:01:10 +02:00
Ivailo Monev
d37a7c4c6e kdeui: ensure the favicon has size suitable for overlay
with commit de8c7f6af1d79c6b3cd3e8b2a21a56a020163b73 (in kde-workspace) I
changed the behaviour of favicon KDED module to not down-scale the favicons
to 16x16 and that ofcourse means large favicons (e.g. 256x256, yes some
websites have favicon with such size) may be overlayed on top of 32x32 icon
which does not look OK.

with this change the icon overlay will match the visual ratio of any
other icon overlay, unfortunetly that means scaling the favicon (i.e. for
large icons such 256x256, favicon with size 16x16 may be up-scaled to 32x32
) but it will still look better than it used to

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-25 04:44:04 +02:00
Ivailo Monev
0cafb27096 kdeui: do not detach the QImage object in KStatusNotifierItemPrivate::imageToStruct()
it cannot be detached even if not copied (as done when it is not in
QImage::Format_ARGB32 format) because image is constant reference but if it
is converted it will be actually detached, also QByteArray takes ownership
of the data

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-24 20:23:56 +02:00
Ivailo Monev
aaef91f3d4 kdecore: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-24 00:10:47 +02:00
Ivailo Monev
e50350ac20 plasma: remove redundant QString construct in correctPathCase() function
path is a QString constant reference

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 22:02:32 +02:00
Ivailo Monev
050116df49 kdecore: remove the redundant Sonnet::QSpellEnchantClient::reliability() method
sonnet used to have plugins, now there is only one client and it is builtin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 03:22:22 +02:00
Ivailo Monev
01129bd9a8 kdecore: use proper type for the ignored words list
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 03:10:28 +02:00
Ivailo Monev
25380847aa kdecore: Sonnet::Loader::createSpeller() optimization
meanwhile looking for dictionary memory leaks..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 02:43:09 +02:00
Ivailo Monev
cdba3b2f2a kdecore: remove redundant breaks in Sonnet::Speller::testAttribute()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 02:35:55 +02:00
Ivailo Monev
87d9092ab3 kdecore: Sonnet::Speller::availableDictionaries() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 02:33:11 +02:00