~vthompson/ubuntu-weather-app/reboot-lock-portrait

« back to all changes in this revision

Viewing changes to app/components/LocationsPageEmptyStateComponent.qml

* Rename EmptyStateComponent to HomePageEmptyStateComponent
* Add a LocationsPageEmptyStateComponent.

Approved by Victor Thompson, Ubuntu Phone Apps Jenkins Bot, Andrew Hayzen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2015 Canonical Ltd
 
3
 *
 
4
 * This file is part of Ubuntu Weather App
 
5
 *
 
6
 * Ubuntu Weather App is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License version 3 as
 
8
 * published by the Free Software Foundation.
 
9
 *
 
10
 * Ubuntu Weather 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.4
 
20
import Ubuntu.Components 1.2
 
21
import "../components"
 
22
 
 
23
 
 
24
Item {
 
25
    anchors {
 
26
        fill: parent
 
27
        margins: units.gu(2)
 
28
    }
 
29
 
 
30
    Label {
 
31
        id: emptyStateLabel
 
32
        anchors {
 
33
            centerIn: parent
 
34
        }
 
35
        horizontalAlignment: Text.AlignHCenter
 
36
        text: i18n.tr("No locations found. Tap the plus icon to search for one.")
 
37
        width: parent.width - units.gu(4)
 
38
        wrapMode: Text.WordWrap
 
39
    }
 
40
}