Warning, /frameworks/kdeclarative/tests/colorButtonTest.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2015 David Edmundson <davidedmundson@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.1 0008 import org.kde.kquickcontrols 2.0 0009 0010 Rectangle { 0011 width: 300 0012 height: 300 0013 color: "white" 0014 0015 ColorButton { 0016 id: btn 0017 0018 anchors.top: parent.top 0019 anchors.left: parent.left 0020 anchors.margins: 10 0021 0022 dialogTitle: "I am title" 0023 showAlphaChannel: true 0024 0025 color: "blue" //a default colour 0026 } 0027 0028 0029 Rectangle { 0030 anchors.top: parent.top 0031 anchors.left: btn.right 0032 anchors.margins: 10 0033 0034 width: 20 0035 height: 20 0036 0037 color: btn.color 0038 } 0039 0040 0041 }