Commit graph

4507 commits

Author SHA1 Message Date
Ivailo Monev
fa51ecdfaf kdecore: remove unused KAboutData methods and redundant constructor arguments
the homepage and the bugs email address shall always be defined in
kglobalsettings header for official Katana applications, libraries, etc.
the option to override them is still a thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 17:41:54 +03:00
Ivailo Monev
bd063c8b56 generic: remove dead and irrelevant links references
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 14:26:19 +03:00
Ivailo Monev
31553f8958 mimetypes: add KWin window rules MIME type
to be used by kwin rules KCM

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 10:28:23 +03:00
Ivailo Monev
9472a51e80 generic: version bump
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 23:13:36 +03:00
Ivailo Monev
6a07ac897c kutils: typos
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 16:17:27 +03:00
Ivailo Monev
0f0dcc7b33 kio: drop redundant and disabled by default kionetrc/.netrc support
no interface to enable it and with KPasswdStore in place it is simply
redundant (other than the auto-login macros maybe)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 15:46:45 +03:00
Ivailo Monev
2880bc1677 kio: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 15:35:05 +03:00
Ivailo Monev
b7b609278b plasma: static analyzer warning fix
because the AppletHandle pointer is connected before assigning the handle
member the AppletPrivate::handleDisappeared() slot may be called with null
null handle pointer resulting in a call of member on a null pointer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 15:15:42 +03:00
Ivailo Monev
b596272f8a kutils: static analyzer warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 14:50:34 +03:00
Ivailo Monev
be9d8967f7 kdeui: remove redundant KGlobalSettings::desktopGeometry() methods
QDesktopWidget is Xinerama aware and it can be disabled because I
implemented option for that, see the following commit in the Katie repo:
b7e4bae65f0cae7f3029b98980f638c077ecfc22

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 03:58:14 +03:00
Ivailo Monev
a2101eec56 kdeui: remove invalid KIconLoader resource directory
considered - nothing installs icons in such directory

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 03:08:36 +03:00
Ivailo Monev
5432c47994 kdecore: KMimeTypeRepository::parseMagicFile() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 02:18:59 +03:00
Ivailo Monev
b2a4509b14 kdecore: mimeDataBaseVersion() function optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 01:52:22 +03:00
Ivailo Monev
5fb7d39eb2 kdecore: disable KLOCALE_DUMP_UNTRANSLATED by default
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 23:42:52 +03:00
Ivailo Monev
4e4ab415ca kfile: keep reference to the QByteArray object in KFilePlacesItem::setBookmark()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 23:41:53 +03:00
Ivailo Monev
4472e87d19 kdecore: add compile-time definition to dump catalogs when translations is not found
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 23:41:24 +03:00
Ivailo Monev
bb0c031b69 kio: remove checks for .ui3 and .ui4 files in Messages.sh script
obsolete UI files..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 23:24:04 +03:00
Ivailo Monev
2280f55199 kio: localize the date and time obtained from kfilemetadata_exiv2 plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 21:59:25 +03:00
Ivailo Monev
5c61e288e5 kdeui: remove unused kiamgeframe source and header files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 18:32:25 +03:00
Ivailo Monev
65bedeae01 kdeui: return a single format type from KImageIO::typeForMime() and add mode argument for it
because it returns only one (definitive) format type using QStringList as
return type makes no sense, also a mode argument is very much required to
return correct result - not all image format plugins support writing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 17:57:18 +03:00
Ivailo Monev
0c2a65b0e9 kdeui: focus the first KNewPasswordDialog password widget on initialization
much like KPasswordDialog which does a lot of focus tricks depending on
its flags and which widgets are to be shown

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-08 16:11:09 +03:00
Ivailo Monev
33138d4a49 kdecore: effectively revert 6ae96c3c1d
due to Katie changes (see 7c840afcb12096778ecb1539f7baba3e02ba6f85 in the
Katie repo) reading lines is much faster

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 17:12:37 +03:00
Ivailo Monev
b591e29541 kio: create KHostInfoThread on the heap and terminate it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 11:31:55 +03:00
Ivailo Monev
4d3d7840f2 kdecore: call KLocalizedString::notifyCatalogsUpdated() only when the catalogs were actually updated
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 02:15:02 +03:00
Ivailo Monev
6d0274d417 generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 23:37:03 +03:00
Ivailo Monev
ef262ab3bd kdecore: remove unused variable in lookupPrefix() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 20:11:24 +03:00
Ivailo Monev
31cd95338f kdecore: remove redundant private KMimeTypeRepository::aliases() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 19:53:47 +03:00
Ivailo Monev
65587af47d kdecore: probe all languages from KLocale::languageCodeToName() and KLocale::countryCodeToName()
for that to work what KConfig expects (the language only) has to be first
in the list, otherwise KConfig returns entries that are actually not in the
set locale (go figure)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 18:55:59 +03:00
Ivailo Monev
c7dc966f67 kdecore: deep-copy the patterns in KMimeTypeRepository::findFromOtherPatternList()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 08:09:51 +03:00
Ivailo Monev
e7611274fb kutils: add comment for the governors mapping in governorForProfile() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 07:20:00 +03:00
Ivailo Monev
f81e123d04 Merge branch 'master' of https://scm.osdn.net/gitroot/kde/kdelibs 2023-08-06 07:11:29 +03:00
Ivailo Monev
b8b9e2c204 kutils: add assert for the poller in KIdleTimePrivate::loadSystem()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 07:10:56 +03:00
Ivailo Monev
1da5e17b82 kdeui: replace tab with spaces in KXMLGUIFactoryPrivate::saveDefaultActionProperties()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-06 06:16:53 +03:00
Ivailo Monev
2b9b3c8d54 kutils: remove redundant Q_WS_X11 definition checks
if xscreensaver or xsync extension is not found it is most likely because
X11 is not found

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 22:01:27 +03:00
Ivailo Monev
d16c67d15b kutils: log which poller is used by kidletime and warn when there is none
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 21:50:56 +03:00
Ivailo Monev
8eb0c751b8 kutils: log kidletime messages to special area
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 21:36:22 +03:00
Ivailo Monev
4a09dd4dad kutils: use separate build file for kidletime library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 21:34:06 +03:00
Ivailo Monev
9b64878a8d kutils: do not use org.freedesktop.ScreenSaver in kidletime
the current org.freedesktop.ScreenSaver implementation actually uses
kidletime internally

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 21:18:59 +03:00
Ivailo Monev
a31aa23230 kdeui: rename variable for consistency
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 13:04:48 +03:00
Ivailo Monev
fc7f5206d2 kdeui: minor KCrash documentation review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 11:54:44 +03:00
Ivailo Monev
0f7d9f8ea3 kdecore: setup KCrash to log to the system log, update its documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 11:51:35 +03:00
Ivailo Monev
6bf6169caf kdecore: return QByteArray from kBacktrace()
to avoid conversion from QString to QByteArray when possible, the trace is
handled as array of latin1-encoded strings anyway

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 08:14:53 +03:00
Ivailo Monev
970e069cd1 kimgio: implement reading of 8-bit depth BMP images for ico plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 08:13:11 +03:00
Ivailo Monev
2647be1ab2 kdeui: KCrash rewrite
a crashed program trying to restart itself is very unreliable,
especially program that uses KUniqueApplication instance. so, instead
all the information about the crash shall be written to a file on the
disk (in the temporary directory) and read by external kcrash KDED
module that will report the crash (possibily even upload the crash
details somewhere) and restart the program as necessarry.

