Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/ToolButton.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 | 22 | | |||
23 | import QtQuick 2.6 | 23 | import QtQuick 2.6 | ||
24 | import QtQuick.Templates 2.0 as T | 24 | import QtQuick.Templates 2.0 as T | ||
25 | import org.kde.kirigami 2.2 as Kirigami | ||||
25 | import org.kde.qqc2desktopstyle.private 1.0 as StylePrivate | 26 | import org.kde.qqc2desktopstyle.private 1.0 as StylePrivate | ||
26 | 27 | | |||
27 | T.ToolButton { | 28 | T.ToolButton { | ||
28 | id: controlRoot | 29 | id: controlRoot | ||
30 | Kirigami.Theme.colorSet: flat ? Kirigami.Theme.Window : Kirigami.Theme.Button | ||||
31 | Kirigami.Theme.inherit: flat | ||||
29 | 32 | | |||
30 | implicitWidth: background.implicitWidth | 33 | implicitWidth: background.implicitWidth | ||
31 | implicitHeight: background.implicitHeight | 34 | implicitHeight: background.implicitHeight | ||
32 | 35 | | |||
33 | hoverEnabled: true //Qt.styleHints.useHoverEffects TODO: how to make this work in 5.7? | 36 | hoverEnabled: true //Qt.styleHints.useHoverEffects TODO: how to make this work in 5.7? | ||
34 | 37 | | |||
35 | flat: true | 38 | flat: true | ||
36 | contentItem: Item {} | 39 | contentItem: Item {} | ||
Show All 12 Lines |