summaryrefslogtreecommitdiff
path: root/dgedit/samplesorter.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-09 12:04:49 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-09 12:04:49 +0200
commit14041f774fc25ea1372587c344c42cdc57172155 (patch)
treec953eb1b7e0b5ef771950665de02c44c42ab8206 /dgedit/samplesorter.h
parenta4d73c0cb2321bd61bd31d2922ae469389e5825e (diff)
Click sorted samples hilight the corresponding canvas selection.
Diffstat (limited to 'dgedit/samplesorter.h')
-rw-r--r--dgedit/samplesorter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dgedit/samplesorter.h b/dgedit/samplesorter.h
index f277ff1..7b214e7 100644
--- a/dgedit/samplesorter.h
+++ b/dgedit/samplesorter.h
@@ -61,7 +61,12 @@ protected:
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
+signals:
+ void activeSelectionChanged(Selection selection);
+
private:
+ Selection *getSelectionByCoordinate(int x, int y);
+
Selections _selections;
QMap<float, Selection> sorted;
float min;