macro_recorder: emit changed more accurately
parent
4a4f0da684
commit
2f7d15af25
|
|
@ -57,6 +57,7 @@ class MacroTab(QVBoxLayout):
|
||||||
line.changed.connect(self.on_change)
|
line.changed.connect(self.on_change)
|
||||||
self.lines.append(line)
|
self.lines.append(line)
|
||||||
line.insert(self.container.rowCount())
|
line.insert(self.container.rowCount())
|
||||||
|
self.changed.emit()
|
||||||
|
|
||||||
def on_add(self):
|
def on_add(self):
|
||||||
self.add_action(ActionText(self.container))
|
self.add_action(ActionText(self.container))
|
||||||
|
|
@ -71,6 +72,7 @@ class MacroTab(QVBoxLayout):
|
||||||
line.remove()
|
line.remove()
|
||||||
for x, line in enumerate(self.lines):
|
for x, line in enumerate(self.lines):
|
||||||
line.insert(x)
|
line.insert(x)
|
||||||
|
self.changed.emit()
|
||||||
|
|
||||||
def on_move(self, obj, offset):
|
def on_move(self, obj, offset):
|
||||||
if offset == 0:
|
if offset == 0:
|
||||||
|
|
@ -84,6 +86,7 @@ class MacroTab(QVBoxLayout):
|
||||||
self.lines[index], self.lines[other] = self.lines[other], self.lines[index]
|
self.lines[index], self.lines[other] = self.lines[other], self.lines[index]
|
||||||
self.lines[index].insert(index)
|
self.lines[index].insert(index)
|
||||||
self.lines[other].insert(other)
|
self.lines[other].insert(other)
|
||||||
|
self.changed.emit()
|
||||||
|
|
||||||
def serialize(self):
|
def serialize(self):
|
||||||
out = b""
|
out = b""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue