1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-18 12:15:27 +00:00

small fixes in window loading

This commit is contained in:
Filippo Scognamiglio 2013-12-28 00:38:05 +01:00
parent ae66af1104
commit 6e9b7bc824
3 changed files with 5 additions and 4 deletions

View File

@ -23,8 +23,9 @@ Item{
property var fonts_list: fontlist
onFont_indexChanged: {
//Reload the window to avoid ugly glitches
terminalwindowloader.source = "";
currentfont.source = fontlist.get(font_index).source;
currentfont.pixelSize = fontlist.get(font_index).pixelSize;
terminalwindowloader.source = "TerminalWindow.qml";
}

View File

@ -204,6 +204,8 @@ ApplicationWindow{
//FIXME: Ugly forced clear terminal at the beginning
Component.onCompleted: {
terminal.screen.sendKey("l", 76, 67108864);
terminal.setTerminalHeight();
terminal.setTerminalWidth();
}
}

View File

@ -27,15 +27,13 @@
import QtQuick 2.1
import QtQuick.Window 2.0
import QtQuick.Controls 1.0
import QtGraphicalEffects 1.0
Item{
ShaderSettings{
id: shadersettings
Component.onCompleted: terminalwindowloader.source = "TerminalWindow.qml"
}
Loader{
id: terminalwindowloader
source: "TerminalWindow.qml"
}
}