Commit graph

381 commits

Author SHA1 Message Date
Ivailo Monev
bc21d5c4aa libs: use Plasma::IconWidget as base for Plasma::AppletIcon
for the hover effect and for something else.. shh!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-11 05:45:44 +03:00
Ivailo Monev
deba262894 libs: update fonts of Plasma::AppletFrame widgets KGlobalSettings signal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-11 05:32:22 +03:00
Ivailo Monev
177ef97469 libs: tweak internal Plasma::WidgetExplorer widgets sizes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-11 05:18:31 +03:00
Ivailo Monev
34c8fa69ee libs: handle KSycoca database update again in Plasma::WidgetExplorer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-11 04:55:09 +03:00
Ivailo Monev
9c0544f790 libs: delete widgets from Plasma::WidgetExplorer destructor, use Plasma::Label as spacer for it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-11 04:45:03 +03:00
Ivailo Monev
b54eec7ab5 libs: Plasma::WidgetExplorer reimplementation
am really starting to hate Plasma::ScrollWidget - that widget is
resizing on timer so to not cause resizing to minimum and then expanding
manual widget resizing has to be done (see
Plasma::WidgetExplorerPrivate::filterApplets())

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-11 03:52:52 +03:00
Ivailo Monev
221aca19c1 libs: query for batteries via solid directly from WorkspaceScripting::AppInterface::hasBattery()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-02 17:17:23 +03:00
Ivailo Monev
a42f25b004 libs: read launcher items as a list of QUrl
because KUrl passes the URL as-is when it is constructed from string (char
array, QString, etc.) query items (intentionally) are not splitted, fixes
restoration of task manager launchers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-01 22:27:52 +03:00
Ivailo Monev
a5a07d46ca generic: drop bogus multihead support
note that it is independant of X11 multiscreen, as the comment in
KWin::Workspace::isOnCurrentHead() claims

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-01 16:41:30 +03:00
Ivailo Monev
193cd5792f libs: remove check for KDM_NO_SHUTDOWN definiton
never defined, even if it was it would result in undefined reference to the
methods

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 20:39:12 +03:00
Ivailo Monev
f29510f193 libs: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 18:57:23 +03:00
Ivailo Monev
65d97bc395 libs: KWindowListMenu optimizations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 18:36:13 +03:00
Ivailo Monev
130edd507d libs: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 18:34:04 +03:00
Ivailo Monev
a79c074652 libs: remove unused deprecated KonqPopupMenuPlugin class
KonqPopupMenu/Plugin is independant implementation - .desktop files with
actions and a service type to query for

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 17:21:51 +03:00
Ivailo Monev
78b2c3d80d libs: remove deprecated KonqCopyToMenu constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 16:44:19 +03:00
Ivailo Monev
3795d6d515 libs: remove unused directory_bookmarkbar.desktop file
KBookmarkManager and related classes do not use .desktop files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 16:24:19 +03:00
Ivailo Monev
a38e492f38 libs: KonqPopupMenu documentation review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 16:14:45 +03:00
Ivailo Monev
0dc8347c49 generic: adjust to kparts changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 04:10:49 +03:00
Ivailo Monev
ee0a299d73 libs: iterate over a copy of the startups list in TaskManager::killStartup()
because removing item from the list via QList<T>::removeAll() modifies the
list

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-28 15:27:16 +03:00
Ivailo Monev
f47177f876 generic: adjust to KNotification changes
some notification files, such as the style KCM one, were not even used

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 08:07:58 +03:00
Ivailo Monev
f52abcc81d libs: remove unused KPassivePopup header inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-24 17:19:55 +03:00
Ivailo Monev
4584fab20b libs: remove non-operational TaskManager::GroupManager::TaskSortingStrategy::ActivitySorting enum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 23:57:15 +03:00
Ivailo Monev
186a7702e8 generic: adjust to KGlobalSettings changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 04:29:13 +03:00
Ivailo Monev
f4acd2164c generic: adjust to KLocalizedString changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-17 22:21:32 +03:00
Ivailo Monev
f23a2f7a7b generic: remove useless AUTHORS files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 20:12:42 +03:00
Ivailo Monev
5353b11a26 libs: remove non-operational WorkspaceScripting::ScriptEngine::loadTemplate() method
plasma layout templates are no longer a thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 18:35:42 +03:00
Ivailo Monev
9a10c6c95e generic: adjust to KAboutData changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 17:48:01 +03:00
Ivailo Monev
cf6a2620c6 generic: remove dead and irrelevant links references
consider the mail references just as dead

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 15:44:43 +03:00
Ivailo Monev
dbfb4586ec generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 01:33:34 +03:00
Ivailo Monev
e43145dcf3 libs: use KCatalogLoader to load the libtaskmanager catalog
event tho TaskManager::TaskManager is singleton manually removing the
catalog can result in empty strings (catalogs are no longer reference
counted)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-01 04:27:16 +00:00
Ivailo Monev
4a613cc1ab generic: drop unused oxygen style background pixmap feature
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 08:54:54 +00:00
Ivailo Monev
963b430924 libs: link widget plugins to KtUiTools component
for the reference to QCustomWidget, fixes loading of the plugins

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 22:54:28 +03:00
Ivailo Monev
de64f8e332 libs: drop the automatic update feature of Plasma::Calendar
only Plasma::ClockApplet uses the Plasma::Calendar class and it disables
automatic updates (because the date comes from data engine). also due to
7819796c55 the date is updated once a second
which was updating the currently selected date thus interfering with date
selection every second so the check that was removed in
d7d63a156b had to be brought back

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 12:12:30 +03:00
Ivailo Monev
66b45e8852 libs: adjust expected data in KSignalPlotter tests
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 15:45:52 +03:00
Ivailo Monev
c380602abf generic: adjust to KLocale changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-26 23:35:19 +03:00
Ivailo Monev
158fa1dc9d libs: propagate focus event from Plasma::ClockApplet
goes like this:
Plasma::ClockApplet -> Plasma::Calendar -> Plasma::CalendarWidget -> ...

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 20:53:52 +03:00
Ivailo Monev
d7d63a156b libs: update the current date of Plasma::Calendar from Plasma::Calendar::setDate()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 20:32:32 +03:00
Ivailo Monev
d7a2762955 libs: do not setup the clock applet as passive popup
two reasons for that - one is that no other applet does that (e.g. battery
and device applets dissapear once focus is lost) and second being that
passive popups are documented as non-focus stealing applets but the
calendar widget accepts key and mouse events (for various reasons) thus
stealing the focus to process key and mouse events is abosolutely ok

