Looks like we get a crash on double-click if these properties are not set...

This commit is contained in:
craig
2012-02-23 20:57:18 +00:00
parent 125d47e6bc
commit c4a62d3a30

View File

@@ -90,7 +90,7 @@ public:
}
QApplication::style()->drawPrimitive(QStyle::PE_PanelItemViewItem, &option, painter, 0L);
Type type=getType(index);
// Type type=getType(index);
}
};
@@ -106,6 +106,9 @@ PlayQueueView::PlayQueueView(QWidget *parent)
setDragDropOverwriteMode(false);
setDragDropMode(QAbstractItemView::DragDrop);
setSelectionMode(QAbstractItemView::ExtendedSelection);
setIndentation(0);
setItemsExpandable(false);
setExpandsOnDoubleClick(false);
setGrouped(false);
}