Warning, /office/kbibtex/mobile/sailfishos/qml/cover/CoverPage.qml is written in an unsupported language. File is not indexed.

0001 /***************************************************************************
0002  *   SPDX-License-Identifier: GPL-2.0-or-later
0003  *                                                                         *
0004  *   SPDX-FileCopyrightText: 2016-2019 Thomas Fischer <fischer@unix-ag.uni-kl.de>
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  *   This program is distributed in the hope that it will be useful,       *
0012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
0013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
0014  *   GNU General Public License for more details.                          *
0015  *                                                                         *
0016  *   You should have received a copy of the GNU General Public License     *
0017  *   along with this program; if not, see <https://www.gnu.org/licenses/>. *
0018  ***************************************************************************/
0019 
0020 import QtQuick 2.0
0021 import Sailfish.Silica 1.0
0022 
0023 CoverBackground {
0024     id: cover
0025 
0026     Column {
0027         anchors.centerIn: parent
0028 
0029         Image {
0030             id: logo
0031             source: 'qrc:/icons/kbibtex.svg'
0032             anchors.horizontalCenter: parent.horizontalCenter
0033             width: cover.width * 2 / 3
0034             height: sourceSize.height * width / sourceSize.width
0035         }
0036 
0037         Label {
0038             id: label
0039             anchors.horizontalCenter: parent.horizontalCenter
0040             text: qsTr("BibSearch")
0041         }
0042     }
0043 
0044 
0045     CoverActionList {
0046         CoverAction {
0047             iconSource: "image://theme/icon-cover-search"
0048             onTriggered: {
0049                 pageStack.clear()
0050                 pageStack.push(Qt.resolvedUrl("../pages/BibliographyListView.qml"))
0051                 pageStack.push(Qt.resolvedUrl("../pages/SearchForm.qml"))
0052                 mainWindow.activate()
0053             }
0054         }
0055     }
0056 }