[Merge] lp:~sam-sgrs/qtubuntu/qtubuntu-fix-1504776 into lp:qtubuntu
Sam Segers
sam.sgrs at gmail.com
Sat Oct 31 21:18:29 UTC 2015
Sam Segers has proposed merging lp:~sam-sgrs/qtubuntu/qtubuntu-fix-1504776 into lp:qtubuntu.
Requested reviews:
Ubuntu Phablet Team (phablet-team)
Related bugs:
Bug #1504776 in qtubuntu: "Uses depricated QEvent::ApplicationActivate"
https://bugs.launchpad.net/qtubuntu/+bug/1504776
For more details, see:
https://code.launchpad.net/~sam-sgrs/qtubuntu/qtubuntu-fix-1504776/+merge/276339
An app has no way to tell that it's getting suspended. Qt has a Qt::ApplicationSuspended flag for that. It's already implemented on iOS, Android and windowsRT.
We also use 'QCoreApplication::postEvent(QCoreApplication::instance(), new QEvent(QEvent::ApplicationActivate));' to indicate changes, but should use QWindowSystemInterface::handleApplicationStateChanged here instead.
My askUbuntu question is very related:
http://askubuntu.com/questions/382170/how-to-tell-if-an-app-is-going-to-get-suspended-from-qml
It seems more people are seem to need something like this.
I haven't tested the change. It's just a first proposal.
--
Your team Ubuntu Phablet Team is requested to review the proposed merge of lp:~sam-sgrs/qtubuntu/qtubuntu-fix-1504776 into lp:qtubuntu.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 1847 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20151031/88f711a9/attachment-0001.diff>
More information about the Ubuntu-reviews
mailing list