mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Scenario: Minor fixes.
This commit is contained in:
1 parent
b8ed3d8954
commit
267f30849f
2 files changed
+2
-1
No files matched your search
@@ -176,7 +176,7 @@ class Scenario(SQLSubModel):
|
|||||||
"scenario(id, x, y, name, description, revision, parent_id) " +
|
"scenario(id, x, y, name, description, revision, parent_id) " +
|
||||||
"VALUES (" +
|
"VALUES (" +
|
||||||
f"{self._id}, " +
|
f"{self._id}, " +
|
||||||
f"{self.x}, {self.y} " +
|
f"{self.x}, {self.y}, " +
|
||||||
f"'{self._db_format(self.name)}', " +
|
f"'{self._db_format(self.name)}', " +
|
||||||
f"'{self._db_format(self.description)}', " +
|
f"'{self._db_format(self.description)}', " +
|
||||||
f"{self._revision}, " +
|
f"{self._revision}, " +
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ class ScenarioItem(QGraphicsTextItem):
|
|||||||
self.graph.edges_display_update()
|
self.graph.edges_display_update()
|
||||||
return super(ScenarioItem, self).itemChange(change, value)
|
return super(ScenarioItem, self).itemChange(change, value)
|
||||||
|
|
||||||
|
|
||||||
class EdgeItem(QGraphicsItem):
|
class EdgeItem(QGraphicsItem):
|
||||||
Type = QGraphicsItem.UserType + 11
|
Type = QGraphicsItem.UserType + 11
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user