inherit QtQuickControlStyle, use internal ScrollViewStyle

This commit is contained in:
Marco Martin 2014-08-18 11:18:08 +02:00
parent 428e4736b6
commit 21e47e6ab8

View File

@ -27,10 +27,13 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
import "../private" as Private
/*It inherits the local ScrollViewStyle, not the one from qtcontrols*/
ScrollViewStyle {
QtQuickControlStyle.TextAreaStyle {
id: style
ScrollViewStyle {
id: svs
}
readonly property TextArea control: __control
property font font: theme.defaultFont
@ -62,6 +65,12 @@ ScrollViewStyle {
style.padding.bottom = base.margins.bottom
}
}
scrollBarBackground: svs.scrollBarBackground
handle: svs.handle
incrementControl: svs.incrementControl
decrementControl: svs.decrementControl
property Component cursorHandle
property Component selectionHandle
}