Skip to content

Commit 0950e92

Browse files
committed
Update gen_widgets.py
1 parent 898c05d commit 0950e92

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎scripts/pyqt/gen_widgets.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,14 @@ def cast_h_to_sip(filename):
558558
"class ElaActionCommand : public QObject",
559559
"class ElaActionCommand : public QObject /Abstract/",
560560
)
561+
final_output = final_output.replace(
562+
"virtual void undo() ;",
563+
"virtual void undo() = 0;",
564+
)
565+
final_output = final_output.replace(
566+
"virtual void redo() ;",
567+
"virtual void redo() = 0;",
568+
)
561569
with open(output_sip_file, "w", encoding="utf-8") as f:
562570
f.write(final_output)
563571

0 commit comments

Comments
 (0)