@@ -118,7 +118,7 @@ const App = () => {
118118 [ QMainWindowEvents . KeyRelease ] : onKeyRelease
119119 } }
120120 maxSize = { { width : 500 , height : 700 } }
121- minSize = { { width : 200 , height : 300 } }
121+ minSize = { { width : 300 , height : 400 } }
122122 styleSheet = { styleSheet }
123123 >
124124 < View on = { { [ QWidgetEvents . KeyRelease ] : onKeyRelease } } id = "container" >
@@ -225,31 +225,27 @@ const App = () => {
225225 ) ;
226226} ;
227227
228- // const win = new QMainWindow();
229- // win.resize(230, 300);
230228const styleSheet = `
231229 #container {
232- qproperty-flex: 1;
233- qproperty-flexDirection: column;
234- qproperty-minHeight: '100%';
235- background: blue;
230+ flex: 1;
231+ flex-direction: column;
232+ min-height: '100%';
236233 }
237234 #row, #row0, #row1 {
238- qproperty- flex: 1;
239- qproperty-alignItems : stretch;
240- qproperty-justifyContent : space-between;
241- qproperty-flexDirection : row;
235+ flex: 1;
236+ align-items : stretch;
237+ justify-content : space-between;
238+ flex-direction : row;
242239 background: #4B4B4B;
243240 }
244241 #row0 {
245242 background: #1E1E1E;
246243 }
247244 #row1 {
248- background: #2E2E2E;
245+ background: #2E2E2E;
249246 }
250247 #valueBtn, #opBtn, #opBtnY {
251- qproperty-minWidth: '25%';
252- qproperty-border: 1;
248+ min-width: '25%';
253249 border: 1px solid black;
254250 font-size: 20px;
255251 color: white;
@@ -262,11 +258,9 @@ const styleSheet = `
262258 }
263259 #result {
264260 qproperty-alignment: 'AlignRight|AlignVCenter';
265- padding-right: 5px;
266- padding-left:5px;
267- qproperty-paddingHorizontal: 5px;
261+ padding-horizontal: 5px;
268262 font-size: 40px;
269- qproperty- flex: 1;
263+ flex: 1;
270264 color: white;
271265 }
272266` ;
0 commit comments