mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-31 02:01:19 +00:00
Save window size
This commit is contained in:
parent
69d35a749f
commit
6e54a96730
@ -21,6 +21,7 @@
|
||||
import QtQuick 2.2
|
||||
import QtQuick.Window 2.1
|
||||
import QtQuick.Controls 1.1
|
||||
import Qt.labs.settings 1.0
|
||||
import QtGraphicalEffects 1.0
|
||||
|
||||
ApplicationWindow{
|
||||
@ -36,6 +37,13 @@ ApplicationWindow{
|
||||
property bool fullscreen: appSettings.fullscreen
|
||||
onFullscreenChanged: visibility = (fullscreen ? Window.FullScreen : Window.Windowed)
|
||||
|
||||
// Save window size automatically
|
||||
Settings {
|
||||
category: "MainWindow"
|
||||
property alias width: terminalWindow.width
|
||||
property alias height: terminalWindow.height
|
||||
}
|
||||
|
||||
//Workaround: Without __contentItem a ugly thin border is visible.
|
||||
menuBar: CRTMainMenuBar{
|
||||
id: mainMenu
|
||||
|
Loading…
x
Reference in New Issue
Block a user