Review Request 126590: [WebBrowser plasmoid] Remember last visited url and restore it on startup.
Mihail Ivchenko
ematirov at gmail.com
Fri Jan 1 17:16:41 UTC 2016
> On Jan. 1, 2016, 8:48 p.m., Kai Uwe Broulik wrote:
> > applets/webbrowser/contents/ui/main.qml, line 55
> > <https://git.reviewboard.kde.org/r/126590/diff/1/?file=428148#file428148line55>
> >
> > Try binding this directly:
> >
> > url: plasmoid.configuration.url
> >
> > (Might cause a binding loop, in which case your approach is fine)
Yep, it causes a binding loop in that case.
> On Jan. 1, 2016, 8:48 p.m., Kai Uwe Broulik wrote:
> > applets/webbrowser/contents/ui/main.qml, line 58
> > <https://git.reviewboard.kde.org/r/126590/diff/1/?file=428148#file428148line58>
> >
> > Note plasmoid.configuration.url is a String whereas url is a QUrl. Working with URLs, especially comparing them, is unintuitive in QML, in doubt use url.toString() and then compare them.
> >
> > I'm wondering if you need this check at all, as I think the underlying QQmlPropertyMap is smart enough to detect non-changes.
>
> David Edmundson wrote:
> You're right it does.
>
> qqmlopenmetaobject.cpp:242 and as it compares them as QVariants you shouldn't have any problems comparing QUrl to a string
Fixed. Thank you!
- Mihail
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126590/#review90397
-----------------------------------------------------------
On Jan. 1, 2016, 9:15 p.m., Mihail Ivchenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126590/
> -----------------------------------------------------------
>
> (Updated Jan. 1, 2016, 9:15 p.m.)
>
>
> Review request for Plasma.
>
>
> Bugs: 357387
> http://bugs.kde.org/show_bug.cgi?id=357387
>
>
> Repository: kdeplasma-addons
>
>
> Description
> -------
>
> Remember last visited url and restore it on startup.
> BUG: 357387
>
>
> Diffs
> -----
>
> applets/webbrowser/contents/config/main.xml PRE-CREATION
> applets/webbrowser/contents/ui/main.qml 3ebf120
> applets/webbrowser/metadata.desktop 222af48
>
> Diff: https://git.reviewboard.kde.org/r/126590/diff/
>
>
> Testing
> -------
>
> Successfully restored after logout.
> Successfully restored after reboot.
> Each plasmoid is correctly restored in case there was more than 1 plasmoid.
>
>
> Thanks,
>
> Mihail Ivchenko
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160101/fc5676f1/attachment-0001.html>
More information about the Plasma-devel
mailing list