summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-11-24 19:11:52 +0100
committerTreeki <treeki@gmail.com>2011-11-24 19:11:52 +0100
commitca47b4f50e796e6773b55d16f19b73766e8ba978 (patch)
tree592844879d3002f31ac932812982467f8724699f /src
parent9e02901d490fdb9df62db612390a7499444eac0c (diff)
downloadkoopatlas-ca47b4f50e796e6773b55d16f19b73766e8ba978.tar.gz
koopatlas-ca47b4f50e796e6773b55d16f19b73766e8ba978.zip
fixed the tbaleview
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)