Skip to content

Commit 18f74cb

Browse files
authored
Inspector: Changing QSize/QSizeF should now work properly
1 parent 5698a63 commit 18f74cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugindevtools/PluginDevTools/PluginDevToolsDocker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,10 +1231,10 @@ def commitUpdateLayout(self):
12311231
attrValue = QPointF(*params)
12321232
elif attrType == 'QSize':
12331233
params = tuple( map(int, (attrValue.split('QSize('))[1].replace(")","").split(",") ) )
1234-
attrValue = QPoint(*params)
1234+
attrValue = QSize(*params)
12351235
elif attrType == 'QSizeF':
12361236
params = tuple( map(float, (attrValue.split('QSizeF('))[1].replace(")","").split(",") ) )
1237-
attrValue = QPointF(*params)
1237+
attrValue = QSizeF(*params)
12381238

12391239

12401240
if hasattr(self.currentWidget,attrName):

0 commit comments

Comments
 (0)