Warning, /maui/mauikit/src/style.5/TabBar.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * Copyright 2017 Marco Martin <mart@kde.org>
0003 * Copyright 2017 The Qt Company Ltd.
0004 *
0005 * GNU Lesser General Public License Usage
0006 * Alternatively, this file may be used under the terms of the GNU Lesser
0007 * General Public License version 3 as published by the Free Software
0008 * Foundation and appearing in the file LICENSE.LGPLv3 included in the
0009 * packaging of this file. Please review the following information to
0010 * ensure the GNU Lesser General Public License version 3 requirements
0011 * will be met: https://www.gnu.org/licenses/lgpl.html.
0012 *
0013 * GNU General Public License Usage
0014 * Alternatively, this file may be used under the terms of the GNU
0015 * General Public License version 2.0 or later as published by the Free
0016 * Software Foundation and appearing in the file LICENSE.GPL included in
0017 * the packaging of this file. Please review the following information to
0018 * ensure the GNU General Public License version 2.0 requirements will be
0019 * met: http://www.gnu.org/licenses/gpl-2.0.html.
0020 */
0021
0022
0023 import QtQuick 2.15
0024 import QtQuick.Templates 2.15 as T
0025
0026 import org.mauikit.controls 1.3 as Maui
0027
0028
0029 T.TabBar
0030 {
0031 id: controlRoot
0032
0033 Maui.Theme.colorSet: Maui.Theme.Window
0034 Maui.Theme.inherit: false
0035
0036 implicitWidth: implicitContentWidth + leftPadding + rightPadding
0037 implicitHeight: implicitContentHeight + topPadding + bottomPadding
0038
0039 padding: Maui.Style.defaultPadding
0040 spacing: Maui.Style.space.small
0041
0042 font: Maui.Style.defaultFont
0043
0044 contentItem: ListView
0045 {
0046 implicitWidth: contentWidth
0047 implicitHeight: controlRoot.contentModel.get(0).height
0048
0049 model: controlRoot.contentModel
0050 currentIndex: controlRoot.currentIndex
0051
0052 spacing: controlRoot.spacing
0053 orientation: ListView.Horizontal
0054
0055 interactive: Maui.Handy.isMobile
0056 snapMode: ListView.SnapOneItem
0057
0058 highlightFollowsCurrentItem: true
0059 highlightMoveDuration: 0
0060 highlightResizeDuration : 0
0061
0062 boundsBehavior: Flickable.StopAtBounds
0063 boundsMovement: Flickable.StopAtBounds
0064 }
0065
0066 background: Rectangle
0067 {
0068 color: Maui.Theme.backgroundColor
0069
0070 Behavior on color
0071 {
0072 Maui.ColorTransition{}
0073 }
0074 }
0075 }