/* * Copyright (C) 2015 Canonical Ltd. * * This file is part of Lomiri Weather App * * Lomiri Weather App is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * Lomiri Weather App is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ import QtQuick 2.12 import Lomiri.Components 1.3 import "../components" Item { anchors { fill: parent margins: units.gu(2) } Label { id: emptyStateLabel anchors { centerIn: parent } horizontalAlignment: Text.AlignHCenter text: networkError ? i18n.tr("No network connection.\nUnable to add new locations.\nPlease check your network settings and try again.") : i18n.tr("No locations found. Tap the plus icon to search for one.") width: parent.width - units.gu(4) wrapMode: Text.WordWrap } }