~libqtelegram-team/telegram-app/converged

« back to all changes in this revision

Viewing changes to telegram/app/qml/TagSuggestionMenu.qml

  • Committer: Michał Karnicki
  • Date: 2016-02-24 14:20:05 UTC
  • mfrom: (148.1.5 trunk)
  • Revision ID: michal.karnicki@canonical.com-20160224142005-f01y0jixcdu7gyoe
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import QtGraphicalEffects 1.0
5
5
 
6
6
Item {
7
 
    width: 200
8
 
    height: 200
 
7
    id: root
 
8
    width: parent.width
 
9
    height: 3 * 32*Devices.density + back_frame.anchors.topMargin
9
10
    visible: fmodel.count != 0
10
11
    clip: true
11
12
 
12
13
    property Telegram telegram
13
14
    property alias keyword: fmodel.keyword
14
15
 
 
16
    signal selected();
 
17
 
15
18
    TagFilterModel {
16
19
        id: fmodel
17
20
        userData: telegram.userData
35
38
            id: back_frame
36
39
            anchors.fill: parent
37
40
            anchors.topMargin: 8*Devices.density
38
 
            anchors.leftMargin: 8*Devices.density
39
 
            anchors.rightMargin: 8*Devices.density
40
41
            color: Cutegram.currentTheme.sendFrameColor
41
 
            radius: 4*Devices.density
42
42
 
43
43
            Rectangle {
44
44
                width: parent.width
81
81
                text: tag
82
82
                color: Cutegram.currentTheme.sendFrameFontColor
83
83
            }
 
84
 
 
85
            MouseArea {
 
86
                anchors.fill: parent
 
87
                onClicked: {
 
88
                    listv.currentIndex = index;
 
89
                    root.selected();
 
90
                }
 
91
            }
84
92
        }
85
93
    }
86
94