mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Allow setting minimum cols/rows for terminal widget
This commit is contained in:
parent
121833f66e
commit
b1c1776bc3
@ -139,6 +139,8 @@ Window {
|
||||
|
||||
Dashboard.Terminal {
|
||||
id: terminal
|
||||
minimumRows: 5
|
||||
minimumColumns: 80
|
||||
anchors.margins: 8
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user