Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16186

The homescreenChanged(bool isOnCurrentHomescreen) signal from QMaemo5HomescreenAdaptor is always emitted with isOnCurrentHomescreen = false.

    XMLWordPrintable

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)

      { - emit allDesktopItems.at(i)->homescreenChanged(ev->xproperty.window == 0); + emit allDesktopItems.at(i)->homescreenChanged(ev->xproperty.state == 0); retval = true; }

      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rengels Ralf Engels
            rgad Ruediger Gad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes