Skip to content

Commit

Permalink
Omit setting selected flag to all item widget again
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Aug 27, 2017
1 parent 55ccce6 commit d1d8a8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/item/itemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ void ItemDelegate::setIndexWidget(const QModelIndex &index, ItemWidget *w)

void ItemDelegate::setWidgetSelected(QWidget *ww, bool selected)
{
if ( ww->property(propertySelectedItem).toBool() == selected )
return;

ww->setProperty(propertySelectedItem, selected);

QStyle *style = m_view->style();
Expand Down

0 comments on commit d1d8a8f

Please sign in to comment.