summaryrefslogtreecommitdiff
path: root/prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml')
-rw-r--r--prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml29
1 files changed, 0 insertions, 29 deletions
diff --git a/prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml b/prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml
deleted file mode 100644
index 06c005b..0000000
--- a/prototype_2016/third_party/fluid/controls/+material/SubheadingLabel.qml
+++ /dev/null
@@ -1,29 +0,0 @@
1/*
2 * This file is part of Fluid.
3 *
4 * Copyright (C) 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
5 *
6 * $BEGIN_LICENSE:MPL2$
7 *
8 * This Source Code Form is subject to the terms of the Mozilla Public
9 * License, v. 2.0. If a copy of the MPL was not distributed with this
10 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 *
12 * $END_LICENSE$
13 */
14
15import QtQuick 2.4
16import QtQuick.Controls 2.0
17import Fluid.Core 1.0
18
19Label {
20 property int level: 1
21
22 font.pixelSize: Device.isMobile ? 16 : 15
23 lineHeight: level <= 1 ? 24.0 : 28.0
24 lineHeightMode: Text.FixedHeight
25 onLevelChanged: {
26 if (level < 1 || level > 2)
27 console.error("SubheadingLabel level must be either 1 or 2 with the Material style")
28 }
29}