InternetView::InternetView(QWidget *parent) : AutoExpandingTreeView(parent) { setItemDelegate(new LibraryItemDelegate(this)); SetExpandOnReset(false); setAttribute(Qt::WA_MacShowFocusRect, false); }
DeviceView::DeviceView(QWidget* parent) : AutoExpandingTreeView(parent), app_(NULL), merged_model_(NULL), sort_model_(NULL), properties_dialog_(new DeviceProperties), device_menu_(NULL), library_menu_(NULL) { setItemDelegate(new DeviceItemDelegate(this)); SetExpandOnReset(false); setAttribute(Qt::WA_MacShowFocusRect, false); setHeaderHidden(true); setAllColumnsShowFocus(true); setDragEnabled(true); setDragDropMode(QAbstractItemView::DragOnly); setSelectionMode(QAbstractItemView::ExtendedSelection); }