this also opens up possibility for per-application configuration for
things such as the automatic restart feature but that shall be done by the
kcrash KDED module instead (parsing a config from a crashed program is
not a good idea)

KCrash::NoRestart will be unused but kept for future expansion

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-03 11:21:41 +03:00
Ivailo Monev
358840b6a1 kdeui: remove unused QSessionManager header inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-03 07:30:35 +03:00
Ivailo Monev
9642bc3d81 kdeui: handle zero time as special case in KTimeEdit and better min/max
the plasma frame applet for example uses zero time (QTime(0, 0, 0), not
invalid time) as a special for case for "never" (i.e. don't update) so
having this feature will make KTimeEdit even more suitable for timers (that
ofcourse has to be handled by the application or library, zero time timers
are a thing)

also min/max now allows to set lower seconds (for example) when the minute
is not zero instead of just restricting the seconds value to a hard-minumum
altough that makes me think a step feature may be needed (e.g. to now allow
intervals less than two seconds with minimum of one second)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-03 05:58:23 +03:00
Ivailo Monev
643efdc576 kdeui: remove forward-declaration of non-existing KDoubleLine class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 23:11:20 +03:00
Ivailo Monev
4de3537a82 kdeui: new KTimeEdit widget
inspired by QTimeEdit but ment for timers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 13:14:24 +03:00
Ivailo Monev
b323e4a95d kdeui: remove forward-declaration of now non-existing KCalendarWidgetPrivate class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 12:19:10 +03:00
Ivailo Monev
8bea5c9837 kdecore: set the config locale to the highest priority language from KLocale::languageCodeToName() and KLocale::countryCodeToName()
as noted in de7070d2bb having multiple
languages and matching the correct one for each use case will have to be
tuned

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 07:11:08 +03:00