From a23067c1811576654bc8482748c8b1e3c6247dc2 Mon Sep 17 00:00:00 2001 From: ccolin Date: Sat, 2 Jan 2021 01:51:52 +0100 Subject: add clicking to a collision to seek to it --- src/settings_pane.hh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/settings_pane.hh') diff --git a/src/settings_pane.hh b/src/settings_pane.hh index 434f3f7..25cdf6f 100644 --- a/src/settings_pane.hh +++ b/src/settings_pane.hh @@ -5,6 +5,18 @@ #include +class CollisionItem : public QListWidgetItem { + const int frame; + +public: + CollisionItem(QString text, int frame) + :QListWidgetItem(text), + frame(frame) {} + + int getFrame() const { return frame; } +}; + + class SettingsPane : public QWidget { Q_OBJECT @@ -21,6 +33,7 @@ signals: void sphereRadiusChanged(double sqRadius); void toggledTrajectories(int shown); void toggledSupportLines(int shown); + void collisionClicked(int frame); }; -- cgit v1.2.3-70-g09d2