mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 07:17:52 -06:00
Set a sensible minimum width for the window
This commit is contained in:
parent
85942583b1
commit
e8743abe68
3 changed files with 10 additions and 0 deletions
|
@ -809,3 +809,7 @@ class CuraApplication(QtApplication):
|
||||||
|
|
||||||
def _addProfileWriter(self, profile_writer):
|
def _addProfileWriter(self, profile_writer):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@pyqtSlot("QSize")
|
||||||
|
def setMinimumWindowSize(self, size):
|
||||||
|
self.getMainWindow().setMinimumSize(size)
|
||||||
|
|
|
@ -17,6 +17,11 @@ UM.MainWindow
|
||||||
title: catalog.i18nc("@title:window","Cura");
|
title: catalog.i18nc("@title:window","Cura");
|
||||||
viewportRect: Qt.rect(0, 0, (base.width - sidebar.width) / base.width, 1.0)
|
viewportRect: Qt.rect(0, 0, (base.width - sidebar.width) / base.width, 1.0)
|
||||||
|
|
||||||
|
Component.onCompleted:
|
||||||
|
{
|
||||||
|
Printer.setMinimumWindowSize(UM.Theme.getSize("window_minimum_size"))
|
||||||
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: backgroundItem;
|
id: backgroundItem;
|
||||||
|
|
|
@ -157,6 +157,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"sizes": {
|
"sizes": {
|
||||||
|
"window_minimum_size": [70, 54],
|
||||||
"window_margin": [1.0, 1.0],
|
"window_margin": [1.0, 1.0],
|
||||||
"default_margin": [1.0, 1.0],
|
"default_margin": [1.0, 1.0],
|
||||||
"default_lining": [0.08, 0.08],
|
"default_lining": [0.08, 0.08],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue