Warning, /plasma/kdeplasma-addons/applets/comic/package/contents/ui/ButtonBar.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2012 Reza Fatahilah Shah <rshah0385@kireihana.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.1 0008 import org.kde.plasma.core as PlasmaCore 0009 import org.kde.ksvg 1.0 as KSvg 0010 import org.kde.plasma.components 3.0 as PlasmaComponents3 0011 0012 Item { 0013 id: root 0014 0015 implicitWidth: rowButton.width + background.margins.left + background.margins.right 0016 implicitHeight: rowButton.height + background.margins.top + background.margins.bottom 0017 0018 signal prevClicked 0019 signal nextClicked 0020 signal zoomClicked 0021 0022 KSvg.FrameSvgItem { 0023 id: background 0024 0025 anchors.fill: parent 0026 0027 imagePath: "widgets/toolbar" 0028 prefix: "raised" 0029 } 0030 0031 Row { 0032 id: rowButton 0033 0034 x: background.margins.left 0035 y: background.margins.top 0036 0037 spacing: 4 0038 //ToolButton or Button in C++ use PushButton? 0039 PlasmaComponents3.Button { 0040 id: prevButton 0041 0042 icon.name: "arrow-left" 0043 enabled: (comicData.prev != undefined && comicData.prev.length > 0) 0044 } 0045 0046 PlasmaComponents3.Button { 0047 id: zoomButton 0048 0049 icon.name: "zoom-original" 0050 } 0051 0052 PlasmaComponents3.Button { 0053 id: nextButton 0054 0055 icon.name: "arrow-right" 0056 enabled: (comicData.next != undefined && comicData.next.length > 0) 0057 } 0058 } 0059 0060 Component.onCompleted: { 0061 prevButton.clicked.connect(root.prevClicked); 0062 nextButton.clicked.connect(root.nextClicked); 0063 zoomButton.clicked.connect(root.zoomClicked); 0064 } 0065 }