~uriboni/messaging-app/stickers

« back to all changes in this revision

Viewing changes to src/qml/Stickers/StickerDelegate.qml

  • Committer: Ugo Riboni
  • Date: 2015-11-12 10:54:17 UTC
  • Revision ID: ugo.riboni@canonical.com-20151112105417-8rkggqadk1jqb61u
Initial implementation of stickers picker support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2015 Canonical Ltd.
 
3
 *
 
4
 * This file is part of messaging-app.
 
5
 *
 
6
 * messaging-app is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; version 3.
 
9
 *
 
10
 * messaging-app is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
import QtQuick 2.3
 
20
import Ubuntu.Components 1.3
 
21
 
 
22
AbstractButton {
 
23
    property alias stickerSource: image.source
 
24
 
 
25
    Rectangle {
 
26
        anchors.fill: parent
 
27
        border.color: "red"
 
28
        border.width: 1
 
29
    }
 
30
 
 
31
    Image {
 
32
        id: image
 
33
        anchors.fill: parent
 
34
        anchors.margins: units.gu(0.5)
 
35
        fillMode: Image.PreserveAspectFit
 
36
    }
 
37
}