~nik90/ubuntu-clock-app/custom-swipe-delete

« back to all changes in this revision

Viewing changes to app/components/Background.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-06-06 18:45:49 UTC
  • Revision ID: krnekhelesh@gmail.com-20140606184549-l8qpmg55pwqqurjd
Initial commit of files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 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 version 3 as
 
6
 * published by the Free Software Foundation.
 
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.2
 
18
import Ubuntu.Components 1.1
 
19
 
 
20
/*
 
21
  Component to set the background of the app
 
22
  */
 
23
 
 
24
Image {
 
25
    id: _background
 
26
 
 
27
    width: parent.width
 
28
    anchors.top: parent.top
 
29
    anchors.left: parent.left
 
30
 
 
31
    source: "../graphics/bg_crop.png"
 
32
    fillMode: Image.PreserveAspectFit
 
33
}