mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-21 04:19:00 +00:00
Heavily reduced idle cpu consumption.
This commit is contained in:
parent
9c83b1d654
commit
34f61cd86a
@ -37,6 +37,8 @@ Item{
|
||||
}
|
||||
}
|
||||
|
||||
onUpdatedImage: {blurredSource.live = true;livetimer.restart();}
|
||||
|
||||
Component.onCompleted: {
|
||||
font.pointSize = shadersettings.fontSize;
|
||||
font.family = shadersettings.font.name;
|
||||
@ -58,6 +60,12 @@ Item{
|
||||
sourceItem: blurredterminal
|
||||
recursive: true
|
||||
live: true
|
||||
|
||||
Timer{
|
||||
id: livetimer
|
||||
running: true
|
||||
onTriggered: parent.live = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 3.0.1, 2014-03-27T13:16:23. -->
|
||||
<!-- Written by QtCreator 3.0.1, 2014-03-30T17:53:23. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
|
@ -121,10 +121,6 @@ ApplicationWindow{
|
||||
GradientStop{position: 0.7; color: "#00000000"}
|
||||
}
|
||||
}
|
||||
|
||||
Terminal{
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
|
||||
ShaderSettings{
|
||||
|
@ -903,6 +903,8 @@ void KTerminalDisplay::updateImage()
|
||||
delete[] dirtyMask;
|
||||
delete[] disstrU;
|
||||
|
||||
//Notify changes to qml
|
||||
emit updatedImage();
|
||||
}
|
||||
|
||||
void KTerminalDisplay::setBlinkingCursor(bool blink)
|
||||
|
@ -404,6 +404,7 @@ signals:
|
||||
void changedAutoVKB(bool au);
|
||||
void changedAutoFocus(bool au);
|
||||
|
||||
void updatedImage();
|
||||
void clicked();
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -110,6 +110,7 @@ Module {
|
||||
name: "changedSession"
|
||||
Parameter { name: "session"; type: "KSession"; isPointer: true }
|
||||
}
|
||||
Signal { name: "updatedImage" }
|
||||
Method { name: "forcedFocus" }
|
||||
Method {
|
||||
name: "setColorScheme"
|
||||
|
Loading…
x
Reference in New Issue
Block a user