Debian Codegraph @

src/imports/Components/1.0/Button.qml

raw ◀ ▶
1 Debian patch touch this file
1 /*
2 * Copyright 2015 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
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 Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 import QtQuick 2.4
18 import Lomiri.Components 1.0
19
20 /*!
21 \internal
22 Documentation in 11/Button.qml
23 */
24 AbstractButton {
25 id: button
26
27 property color color: __styleInstance.defaultColor
28
29 property Gradient gradient: __styleInstance.defaultGradient
30
•31 property font font: __styleInstance ? __styleInstance.defaultFont : Qt.font({family: "Noto Sans", pixelSize: FontUtils.sizeToPixels("medium")})
32
33 property string iconPosition: "left"
34
35 style: Theme.createStyleComponent("ButtonStyle.qml", button)
36 }