~ubuntu-branches/ubuntu/vivid/youker-assistant/vivid

« back to all changes in this revision

Viewing changes to qml/func/others/SoftwareDelegate.qml

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2014-03-24 15:52:37 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140324155237-3kod0m3wr2a2ag39
Tags: 1.0.1-0ubuntu1
* New upstream release (LP: #1294936).
* Modify display mode of weather forecast and system settings.
* Add file manager and font style settings.
* Improve system settings and restoring default settings.
* Cache user account (not password).
* Change the position of window control buttons.
* Add configuration for Kingsoft KuaiPan cloud client.
* Add the instruction of Youker Assistant.
* Open related folders when scanning items got double-clicked.
* Notify users when operating the Kingsoft disk cloud configuration.
* Modify Dbus starting method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013 ~ 2014 National University of Defense Technology(NUDT) & Kylin 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 1.1
18
 
import "../common" as Common
19
 
 
20
 
Rectangle {
21
 
    id: softwaredelegate
22
 
    scale: 1
23
 
    Behavior on scale { NumberAnimation { easing.type: Easing.InOutQuad} }
24
 
    width: 167
25
 
    height: 79
26
 
    SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
27
 
    color: "transparent"
28
 
    Image {
29
 
        id: seticon
30
 
        source: icon
31
 
        anchors.fill: parent
32
 
        anchors.topMargin: 7
33
 
        anchors.horizontalCenter: parent.horizontalCenter
34
 
    }
35
 
    Image {
36
 
        id: btnImg
37
 
        anchors.fill: parent
38
 
        source: ""
39
 
    }
40
 
 
41
 
    MouseArea {
42
 
        hoverEnabled: true
43
 
        anchors.fill: parent
44
 
        onEntered: btnImg.source = "../../img/toolWidget/highlight.png"
45
 
        onPressed: btnImg.source = "../../img/toolWidget/highlight.png"
46
 
        //要判断松开是鼠标位置
47
 
        onReleased: btnImg.source = "../../img/toolWidget/highlight.png"
48
 
        onExited: btnImg.source = ""
49
 
        onClicked: {
50
 
            systemdispatcher.ready_show_app_page(flag);
51
 
//            pageStack.push(softwarepage);
52
 
        }
53
 
    }
54
 
}