Commit graph

4448 commits

Author SHA1 Message Date
Ivailo Monev
91120db60d kdewidgets: update README
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 21:25:18 +00:00
Ivailo Monev
12df438f1a kdewidgets: remove unused kcmodule picture
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 21:20:04 +00:00
Ivailo Monev
f08d66b809 knotify: rmeove useless PORTING.html file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 21:17:59 +00:00
Ivailo Monev
5545cb7e2f kio: remove unused KProtocolManager::supportsOpening() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 20:35:46 +00:00
Ivailo Monev
7d088288c2 kdeui: remove redundant X11 atoms creation from KApplicationPrivate::init()
XdndDrop is already created by QApplication for internal purposes,
KDE_DESKTOP_WINDOW is a bogus one

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 08:32:37 +00:00
Ivailo Monev
899f789b07 kdecore: move KToolInvocation to kdeui
to get rid of the KApplication signal which is a hack really

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 08:09:02 +00:00
Ivailo Monev
32a3def809 plasma: replace QVarLengthArray<T> with std::vector<T>
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 18:29:19 +00:00
Ivailo Monev
938ac263ab kioslave: remove unused QVarLengthArray header inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 18:20:53 +00:00
Ivailo Monev
1e4db516f3 plasma: correctLastComponentCase() function optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 11:33:20 +03:00
Ivailo Monev
73e5c1ad96 kdecore: compiler warnings fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 11:31:25 +03:00
Ivailo Monev
48e591141b kutils: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 10:21:57 +03:00
Ivailo Monev
833951fbc3 kutils: remove unused KPluginSelector methods
no application installs kpart plugins either

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 09:31:17 +03:00
Ivailo Monev
1dc39b0b86 solid: remove useless README file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 08:59:27 +03:00
Ivailo Monev
925c7571ce kdeui: remove duplicate qevent header inclusion in khistorycombobox source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 06:52:52 +03:00
Ivailo Monev
601193748c kdeui: show only a label from KSwitchLanguageDialog when translations are not installed
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 06:47:58 +03:00
Ivailo Monev
00b7fdfe54 kdeui: remove unused INCLUDE_MENUITEM_DEF definition
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 06:28:52 +03:00
Ivailo Monev
acd77cb495 kdecore: replace authors of KLocale
rewritten and improved!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 06:14:31 +03:00
Ivailo Monev
14636d48cd mimetypes: translate application/vnd.kde.okular-archive to bg
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 06:09:36 +03:00
Ivailo Monev
1177b5d671 kio: replace KFileMetaDataWidget::Private::initMetaInfoSettings() with its body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 04:49:10 +03:00
Ivailo Monev
7098b9d98e kio: remove unused and private KFileMetaDataWidget slots
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 04:46:07 +03:00
Ivailo Monev
cd3cd80d2f kutils: use KUrlRequester as editor for the attachments in KEMailDialog
so that files (attachments) can be conveniently chosen via a file dialog

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 23:55:32 +03:00
Ivailo Monev
8583056683 kdewidgets: link the widgets plugin to KtUiTools component
for the reference to QCustomWidget, fixes loading of the plugin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 22:56:44 +03:00
Ivailo Monev
5e358d3015 kio: remove unused KFileItemDelegate::Private::transition() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 21:48:11 +03:00
Ivailo Monev
964f78287f kio: call QMimeData constructor in KUrlDragPushButton::dragObject()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 20:54:14 +03:00
Ivailo Monev
debf72cbf2 kfile: fix up action for KUrlNavigator
the fix is only for non-local file URLs, KUrl already does the correct
thing by stat()-ing local file URLs (see KUrl::upUrl())

trailing slash is added to the URL by
KUrlNavigator::Private::updateButtonVisibility() too before checking if it
is possible to go up which essentially means that KUrlNavigator was not
ment to be for files (it does not autocomplete files either) even tho it is
possible to open file by adding file name manually to the URL (via dolphin
anyway, not via KFileDialog tho)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 13:00:31 +03:00
Ivailo Monev
e028b183a8 kutils: remove unused kdeglobals kcfg files
other than having it around to track what entries kdeglobals has
there is no other purpose for it, I can just use the grep.sh script
from the main Katana repo to look for kdeglobals config references tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 09:28:49 +03:00
Ivailo Monev
4dc549635a kdecore: update KCatalog documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 08:30:50 +03:00
Ivailo Monev
2ffa34c16a kdecore: update KLocale::defaultLanguage() documentation
deffinetly not internal

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 08:20:50 +03:00
Ivailo Monev
a9e778cc6d kdeui: update note in KCalendarWidget::changeEvent()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 08:10:04 +03:00
Ivailo Monev
ecc721b59c kdecore: change locale language from KLocale::reparseConfiguration() of default KLocale objects
default as in no explicit language has been passed as argument to KLocale
and the language comes either from config or the environemnt variables

