| 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 |
|
| 19 |
/*! |
| 20 |
\qmltype PageColumn |
| 21 |
\inqmlmodule Lomiri.Components |
| 22 |
\since Lomiri.Components 1.3 |
| 23 |
\ingroup lomiri |
| 24 |
\brief Component configuring the metrics of a column in AdaptivePageLayout. |
| 25 |
|
| 26 |
*/ |
| 27 |
QtObject { |
| 28 |
/*! |
| 29 |
1-based value identifying the column the metrics to be applied to. |
| 30 |
\internal |
| 31 |
*/ |
| 32 |
property int __column |
| 33 |
|
| 34 |
/*! |
| 35 |
Specifies whether the width of the column should fill the available space |
| 36 |
of the AdaptivePageLayout column or not. Defaults to \a false. |
| 37 |
*/ |
| 38 |
property bool fillWidth: false |
| 39 |
|
| 40 |
/*! |
| 41 |
Specifies the minimum width of the column. Defaults to 0. |
| 42 |
*/ |
| 43 |
property real minimumWidth: 0 |
| 44 |
|
| 45 |
/*! |
| 46 |
Specifies the maximum width of the column. A maximum value of 0 will be ignored. |
| 47 |
Defaults to the maximum positive value. |
| 48 |
*/ |
| 49 |
property real maximumWidth: Number.POSITIVE_INFINITY |
| 50 |
|
| 51 |
/*! |
| 52 |
Specifies the preferred width of the column when the layout is initialized. |
| 53 |
Defaults to 0. AdaptivePageLayout clamps the given value between \l minimumWidth |
| 54 |
and \l maximumWidth. The value must be set if the \l fillWidth and \l minimumWidth |
| 55 |
are not set. |
| 56 |
*/ |
| 57 |
property real preferredWidth: 0 |
| 58 |
} |