~ubuntu-branches/ubuntu/trusty/unity8/trusty-proposed

« back to all changes in this revision

Viewing changes to qml/Notifications/Notification.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Michal Hruby, Michał Sawicz, Albert Astals, Michał Karnicki, Allan LeSage, Andrea Cimitan, Leo Arias, Nick Dedekind, Mirco Müller, Michael Zanetti, Michael Terry, Daniel d'Andrada, Bill Filler
  • Date: 2014-01-28 15:58:45 UTC
  • mfrom: (1.1.61)
  • Revision ID: package-import@ubuntu.com-20140128155845-rgg0gscvllv5qd3q
Tags: 7.84+14.04.20140128-0ubuntu1
[ Michal Hruby ]
* Added unity-scope-tool, which will help when developing scopes.

[ Michał Sawicz ]
* Added unity-scope-tool, which will help when developing scopes.
* Use full DashContent, not just GenericScopeView in ScopeTool.qml.
* Bring Card and CardHeader over from new-scopes.
* Work around bug #1268578. (LP: #1268578)
* Drop unnecessary version dependencies.
* Return null instead of undefined from findChild and
  findInvisibleChild.
* Fix CardHeader and Card heights (empty Label does have non-zero
  height apparently). Also improve test robustness and reduce future
  diffs.

[ Albert Astals ]
* Do not assert if the item we are removing was not created yet
  (because e.g. it's not in the viewport).
* Position correctly the pointer of the search history box .
* Make test_filter_expand_expand less unstable in CI VMs Make sure
  header0 is the header0 we want to click On the CI VM stuff is a bit
  slower than on real hw and we were clicking in the wrong place.
* Add TabBar to the Dash header navigation Changes this comes with: *
  DashBar at the bottom is gone * PageHeader doesn't have a Label
  anymore, it has the childItem property where you add which thing it
  has to contain * New: PageHeaderLabel mimics the old behaviour of
  PageHeader * The header of the LVWPH of GenericScopeView is now fake
  and only used for positioning. There is a single global floating
  header in DashContent (which is a PageHeader with a TabBar as
  childItem) * The GenericScopeView previewLoader and OpenEffect have
  been also moved to the DashContent so that the openEffect includes
  the floating header in the "animation" .
* Introduce the HorizontalJournal.
* If there are no items m_firstVisibleIndex has to be -1 .
* Add some more documentation about tests to the CODING file.
* Fixes to the journal cmake tests code * Output to the correct
  filename for the test * Don't output stuff from the tryXYZ targets.
* Adapt to findChild return value changes .
* Organic Grid for the Dash View.
* Misc journal fixes Don't init *modelIndex to INT_MAX Makes no sense
  since we're not doing any qMin and the calling function also accepts
  any index >= 0 as valid so in some cases it may end up wanting to
  create an index that doesn't exist Don't refill if height() < 0,
  that gives bad ranges for from/to and the code gets confused .

[ Michał Karnicki ]
* Fix grid view column count.
* Add test for minimum number of items in a carousel.

[ Allan LeSage ]
* Add stubs for indicators autopilot tests.

[ Andrea Cimitan ]
* Avoid input falling through notifications onto surfaces below, thus
  fixing LP: #1257312. (LP: #1257312)

[ Leo Arias ]
* Close the Touch devices after the tests. (LP: #1267600)
* Added methods to scroll to other scopes on autopilot tests.
* Added autopilot helpers for the app scope and the app preview.
  Install the fake scopes in order to use them on the tests. (LP:
  #1269114)
* On autopilot helpers, wait for the scope category to appear.

[ Nick Dedekind ]
* Visual updates for indicator panel highlight and opening opacity.
* Added inidcator tests for page & item factories.
* Fixes visible indicator misalignment in indicator items/menus
  (lp#1264678). (LP: #1264678)

[ Mirco Müller ]
* Fixed the failure of notification autopilot-test
  test_sd_incoming_call.

[ Michael Zanetti ]
* clean up fullscreen notifications code.
* import qml files into cmake, drop qmlproject.
* also add qml files in tests directory.
* Added autopilot helpers for the app scope and the app preview.
  Install the fake scopes in order to use them on the tests. (LP:
  #1269114)

[ Michael Terry ]
* Fix failure to build when using the ./build script with ninja-build
  installed. (LP: #1268525)
* Point DBus-activated processes at unity8's MIR_SOCKET rather than
  the system socket.

[ Daniel d'Andrada ]
* DragHandle: Never restart hinting animation while still pressed (LP:
  #1269022)

[ Bill Filler ]
* fix for lp:1259294, turn off auto capitalization for wifi password
  field. (LP: #1259294)
* disable predictive text in Dash search field as it interferes with
  built-in search (LP: #1273643)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    property var notification
35
35
    property color color
36
36
    property bool fullscreen
 
37
    property int maxHeight
 
38
    property int margins
37
39
 
38
40
    fullscreen: false
39
41
    objectName: "background"
40
 
    implicitHeight: type != Notification.PlaceHolder ? (fullscreen ? notificationList.fullHeight : contentColumn.height + contentColumn.spacing * 4) : 0
 
42
    implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : contentColumn.height + contentColumn.spacing * 4) : 0
41
43
 
42
44
    color: Qt.rgba(0.132, 0.117, 0.109, 0.97)
43
45
    opacity: 0
50
52
 
51
53
        visible: !fullscreen
52
54
        anchors.fill: parent
53
 
        anchors.margins: notificationList.margin
 
55
        anchors.margins: notification.margins
54
56
        color: parent.color
55
57
        opacity: parent.opacity
56
58
        radius: "medium"
104
106
 
105
107
            anchors.fill: contentColumn
106
108
            objectName: "interactiveArea"
107
 
            enabled: notification.type == Notification.Interactive
108
 
            onClicked: notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
 
109
            onClicked: {
 
110
                if (notification.type == Notification.Interactive) {
 
111
                    notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
 
112
                }
 
113
            }
109
114
        }
110
115
 
111
116
        Column {
207
212
                        menuModel: unityMenuModel
208
213
                        menuData: model
209
214
                        menuIndex: index
 
215
                        maxHeight: notification.maxHeight
 
216
 
 
217
                        onLoaded: {
 
218
                            notification.fullscreen = Qt.binding(function() { return fullscreen; });
 
219
                        }
210
220
                    }
211
221
                }
212
222
            }