From ca47b4f50e796e6773b55d16f19b73766e8ba978 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 24 Nov 2011 19:11:52 +0100 Subject: fixed the tbaleview --- src/editorui/doodads.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/editorui') 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) -- cgit v1.2.3