mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Move some connect() from propertieswidget to their corresponding widget
This commit is contained in:
parent
6b4455e13d
commit
586e1a0830
3 changed files with 7 additions and 7 deletions
|
@ -130,6 +130,9 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent)
|
|||
header()->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
connect(header(), &QWidget::customContextMenuRequested, this, &PeerListWidget::displayToggleColumnsMenu);
|
||||
connect(header(), &QHeaderView::sectionClicked, this, &PeerListWidget::handleSortColumnChanged);
|
||||
connect(header(), &QHeaderView::sectionMoved, this, &PeerListWidget::saveSettings);
|
||||
connect(header(), &QHeaderView::sectionResized, this, &PeerListWidget::saveSettings);
|
||||
connect(header(), &QHeaderView::sortIndicatorChanged, this, &PeerListWidget::saveSettings);
|
||||
handleSortColumnChanged(header()->sortIndicatorSection());
|
||||
m_copyHotkey = new QShortcut(QKeySequence::Copy, this, nullptr, nullptr, Qt::WidgetShortcut);
|
||||
connect(m_copyHotkey, &QShortcut::activated, this, &PeerListWidget::copySelectedPeers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue