Warning, /plasma/qqc2-breeze-style/style/qtquickcontrols/SplitView.qml is written in an unsupported language. File is not indexed.

0001 // NOTE: replace this
0002 /****************************************************************************
0003 **
0004 ** Copyright (C) 2018 The Qt Company Ltd.
0005 ** Contact: http://www.qt.io/licensing/
0006 **
0007 ** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
0008 **
0009 ** $QT_BEGIN_LICENSE:LGPL3$
0010 ** Commercial License Usage
0011 ** Licensees holding valid commercial Qt licenses may use this file in
0012 ** accordance with the commercial license agreement provided with the
0013 ** Software or, alternatively, in accordance with the terms contained in
0014 ** a written agreement between you and The Qt Company. For licensing terms
0015 ** and conditions see http://www.qt.io/terms-conditions. For further
0016 ** information use the contact form at http://www.qt.io/contact-us.
0017 **
0018 ** GNU Lesser General Public License Usage
0019 ** Alternatively, this file may be used under the terms of the GNU Lesser
0020 ** General Public License version 3 as published by the Free Software
0021 ** Foundation and appearing in the file LICENSE.LGPLv3 included in the
0022 ** packaging of this file. Please review the following information to
0023 ** ensure the GNU Lesser General Public License version 3 requirements
0024 ** will be met: https://www.gnu.org/licenses/lgpl.html.
0025 **
0026 ** GNU General Public License Usage
0027 ** Alternatively, this file may be used under the terms of the GNU
0028 ** General Public License version 2.0 or later as published by the Free
0029 ** Software Foundation and appearing in the file LICENSE.GPL included in
0030 ** the packaging of this file. Please review the following information to
0031 ** ensure the GNU General Public License version 2.0 requirements will be
0032 ** met: http://www.gnu.org/licenses/gpl-2.0.html.
0033 **
0034 ** $QT_END_LICENSE$
0035 **
0036 ****************************************************************************/
0037 
0038 import QtQuick
0039 import QtQuick.Templates as T
0040 import QtQuick.Controls
0041 import QtQuick.Controls.impl
0042 
0043 T.SplitView {
0044     id: control
0045     implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
0046                             implicitContentWidth + leftPadding + rightPadding)
0047     implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
0048                              implicitContentHeight + topPadding + bottomPadding)
0049 
0050     handle: Rectangle {
0051         implicitWidth: control.orientation === Qt.Horizontal ? 6 : control.width
0052         implicitHeight: control.orientation === Qt.Horizontal ? control.height : 6
0053         color: T.SplitHandle.pressed ? control.palette.mid
0054             : (T.SplitHandle.hovered ? control.palette.midlight : control.palette.button)
0055     }
0056 }