Skip to content

Commit

Permalink
Make delegates children of views.
Browse files Browse the repository at this point in the history
This destroys the delegates automatically together with the views.

Patch by Markevych Alexander.
  • Loading branch information
weidendo committed Jul 23, 2014
1 parent d1d1041 commit 2c18be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libviews/instritem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ void InstrItem::setJumpArray(const QVector<TraceInstrJump*>& a)
//

InstrItemDelegate::InstrItemDelegate(InstrView *parent)
: QItemDelegate(parent)
{
_parent = parent;
}
Expand Down
1 change: 1 addition & 0 deletions libviews/sourceitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ void SourceItem::setJumpArray(const QVector<TraceLineJump*>& a)
//

SourceItemDelegate::SourceItemDelegate(SourceView *parent)
: QItemDelegate(parent)
{
_parent = parent;
}
Expand Down

0 comments on commit 2c18be2

Please sign in to comment.