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