Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/Button.qml
Show All 16 Lines | |||||
17 | * the packaging of this file. Please review the following information to | 17 | * the packaging of this file. Please review the following information to | ||
18 | * ensure the GNU General Public License version 2.0 requirements will be | 18 | * ensure the GNU General Public License version 2.0 requirements will be | ||
19 | * met: http://www.gnu.org/licenses/gpl-2.0.html. | 19 | * met: http://www.gnu.org/licenses/gpl-2.0.html. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.6 | 22 | import QtQuick 2.6 | ||
23 | import QtQuick.Templates 2.0 as T | 23 | import QtQuick.Templates 2.0 as T | ||
24 | import org.kde.qqc2desktopstyle.private 1.0 as StylePrivate | 24 | import org.kde.qqc2desktopstyle.private 1.0 as StylePrivate | ||
25 | import org.kde.kirigami 2.2 as Kirigami | ||||
25 | 26 | | |||
26 | T.Button { | 27 | T.Button { | ||
27 | id: controlRoot | 28 | id: controlRoot | ||
29 | Kirigami.Theme.colorSet: Kirigami.Theme.Button | ||||
30 | Kirigami.Theme.inherit: false | ||||
28 | 31 | | |||
29 | implicitWidth: background.implicitWidth | 32 | implicitWidth: background.implicitWidth | ||
30 | implicitHeight: background.implicitHeight | 33 | implicitHeight: background.implicitHeight | ||
31 | 34 | | |||
32 | hoverEnabled: true //Qt.styleHints.useHoverEffects TODO: how to make this work in 5.7? | 35 | hoverEnabled: true //Qt.styleHints.useHoverEffects TODO: how to make this work in 5.7? | ||
33 | 36 | | |||
34 | contentItem: Item {} | 37 | contentItem: Item {} | ||
35 | background: StylePrivate.StyleItem { | 38 | background: StylePrivate.StyleItem { | ||
Show All 11 Lines |