mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 15:12:28 +00:00 
			
		
		
		
	Save window size
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user