Added scrollbar.

This commit is contained in:
Filippo Scognamiglio 2014-11-12 23:14:48 +01:00
parent 28bb2e2adf
commit b3a4b7158e
3 changed files with 16 additions and 3 deletions

View File

@ -87,7 +87,7 @@ Item{
property int rasterization: no_rasterization
property int scanline_quality: 3
property int scanline_quality: 2
onScanline_qualityChanged: handleFontChanged();
ListModel{

View File

@ -104,6 +104,7 @@ Item{
colorScheme: "cool-retro-term"
smooth: false
enableBold: false
session: QMLTermSession {
id: ksession
@ -113,8 +114,20 @@ Item{
}
}
QMLTermScrollbar {
terminal: kterminal
anchors.margins: width * 0.5
width: terminal.fontMetrics.width * 0.75
Rectangle {
anchors.fill: parent
color: "white"
radius: width * 0.25
opacity: 0.7
}
onOpacityChanged: restartBlurredSource();
}
FontLoader{ id: fontLoader }
Text{id: fontMetrics; text: "B"; visible: false}
function handleFontChange(fontSource, pixelSize, lineSpacing, screenScaling){
fontLoader.source = fontSource;

@ -1 +1 @@
Subproject commit deed80c2d3a747c8094f734a6aff06f56f97f42b
Subproject commit 8389dd078b8acc37a1a7da07c9845942afbdc1f5