diff options
author | ccolin | 2021-01-02 01:51:52 +0100 |
---|---|---|
committer | ccolin | 2021-01-02 01:51:52 +0100 |
commit | a23067c1811576654bc8482748c8b1e3c6247dc2 (patch) | |
tree | 6ce0c0860a7711d49c6ef1cee00733ca24a5b1e3 /src/settings_pane.hh | |
parent | bb0da810d945d98b25390c65ab3f34e695914fd6 (diff) |
add clicking to a collision to seek to it
Diffstat (limited to 'src/settings_pane.hh')
-rw-r--r-- | src/settings_pane.hh | 13 |
1 files changed, 13 insertions, 0 deletions
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 <QListWidget> +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); }; |