Commit graph

19 commits

Author SHA1 Message Date
Ivailo Monev
59f92c0970 generic: compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-03 20:21:35 +03:00
Ivailo Monev
53dc9fede5 kdeui: enable opening of external links for KMessageWidget and disable text selection
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-30 21:31:32 +03:00
Ivailo Monev
71e27caf2e kdeui: place the close button of KMessageWidget conditionally again
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-16 20:15:45 +03:00
Ivailo Monev
324518962f kdeui: drop redundant KMessageWidget slots
animating KMessageWidget could not be done properly, not with fade and
not with size animation. it was bad idea from the start

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-16 19:58:27 +03:00
Ivailo Monev
f0b2eac1f1 kdeui: use custom close button properties in KMessageWidget
and because there is no meat from the old implementation copyright goes to
me

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-16 18:44:16 +03:00
Ivailo Monev
d36ed141e9 kdeui: KMessageWidget painting optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-16 16:31:35 +03:00
Ivailo Monev
ce983caed6 kdeui: KMessageWidget tweak
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-16 03:36:12 +03:00
Ivailo Monev
1c84eaf43b kdeui: rework KMessageWidget
using the selection color for information messages when the text is
selectable was questionable atleast, overriding QFrame action setters,
using QFrame as base class when none of its features were used..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-16 03:24:12 +03:00
Ivailo Monev
88598523d0 kdeui: new KPixmapWidget
the idea for QImage/QPixmap-optimized widget occurred to me while
writing kimageviewer (see the kde-playground repo), unlike the widget I
wrote for kimageviewer this one supports drag-n-drop tho and is drop-in
replacement for QLabel when showing only a pixmap is required. the
widget also shows a small image while dragging ala ksnapshot

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-29 08:59:51 +03:00
Ivailo Monev
6e033933c7 kdeui: do not animate the KMessageWidget show/hide
without the slow snapshot-based rendering 500ms animation does not even
make a difference..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-07 17:56:40 +03:00
Ivailo Monev
99a57832a1 kdeui: correct placeholder in KMessageWidget::setMessageType()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-07 08:12:33 +03:00
Ivailo Monev
c32db57584 kdeui: animate the height of KMessageWidget from KMessageWidget::animatedHide()
can animate the opacity too but size change animation suits better a
message widget that is not dialog, still it happens in 500ms and renders
much faster than the previous snapshot-based approach so..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-07 08:03:42 +03:00
Ivailo Monev
8bf6e8bd73 kdeui: do not specify margin for the label of KMessageWidget
there is no inner frame now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-07 07:51:47 +03:00
Ivailo Monev
0ba71250e0 kdeui: essentially KMessageWidget rewrite
the fixed size policy causes all sort of trouble, no more tho. also the
buttons will be centered now when word wrapping is on

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-07 05:57:48 +03:00
Ivailo Monev
a37bd35627 kdeui: render KMessageWidget snapshot into QImage
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-21 18:44:19 +02:00
Ivailo Monev
3b6f69ac67 kdeui: remove redundant KMessageWidget::showEvent() reimplementation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-21 02:17:22 +02:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00