Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
4.6.2, 4.7.0
-
None
-
Maemo 5 - Fremantle - PR 1.3
Version: 20.2010.36-2
-
1e31ef95d5440837203e55073afbb77926f83ba9
Description
Using the QMaemo5HomescreenAdaptor class as provided in http://qt.gitorious.org/qt-labs/maemo5-homescreen the homescreenChanged(bool isOnCurrentHomescreen) signal is always emitted with isOnCurrentHomescreen = false, no matter if the homescreen widget is on the current screen or not.
To reproduce this issue create a homescreen widget and connect a slot of the widget to the adaptors homescreenChanged(bool isOnCurrentHomescreen) signal.
The actual outcome is that the signal is emitted always with isOnCurrentHomescreen = false.
Expected behavior would be that isOnCurrentHomescreen is true if the homescreen widget is shown on the current screen and only false if the widget is not displayed.
I attached a modified version of the qt4-homescreen-example which illustrates the issue (both as installable .deb file and source code).
This issue can be fixed as shown in the following diff:
— qmaemo5homescreenadaptor.cpp.orig 2010-12-18 17:02:51.407000259 +0100
+++ qmaemo5homescreenadaptor.cpp 2010-12-18 16:39:11.842000266 +0100
@@ -324,7 +324,7 @@
if (ev->xproperty.atom == hsAtoms[HildonAppletOnCurrentDesktop]) {
for (int i = 0; i < allDesktopItems.count(); ++i) {
if (allDesktopItems.at>appletWidget()>winId() == ev->xproperty.window)
}