remove refs to mouseover

This commit is contained in:
Marco Martin 2011-11-28 14:36:31 +01:00
parent f56ecc3673
commit b888a8adb5

View File

@ -67,16 +67,6 @@ Item {
internal.releaseButton() internal.releaseButton()
} }
onActiveFocusChanged: {
if (activeFocus) {
shadow.state = "focus"
} else if (checked) {
shadow.state = "hidden"
} else {
shadow.state = "shadow"
}
}
QtObject { QtObject {
id: internal id: internal
property bool userPressed: false property bool userPressed: false
@ -242,23 +232,6 @@ Item {
onPressed: internal.pressButton(); onPressed: internal.pressButton();
onReleased: internal.releaseButton(); onReleased: internal.releaseButton();
onEntered: {
if (!flat) {
shadow.state = "hover"
}
}
onExited: {
if (!flat) {
if (button.activeFocus) {
shadow.state = "focus"
} else if (checked) {
shadow.state = "hidden"
} else {
shadow.state = "shadow"
}
}
}
} }
} }