Warning, /frameworks/kirigami/src/controls/AbstractApplicationHeader.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.5 0008 import org.kde.kirigami 2.5 as Kirigami 0009 import "private" as P 0010 import "templates" as T 0011 0012 0013 //TODO KF6: remove 0014 /** 0015 * @brief An item that can be used as a title for the application. 0016 * 0017 * Scrolling the main page will make it taller or shorter (through the point of going away) 0018 * It's a behavior similar to the typical mobile web browser addressbar 0019 * the minimum, preferred and maximum heights of the item can be controlled with 0020 * * ``minimumHeight``: default is 0, i.e. hidden 0021 * * ``preferredHeight``: default is Kirigami.Units.gridUnit * 1.6 0022 * * ``maximumHeight``: default is Kirigami.Units.gridUnit * 3 0023 * 0024 * To achieve a titlebar that stays completely fixed just set the 3 sizes as the same 0025 * 0026 * @deprecated This will be deleted in KF6. 0027 * @inherit kirigami::templates::AbstractApplicationHeader 0028 */ 0029 T.AbstractApplicationHeader { 0030 id: root 0031 0032 Kirigami.Theme.inherit: false 0033 Kirigami.Theme.colorSet: Kirigami.Theme.Header 0034 0035 background: Rectangle { 0036 color: Kirigami.Theme.backgroundColor 0037 P.EdgeShadow { 0038 id: shadow 0039 visible: root.separatorVisible 0040 anchors { 0041 right: parent.right 0042 left: parent.left 0043 top: parent.bottom 0044 } 0045 edge: Qt.TopEdge 0046 opacity: (!root.page.header || root.page.header.toString().indexOf("ToolBar") === -1) 0047 Behavior on opacity { 0048 OpacityAnimator { 0049 duration: Kirigami.Units.longDuration 0050 easing.type: Easing.InOutQuad 0051 } 0052 } 0053 } 0054 Behavior on opacity { 0055 OpacityAnimator { 0056 duration: Kirigami.Units.longDuration 0057 easing.type: Easing.InOutQuad 0058 } 0059 } 0060 } 0061 }