diff options
author | - <nemo@alice.(none)> | 2013-05-09 17:54:53 +0200 |
---|---|---|
committer | - <nemo@alice.(none)> | 2013-05-09 17:54:53 +0200 |
commit | 0c9cfbada411dcc1fcc90306408fadfcf7e49988 (patch) | |
tree | f28ea5850f30c8a65df7405cefec54fa1e372164 /dgedit/canvastoolselections.cc | |
parent | 774815a97901fe9d5ce2767a8c479c52a5ad0ce8 (diff) | |
parent | 14041f774fc25ea1372587c344c42cdc57172155 (diff) |
Merge branch 'master' of http://git.drumgizmo.org/drumgizmo
Diffstat (limited to 'dgedit/canvastoolselections.cc')
-rw-r--r-- | dgedit/canvastoolselections.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dgedit/canvastoolselections.cc b/dgedit/canvastoolselections.cc index 5188cb0..5868b1f 100644 --- a/dgedit/canvastoolselections.cc +++ b/dgedit/canvastoolselections.cc @@ -53,6 +53,19 @@ CanvasToolSelections::CanvasToolSelections(Canvas *c) } +void CanvasToolSelections::setActiveSelection(Selection s) +{ + QMap<int, Selection>::iterator i = _selections.begin(); + while(i != _selections.end()) { + if(s.from == i.value().from && + s.to == i.value().to) active_selection = &i.value(); + i++; + } + + canvas->update(); + emit activeSelectionChanged(s); +} + bool CanvasToolSelections::mouseMoveEvent(QMouseEvent *event) { if(selection_is_moving_left) { |