summaryrefslogtreecommitdiff
path: root/src/editorui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/editorui/doodads.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/editorui/doodads.py b/src/editorui/doodads.py
index addfae3..93bfe43 100644
--- a/src/editorui/doodads.py
+++ b/src/editorui/doodads.py
@@ -116,11 +116,11 @@ class KPEditorDoodad(KPEditorItem):
self.model.setHorizontalHeaderLabels(["Looping", "Interpolation", "Frame Length", "Type", "Start Value", "End Value"])
self.anmTable.setColumnWidth(0, 80)
- self.anmTable.setColumnWidth(0, 80)
- self.anmTable.setColumnWidth(0, 30)
- self.anmTable.setColumnWidth(0, 80)
- self.anmTable.setColumnWidth(0, 30)
- self.anmTable.setColumnWidth(0, 30)
+ self.anmTable.setColumnWidth(1, 80)
+ self.anmTable.setColumnWidth(2, 80)
+ self.anmTable.setColumnWidth(3, 80)
+ self.anmTable.setColumnWidth(4, 80)
+ self.anmTable.setColumnWidth(5, 80)
self.anmTable.horizontalHeader().setVisible(True)
self.anmTable.verticalHeader().setVisible(False)
@@ -144,7 +144,7 @@ class KPEditorDoodad(KPEditorItem):
def sizeHint(self):
- return QtCore.QSize(8000, 10000)
+ return QtCore.QSize(500,300)
@@ -182,11 +182,11 @@ class KPEditorDoodad(KPEditorItem):
self.setText("Animate")
self.menu = QtGui.QMenu(self)
- layout = QtGui.QVBoxLayout()
self.menuWidget = self.AnmOptionsWidget(doodadRef)
- layout.addWidget(self.menuWidget)
+ self.menuWidgetAction = QtGui.QWidgetAction(self)
+ self.menuWidgetAction.setDefaultWidget(self.menuWidget)
+ self.menu.addAction(self.menuWidgetAction)
- self.menu.setLayout(layout)
menuPalette = self.menu.palette()
menuPalette.setColor(QtGui.QPalette.Window, Qt.black)