mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
commit
fd200ac31d
@ -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}
|
||||||
|
@ -69,7 +69,7 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
|
|||||||
unused.setVerticalHeader(new QHeaderView(Qt::Horizontal));
|
unused.setVerticalHeader(new QHeaderView(Qt::Horizontal));
|
||||||
|
|
||||||
loadSettings();
|
loadSettings();
|
||||||
m_ui->resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
|
||||||
header()->setStretchLastSection(false);
|
header()->setStretchLastSection(false);
|
||||||
|
|
||||||
// Set Search results list model
|
// Set Search results list model
|
||||||
@ -93,9 +93,11 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
|
|||||||
m_ui->resultsBrowser->hideColumn(SearchSortModel::DL_LINK); // Hide url column
|
m_ui->resultsBrowser->hideColumn(SearchSortModel::DL_LINK); // Hide url column
|
||||||
m_ui->resultsBrowser->hideColumn(SearchSortModel::DESC_LINK);
|
m_ui->resultsBrowser->hideColumn(SearchSortModel::DESC_LINK);
|
||||||
|
|
||||||
|
m_ui->resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
m_ui->resultsBrowser->setRootIsDecorated(false);
|
m_ui->resultsBrowser->setRootIsDecorated(false);
|
||||||
m_ui->resultsBrowser->setAllColumnsShowFocus(true);
|
m_ui->resultsBrowser->setAllColumnsShowFocus(true);
|
||||||
m_ui->resultsBrowser->setSortingEnabled(true);
|
m_ui->resultsBrowser->setSortingEnabled(true);
|
||||||
|
m_ui->resultsBrowser->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
|
|
||||||
// Ensure that at least one column is visible at all times
|
// Ensure that at least one column is visible at all times
|
||||||
bool atLeastOne = false;
|
bool atLeastOne = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user