with this change KCalendarWidget properly adapts to KLocale config change,
however other applications and widgets may not which is something that has
to be looked into. note that logout is (and was before the KLocale rewrite
even) recommended by the locale KCM for the change to fully take effect

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 08:08:13 +03:00
Ivailo Monev
eebedd4c76 kdeui: send locale and language change events from KGlobalSettings
the signals come from the locale KCM however applications, libraries and
widgets handling of such changes is mixed - some do it on
QEvent::LocaleChange, some on QEvent::LanguageChange, some when the
KGlobalSettings signal is send so sending the events will make sure that
locale changes take effect immediatly (when and wherethe event is watched
for ofcourse, KCalendarWidget does it for one)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 07:55:01 +03:00
Ivailo Monev
a2e6cb8a18 kio: remove deprecated and non-operational KIO::Job::canceled() signal
never emitted

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 03:16:19 +03:00
Ivailo Monev
f97608216a interfaces: remove unused KTextEditor::LoadSaveFilterCheckPlugin class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 03:14:49 +03:00
Ivailo Monev
d02d2b3fa4 kdecore: implement precision field for KuitSemantics
otherwise KLocale::formatNumber() has to guess the precision that was
passed to KLocalizedString::subs() and make up a localized integer string
with a magic wand, the precision for precise number types (e.g. ulong,
qlonglong, etc.) remains -1

fixes KSignalPlotter test case failure

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 15:45:04 +03:00
Ivailo Monev
f04d336bc0 kdecore: more compat bits for KLocale::formatNumber()
one more hack comming right up..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 15:38:13 +03:00
Ivailo Monev
8d3cf0ad3d kdecore: compat bits for KLocale::formatNumber()
the test case for this is in a KSignalPlotter test, see:
kde-workspace/libs/ksysguard/tests/signalplottertest.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 14:38:05 +03:00
Ivailo Monev
c4a5205981 kdecore: correct milisecond(s) spelling
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 13:20:53 +03:00
Ivailo Monev
d47978309e kdecore: replace the "ok" argument of KLocale::readDate() and KLocale::readTime() with "format" one
beware that bad things will happen if the input strings are not in one of
the formats KLocale::formatDate() and KLocale::formatTime() output

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 12:54:53 +03:00
Ivailo Monev
de7070d2bb kdecore: return only the language part from KLocale::language()
e.g. "bg" for "bg_BG", the default locale is special case for that method
too because of expectations in other places (such as KConfig, KMimeType
tries to match all of the languages returned by KLocale::languageList()
which is how it should be done but that is for another commit)

that is essentially the last bit to bring it back to a compatible state
with the previous implementation, except now more locales are supported

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 12:28:08 +03:00
Ivailo Monev
476f006aab kdecore: do not insert duplicate catalogs into KLocale
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 11:57:30 +03:00
Ivailo Monev
8da6fa7558 kdeui: preserve the translations order in KSwitchLanguageDialog
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 11:53:06 +03:00
Ivailo Monev
b8c4f73865 kdeui: implement KSwitchLanguageDialog
note that it does not change the locale language (yet), nor does is affect
it. it changes the translation language(s) - two different things!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 11:16:27 +03:00
Ivailo Monev
c44da5428f kdecore: do not insert and remove catalogs from KPluginFactory
already done by KComponentDataPrivate, when the component is created and
deleted

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 10:04:36 +03:00
Ivailo Monev
95ccbcb31b kdecore: do not insert invalid catalogs into KLocale
to optimize translation lookup, also re-purposed
KCatalog::catalogLocaleDir() for that

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 10:02:57 +03:00
Ivailo Monev
b1ffffeb89 kdecore: preserve manually inserted catalogs on KLocale configuration reparse
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 06:21:00 +03:00
Ivailo Monev
1e3041061a kdecore: fix regression since 0b9281b360
also adjust KLocalizedString test case, "Job" is no longer translated
string in the source code thus not in the french translation

on a side note there are KLocale tests all around - KLocalizedString, KIO
tests, etc. so perhaphs only quircks should be tested by the KLocale
specifiec tests

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 06:02:28 +03:00
Ivailo Monev
eedfed825a kdecore: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 05:40:10 +03:00
Ivailo Monev
bc4bff9784 kdecore: adjust the KService test to KLocale changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 05:29:28 +03:00
Ivailo Monev
3f4a16a84e kdecore: stabilize KLocalizedStringTest::testThreads()
while the threads are running the kdelibs4 catalog may or may not get
removed resulting in a race and different results in the functions (if
the catalog is not there there will be no translation but the test
functions expect it to be translated when french translations are
installed)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 05:15:59 +03:00
Ivailo Monev
3e1e82534a kdecore: reduce branches in KLocale::translateRaw()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 05:13:08 +03:00