refactor: Playhead nach Waveform hinzufügen
Co-authored-by: aider (ollama/qwen2.5-coder:14b) <aider@aider.chat>
This commit is contained in:
1 parent
789fed400c
commit
f12db080c5
1 file changed
+1
-1
@@ -68,7 +68,6 @@ class MainWindow(QMainWindow):
|
||||
self.current_x = 0.0
|
||||
self.playhead = QGraphicsLineItem(0, -20, 0, 20)
|
||||
self.playhead.setPen(QPen(Qt.GlobalColor.red, 2))
|
||||
self.scene.addItem(self.playhead)
|
||||
|
||||
self.timer = QTimer(self)
|
||||
self.timer.timeout.connect(self.move_playhead)
|
||||
@@ -95,6 +94,7 @@ class MainWindow(QMainWindow):
|
||||
self.current_x = 0.0
|
||||
self.playhead.setX(self.current_x)
|
||||
self.draw_waveform()
|
||||
self.scene.addItem(self.playhead) # Playhead nach der Waveform hinzufügen
|
||||
except Exception as e:
|
||||
print(f"Fehler beim Laden der WAV-Datei: {e}")
|
||||
self.audio_data = None
|
||||
|
||||
Reference in new issue
Block a user