|
|
@ -86,6 +86,7 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent) |
|
|
|
setRootIsDecorated(false); |
|
|
|
setRootIsDecorated(false); |
|
|
|
setItemsExpandable(false); |
|
|
|
setItemsExpandable(false); |
|
|
|
setAllColumnsShowFocus(true); |
|
|
|
setAllColumnsShowFocus(true); |
|
|
|
|
|
|
|
setEditTriggers(QAbstractItemView::NoEditTriggers); |
|
|
|
setSelectionMode(QAbstractItemView::ExtendedSelection); |
|
|
|
setSelectionMode(QAbstractItemView::ExtendedSelection); |
|
|
|
header()->setStretchLastSection(false); |
|
|
|
header()->setStretchLastSection(false); |
|
|
|
// List Model
|
|
|
|
// List Model
|
|
|
@ -390,7 +391,7 @@ void PeerListWidget::updatePeer(const BitTorrent::TorrentHandle *torrent, const |
|
|
|
{ |
|
|
|
{ |
|
|
|
const QMap<int, QVariant> data = |
|
|
|
const QMap<int, QVariant> data = |
|
|
|
{ |
|
|
|
{ |
|
|
|
{Qt::DisplayRole, displayData}, |
|
|
|
{Qt::DisplayRole, displayData}, |
|
|
|
{PeerListSortModel::UnderlyingDataRole, underlyingData}, |
|
|
|
{PeerListSortModel::UnderlyingDataRole, underlyingData}, |
|
|
|
{Qt::TextAlignmentRole, QVariant {textAlignmentData}}, |
|
|
|
{Qt::TextAlignmentRole, QVariant {textAlignmentData}}, |
|
|
|
{Qt::ToolTipRole, toolTip} |
|
|
|
{Qt::ToolTipRole, toolTip} |
|
|
|