also the minium and preferred size are set by Plasma::Calendar

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 08:53:54 +03:00
Ivailo Monev
525c3a7610 libs: adjust the minimum and preferred size of Plasma::Calendar widget
both to fit default configuration, font size not taken into account but it
was so before. resizing the widget is an option (the plasma applets and the
calendar that pops from the date on the panel are resizeble)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 00:46:42 +03:00
Ivailo Monev
f1ad39ed60 libs: remove declaration of now non-existing Plasma::Calendar::manualDateChange() slot
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 21:07:29 +03:00
Ivailo Monev
749a6b8be5 libs: beep when an attempt is made to set the Plasma::Calendar date to invalid
like KDatePicker did

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 20:14:28 +03:00
Ivailo Monev
12f0d7468b libs: do not handle key events in Plasma::Calendar
QCalendarWidget already does handle some, including date input via number
keys (Qt::Key_0 to Qt::Key_9)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 19:40:04 +03:00
Ivailo Monev
ecf0d7659b libs: do not grab and ugrab the keyboard from the calendar focus change events
QCalendardWidget (and consequently KCalendarWidget) focus policy is set to
Qt::StrongFocus by default

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 18:40:32 +03:00
Ivailo Monev
1c58ec3f25 libs: port to the new calendar widget classes
slick:
https://ibb.co/Vg1TyM2

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 11:38:08 +03:00
Ivailo Monev
8f6d548a2e libs: remove holiday events support leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 08:23:44 +03:00
Ivailo Monev
84fc233313 generic: port to the new KCalendarWidget class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 05:52:55 +03:00
Ivailo Monev
45bbcd5e5e libs: remove unused KonqOperations slot and non-operational signal
the signal is never emitted

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-20 23:09:45 +03:00
Ivailo Monev
f0a25101d2 libs: remove unused and redundant KVersionControlPlugin enums
icon-wise it shall be the same because there is no icon for unstaged added
files, changing the tint of modified files just to make it clearly
different from the added files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 08:47:57 +03:00
Ivailo Monev
385845d673 generic: drop floppy support
yep, it's about time

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 06:26:25 +03:00
Ivailo Monev
c68f32e086 dolphin: drop all plugins except git and rewrite it
one of the things that the previous implementation was lacking is the
credentials handling, also it was was very slow because it had to spawn
a process

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