Allow setting minimum cols/rows for terminal widget

This commit is contained in:
Alex Spataru 2024-11-11 12:13:02 -05:00
parent 121833f66e
commit b1c1776bc3
2 changed files with 10 additions and 2 deletions

View File

@ -139,6 +139,8 @@ Window {
Dashboard.Terminal {
id: terminal
minimumRows: 5
minimumColumns: 80
anchors.margins: 8
anchors.fill: parent
}

View File

@ -41,6 +41,12 @@ Item {
root.forceActiveFocus()
}
//
// Custom properties
//
property int minimumRows: 24
property int minimumColumns: 80
//
// Save settings
//
@ -184,8 +190,8 @@ Item {
vt100emulation: true
Layout.fillWidth: true
Layout.fillHeight: true
Layout.minimumWidth: terminal.charWidth * 80
Layout.minimumHeight: terminal.charHeight * 24
Layout.minimumHeight: terminal.charHeight * root.minimumRows
Layout.minimumWidth: terminal.charWidth * root.minimumColumns
Rectangle {
border.width: 1