no hover effects on mobile

This commit is contained in:
Marco Martin 2018-09-24 17:58:51 +02:00
parent ff04bf0214
commit 938b9cc1a1

View File

@ -21,6 +21,7 @@ import QtQuick 2.6
import QtQuick.Layouts 1.2
import QtQuick.Templates @QQC2_VERSION@ as T
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kirigami 2.5 as Kirigami
import "private" as Private
T.ToolButton {
@ -35,7 +36,7 @@ T.ToolButton {
rightPadding: surfaceNormal.margins.right
bottomPadding: surfaceNormal.margins.bottom
hoverEnabled: true //Qt.styleHints.useHoverEffects TODO: how to make this work in 5.7?
hoverEnabled: !Kirigami.Settings.isMobile
flat: true