From d8421e7138f1555638d1d0064f01edeb8fcdf9f1 Mon Sep 17 00:00:00 2001 From: Aider AI Agent Date: Sun, 11 Oct 2026 17:56:21 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20Verhindere=20st=C3=A4ndiges=20L?= =?UTF-8?q?=C3=B6schen=20und=20Neuerstellen=20von=20QGraphicsLineItem=20du?= =?UTF-8?q?rch=20direktes=20Verschieben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: aider (ollama/qwen2.5-coder:14b) --- main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.py b/main.py index c2c2efa..9e24985 100644 --- a/main.py +++ b/main.py @@ -135,10 +135,7 @@ class MainWindow(QMainWindow): def move_playhead(self): self.current_x += 1 if self.current_x < self.timeline_length: - self.scene.removeItem(self.playhead) - self.playhead = QGraphicsLineItem(self.current_x, -5, self.current_x, 5) - self.playhead.setPen(QPen(Qt.GlobalColor.red, 2)) - self.scene.addItem(self.playhead) + self.playhead.setX(self.current_x) else: self.pause()