inherit QtQuickControlStyle, use internal ScrollViewStyle
This commit is contained in:
parent
428e4736b6
commit
21e47e6ab8
@ -27,10 +27,13 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
|
|||||||
|
|
||||||
import "../private" as Private
|
import "../private" as Private
|
||||||
|
|
||||||
/*It inherits the local ScrollViewStyle, not the one from qtcontrols*/
|
QtQuickControlStyle.TextAreaStyle {
|
||||||
ScrollViewStyle {
|
|
||||||
id: style
|
id: style
|
||||||
|
|
||||||
|
ScrollViewStyle {
|
||||||
|
id: svs
|
||||||
|
}
|
||||||
|
|
||||||
readonly property TextArea control: __control
|
readonly property TextArea control: __control
|
||||||
|
|
||||||
property font font: theme.defaultFont
|
property font font: theme.defaultFont
|
||||||
@ -62,6 +65,12 @@ ScrollViewStyle {
|
|||||||
style.padding.bottom = base.margins.bottom
|
style.padding.bottom = base.margins.bottom
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scrollBarBackground: svs.scrollBarBackground
|
||||||
|
handle: svs.handle
|
||||||
|
incrementControl: svs.incrementControl
|
||||||
|
decrementControl: svs.decrementControl
|
||||||
|
|
||||||
property Component cursorHandle
|
property Component cursorHandle
|
||||||
property Component selectionHandle
|
property Component selectionHandle
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user