mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
use CANVAS_DEBUG_NAME instead of explicit #ifdef to set canvas item name
This commit is contained in:
parent
37de3e2f67
commit
72517680cc
1 changed files with 5 additions and 8 deletions
|
|
@ -19,7 +19,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "evoral/Note.hpp"
|
#include "evoral/Note.hpp"
|
||||||
|
|
||||||
#include "canvas/rectangle.h"
|
#include "canvas/rectangle.h"
|
||||||
|
#include "canvas/debug.h"
|
||||||
|
|
||||||
#include "note.h"
|
#include "note.h"
|
||||||
#include "midi_region_view.h"
|
#include "midi_region_view.h"
|
||||||
#include "public_editor.h"
|
#include "public_editor.h"
|
||||||
|
|
@ -28,17 +31,11 @@ using namespace ARDOUR;
|
||||||
using namespace ArdourCanvas;
|
using namespace ArdourCanvas;
|
||||||
|
|
||||||
Note::Note (
|
Note::Note (
|
||||||
MidiRegionView& region,
|
MidiRegionView& region, Group* group, const boost::shared_ptr<NoteType> note, bool with_events)
|
||||||
Group* group,
|
|
||||||
const boost::shared_ptr<NoteType> note,
|
|
||||||
bool with_events
|
|
||||||
)
|
|
||||||
: NoteBase (region, with_events, note)
|
: NoteBase (region, with_events, note)
|
||||||
, _rectangle (new ArdourCanvas::Rectangle (group))
|
, _rectangle (new ArdourCanvas::Rectangle (group))
|
||||||
{
|
{
|
||||||
#ifdef CANVAS_DEBUG
|
CANVAS_DEBUG_NAME (_rectangle, "note");
|
||||||
_rectangle->name = "note";
|
|
||||||
#endif
|
|
||||||
set_item (_rectangle);
|
set_item (_rectangle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue