~feng-kylin/youker-assistant/youker-assistant

« back to all changes in this revision

Viewing changes to qml/func/common/ToolTip.qml

  • Committer: kobe
  • Date: 2015-02-13 07:37:10 UTC
  • Revision ID: xiangli@ubuntukylin.com-20150213073710-0jyp02ilyi5njj10
Qt Version

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
 
 
19
 
Rectangle {
20
 
    property string showText
21
 
    visible: false
22
 
    color: "#383838"
23
 
 
24
 
    BorderImage {
25
 
        id: borderimage
26
 
        source: "../../img/skin/frame.png"
27
 
        width: 165
28
 
        height: 24
29
 
        anchors {
30
 
            top: parent.bottom
31
 
            topMargin: 15
32
 
        }
33
 
    }
34
 
    Text {
35
 
        id: tipText
36
 
        anchors {
37
 
            left: borderimage.left
38
 
            leftMargin: 20
39
 
            verticalCenter: borderimage.verticalCenter
40
 
        }
41
 
        font.pixelSize: 10
42
 
        text: showText
43
 
        color: "#607684"
44
 
    }
45
 
}