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

« back to all changes in this revision

Viewing changes to qml/Dash/Generic/WeatherFilterGrid.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Michal Hruby, Gerry Boland, Michał Sawicz, Kevin Gunn, Albert Astals, Daniel d'Andrada, Michał Karnicki
  • Date: 2014-03-24 16:10:24 UTC
  • mfrom: (1.1.77)
  • Revision ID: package-import@ubuntu.com-20140324161024-h72j5vn3njrj6f3l
Tags: 7.84+14.04.20140324.4-0ubuntu1
[ Michal Hruby ]
* Change and extend the way non-installed scopes are started with the
  scope-tool.
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Gerry Boland ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Michał Sawicz ]
* Fix rating input action to always be "rated", not dynamic. Based on
  http://developer.ubuntu.com/api/devel/ubuntu-14.04/cplusplus/unity-
  scopes/previewwidgets.html#rating-input
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Kevin Gunn ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Albert Astals ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)
* LVWPH: cull lost items lost items will be released on the next
  updatePolish cycle but meanwhile don't let them be visible

[ Daniel d'Andrada ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Michał Karnicki ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation; version 3.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 */
16
 
 
17
 
import QtQuick 2.0
18
 
import Ubuntu.Components 0.1
19
 
import "../../Components"
20
 
 
21
 
GenericFilterGrid {
22
 
    id: filtergrid
23
 
 
24
 
    delegateHeight: units.gu(11.5)
25
 
 
26
 
    delegate: Tile {
27
 
        id: tile
28
 
        objectName: "delegate" + index
29
 
        width: filtergrid.cellWidth
30
 
        height: filtergrid.cellHeight
31
 
        text: model.title
32
 
        imageWidth: filtergrid.iconWidth
33
 
        imageHeight: filtergrid.iconHeight
34
 
        source: model.icon
35
 
        maximumLineCount: 2
36
 
 
37
 
        style: FlatTileStyle {}
38
 
 
39
 
        onClicked: {
40
 
            filtergrid.clicked(index, tile.y)
41
 
        }
42
 
 
43
 
        onPressAndHold: {
44
 
            filtergrid.pressAndHold(index, tile.y)
45
 
        }
46
 
    }
47
 
}