blob: 3289f7a50e62bf94437b0fe4ac09934ff275a837 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Controls.Private 1.0
Style {
property Component panel: StyleItem {
id: styleitem
elementType: "button"
sunken: control.pressed || (control.checkable && control.checked)
raised: !(control.pressed || (control.checkable && control.checked))
hover: control.hovered
text: control.iconSource === "" ? "" : control.text
hasFocus: control.activeFocus
hints: control.styleHints
// If no icon, let the style do the drawing
activeControl: control.isDefault ? "default" : "f"
properties: {
"icon": control.__iconAction.__icon,
"menu": control.menu
}
}
}
|