Review Request 126597: Notificatioins rework

Anthony Fieroni bvbfan at abv.bg
Mon Jan 4 09:09:37 UTC 2016



> On Ян. 4, 2016, 6:17 преди обяд, Martin Klapetek wrote:
> > So I tested your patch and I will not accept removing the
> > animation altogether. If you have 2 or more notifications
> > at once, they just unexpectedly "jump", which causes quite
> > a trouble for visual tracking. Besides, all other popups
> > are animated in Plasma.
> > 
> > I'm happy for the initial animation to go away tho and only
> > animate when the popup is already on the screen and it is
> > changing its position (replacing other popup).
> > 
> > The stuff you've moved back to qml is already addressed in 
> > https://git.reviewboard.kde.org/r/126408/ and this will take
> > precedence; I don't want to move that code back to qml.
> > 
> > The fix for the config problem with the checkbox is good.
> > 
> > Finally, your patch actually puts the popup over my panel.
> > 
> > ---
> > tl;dr - r126408 needs to go in, then we can break your patch
> > down to smaller patches and apply what is still relevant.

Ok, i can make it to animate only when visibility is changed, but it will can cause flying, i'm not pretty sure, it must test. If you want can modify my code, i'm busy now, like this.
in .h -> repositionPopups(bool animate) 
in .cpp -> NotificationsHelper::setPopupLocation -> repositionPopups(true)
NotificationsHelper::addNotificationPopup(QObject *win) ->  connect(popup, &QWindow::heightChanged, [this] { repositionPopups(false); },Qt::UniqueConnection); (true only on Window::visibleChanged)
in repositionPopups if(animate && visible) setProperty("y"... blah-blah (I think only in this way will not see flyings and i'm not sure :)


- Anthony


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126597/#review90516
-----------------------------------------------------------


On Ян. 2, 2016, 3:26 след обяд, Anthony Fieroni wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126597/
> -----------------------------------------------------------
> 
> (Updated Ян. 2, 2016, 3:26 след обяд)
> 
> 
> Review request for Plasma, David Edmundson and Martin Klapetek.
> 
> 
> Bugs: 355069
>     https://bugs.kde.org/show_bug.cgi?id=355069
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> Complete not flying any more, please compete rewrite or do not touch this code any more !
> 
> 
> Diffs
> -----
> 
>   applets/notifications/lib/notificationsapplet.h 5b262f1 
>   applets/notifications/lib/notificationsapplet.cpp 891cdb0 
>   applets/notifications/package/contents/ui/Notifications.qml f479a65 
>   applets/notifications/package/contents/ui/ScreenPositionSelector.qml efff648 
>   applets/notifications/package/contents/ui/configNotifications.qml 95a8e59 
>   applets/notifications/plugin/notificationshelper.h 860a2da 
>   applets/notifications/plugin/notificationshelper.cpp 15b4479 
> 
> Diff: https://git.reviewboard.kde.org/r/126597/diff/
> 
> 
> Testing
> -------
> 
> First of all, setProperty animate position, but with this kid of logic, empty notification window is trying to be shown more than *4* times, cause to be drawn in differet positions (flying through screen). Now position is set at once *setPosition(x,y)* and looks and feel pretty good. Removed pretty *ugly* checks and unneeded functions.
> Second of all, configuration was *totally* broken, not only flying windows, but in default configuration they (*notifications*) apears in compleately wrong positions, mostly on bottom left mixed with bottom right.
> Third of all, check on "Use custom position for the notification popup" then choose position , hit apply. Then uncheck it, the check it again, cause not trigger signal configuration changed.
> At last, all test works as expected, no regressions even more, all on configurations *works* as expected no matter how many time chech for positions is checked/unchecked, every time configuration changed is trigger and position is applied. No wrong positions at all, no flying at all.
> 
> 
> Thanks,
> 
> Anthony Fieroni
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160104/c63b6c57/attachment.html>


More information about the Plasma-devel mailing list