Commit graph

107 commits

Author SHA1 Message Date
Ivailo Monev
ce66b4435a plasma: remove qrc support leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 19:17:46 +03:00
Ivailo Monev
cabdebd649 plasma: remove unused Plasma::TextBrowserPrivate member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 19:07:05 +03:00
Ivailo Monev
05c5e67554 plasma: remove redundant Plasma::GroupBox::resizeEvent() reimplementation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 18:43:59 +03:00
Ivailo Monev
965b0b33e2 plasma: correct base class call in Plasma::IconWidget::mouseReleaseEvent()
someone made a boo boo (hint - wasn't me)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 18:37:21 +03:00
Ivailo Monev
fbfb374b9c generic: drop scripting and tray support
after changes to multiple sub-projects (Katie, kdelibs, kde-workspace
and kde-extraapps) that finally happened, can write lots about it but I
will keep it short - by rewriting parts that were using js/qml (e.g. the
plasma applets) the desktop startup was reduced to half, also the legacy
tray thing shall be no more (anything that needs tray icon shall be a
plasma applet now) thus some applications and features will be dropped
aswell. see all repositories for the changes done

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:06:58 +03:00
Ivailo Monev
4f56e99b9a plasma: elide the Plasma::Frame text
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-24 12:19:33 +03:00
Ivailo Monev
9c683ba417 plasma: do not override QStyle::ComplexControl::CC_Slider control rectangle
Plasma::Slider is now painted as native widget

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-20 19:46:24 +03:00
Ivailo Monev
961d56277c plasma: paint Plasma::ComboBox, Plasma::LineEdit, Plasma::PushButton, Plasma::Slider and Plasma::SpinBox as native widgets
goal is to paint as little as possible with svg images, the fact that there
are 3 kinds of widgets (native, plasma and qml) makes things look
different and as if made of bits and pieces instead of having a uniform
look. with my reimplementation of several widgets and applets it is less
so tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-20 10:26:36 +03:00
Ivailo Monev
b1b83d3afd plasma: do not add stretches around the Plasma::TabBar proxy
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-18 20:09:13 +03:00
Ivailo Monev
46cf566daa plasma: clear the internal Plasma::ToolButton image member from Plasma::ToollButton::setImage()
if the image path happened to be the same but the elemente ID not then the
image was not going to change, that is no longer the case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-16 11:10:36 +03:00
Ivailo Monev
581fe4066a plasma: do not adjust Plasma::ScrollWidget on timer
while the compression of the scrollbars adjustment has its gain the visual
glitches that resizing on timer causes are not worth it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 15:04:06 +03:00
Ivailo Monev
7d56c26074 plasma: call QToolButton constructor in Plasma::ToolButton constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 08:43:19 +03:00
Ivailo Monev
c4e23a5c3f plasma: remove redundant signals declaration
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-10 06:59:27 +03:00
Ivailo Monev
8656f87085 plasma: remove unused Plasma::ScrollWidgetPrivate members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 23:37:42 +03:00
Ivailo Monev
614724f90e plasma: initialize Plasma::ItemBackgroundPrivate members from its constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 23:20:29 +03:00
Ivailo Monev
6b339097d2 plasma: mark Plasma::IconWidget::numDisplayLines() as const
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 23:14:37 +03:00
Ivailo Monev
6ed94914fe generic: get QImage and QPixmap objects width and height via the specialized methods
QImage::size() and QPixmap::size() construct QSize object from the internal
width and height members

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 03:45:25 +03:00
Ivailo Monev
e7823a0484 generic: require Katie v4.14.0+
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-28 20:35:10 +03:00
Ivailo Monev
07de7723af plasma: replace use of QTime as timer with QElapsedTimer in Plasma::ScrollWidget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-15 02:10:11 +03:00
Ivailo Monev
b7d67374be plasma: focus hack for Plasma::CalendarWidget
as is done by Plasma::LineEdit

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 20:51:50 +03:00
Ivailo Monev
6cb0ae1239 plasma: call Plasma::ThemedWidgetInterface::initTheming() from Plasma::CalendarWidget constructor
to apply palette and font instantly instead of relying on it to happen due
to external events

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 08:39:14 +03:00
Ivailo Monev
97372f70af plasma: Plasma::CalendarWidget documentation correction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 06:38:43 +03:00
Ivailo Monev
ce03856f54 plasma: theme the Plasma::CalendarWidget via the internal Plasma::ThemedWidgetInterface class
what that does - the general application color scheme applies to the native
widget and any Plasma::Theme overrides are applied on top of that making it
slightly less native looking and more plasma-themed.

also that allows to not just hide the calendar month button but disable it,
the colors for disabled widget as slightly lighter than the usual color
scheme so its not a big difference visually with that change

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 20:55:55 +03:00
Ivailo Monev
0560ab5550 plasma: sligthly better workaround for Plasma::CalendarWidget navigation bar
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 13:06:57 +03:00
Ivailo Monev
7e78f97d61 plasma: new Plasma::CalendarWidget class
to be used by the clock and calendar applets

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 11:30:15 +03:00
Ivailo Monev
de4b524cc0 plasma: adjust to Katie changes
see 435ef0b6eb4d9cc9da8afceb7c8a1bba1de1df5b in the Katie repo

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-11 19:11:42 +03:00
Ivailo Monev
69f56fa9d8 plasma: remove unused Plasma::ComboBoxPrivate members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 03:08:57 +02:00
Ivailo Monev
0f0c306927 plasma: move bufferPixmap variable to the scope it is used in
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-03 00:57:54 +02:00
Ivailo Monev
581afd3caa generic: drop KIO HTTP(S) support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-02-16 09:12:20 +02:00
Ivailo Monev
442d5e6c88 plasma: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-09-17 02:00:27 +03:00
Ivailo Monev
ac3ab9a585 plasma: remove default reimplementations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-02 02:32:39 +03:00
Ivailo Monev
df60147c5f plasma: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-29 17:16:43 +03:00
Ivailo Monev
2a4447ed40 generic: compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-13 16:16:12 +03:00
Ivailo Monev
8d3ea2c1bc generic: purge Qt support with fire
this includes QtWebKit support removal since it is not going to be
maintained, fancy headers removal, CMake modules rewrite/removal
and removing conditionals from the build system. Pre-processor
definitions checks are still in place on purpose

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-07 13:00:55 +00:00
Ivailo Monev
2f8448c76c generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-17 16:14:26 +00:00
Ivailo Monev
3fbc1d01f4 plasma: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-08 02:10:06 +00:00
Ivailo Monev
e189969fd1 generic: various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-04 22:26:53 +00:00
Ivailo Monev
61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00
Ivailo Monev
8e79cf1d5a generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-11-03 12:19:19 +00:00
Ivailo Monev
cfff1dd53a generic: get rid of KTextBrowser
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-08-20 16:42:02 +00:00
Ivailo Monev
d398932909 generic: drop Phonon in favour of MPV and custom player classes
kcompactdisc was remove because there is no use for it in the
current set of applications supported, if it is needed it will
need some work to make it use KMediaPlayer or whatever.

the Plasma VideoWidget class was dropped because custom widgets
(at some point) will be dropped unless absolutely needed and
hopefully getting rid of the heavy-weight QML stuff.

the new KMediaPlayer and KMediaWidgets classes are experimental
but they have been tested and they work as they should.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 02:43:02 +00:00
Ivailo Monev
1d0fabce0f plasma: fix build against Katie
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-23 01:38:15 +02:00
Ivailo Monev
aa1e226640 genric: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-14 00:09:35 +02:00
Ivailo Monev
22f5e541ef plasma: cleanup webview widget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-18 11:04:55 +02:00
Ivailo Monev
dcd602e9d6 plasma: revert animations support removal 2015-10-28 08:55:23 +02:00
Ivailo Monev
746f262aa0 generic: misc cleanups 2015-10-28 08:46:23 +02:00
Ivailo Monev
f54c727f92 plasm: drop animations support
this will (most importantly) break some applets from kde-workspace
and could use a review + some cleanups (like headers inclusions,
variables declarations, etc.) but it's pretty much complete
2015-10-05 09:23:56 +03:00
Ivailo Monev
8dc26843f2 plasma: minor frame optimizations 2015-09-28 10:10:47 +00:00
Ivailo Monev
c931b9a201 generic: mostly win cruft removal 2015-08-28 04:47:19 +03:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00