mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-10 00:46:48 -06:00
Fix screen reader accessibility in torrent list
PR #23359. Closes #20393.
This commit is contained in:
parent
d41012a285
commit
bb97817f35
@ -1306,9 +1306,16 @@ void TransferListWidget::displayListMenu()
|
||||
listMenu->popup(QCursor::pos());
|
||||
}
|
||||
|
||||
void TransferListWidget::currentChanged(const QModelIndex ¤t, const QModelIndex&)
|
||||
void TransferListWidget::currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
|
||||
{
|
||||
qDebug("CURRENT CHANGED");
|
||||
|
||||
// Call base class to ensure Qt's accessibility system is notified of focus changes.
|
||||
// This is critical for screen readers to announce the currently selected torrent.
|
||||
// Without this call, users relying on assistive technologies cannot effectively
|
||||
// navigate the torrent list with keyboard arrow keys.
|
||||
QTreeView::currentChanged(current, previous);
|
||||
|
||||
BitTorrent::Torrent *torrent = nullptr;
|
||||
if (current.isValid())
|
||||
{
|
||||
|
||||
@ -111,7 +111,7 @@ private slots:
|
||||
void torrentDoubleClicked();
|
||||
void displayListMenu();
|
||||
void displayColumnHeaderMenu();
|
||||
void currentChanged(const QModelIndex ¤t, const QModelIndex&) override;
|
||||
void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override;
|
||||
void setSelectedTorrentsSuperSeeding(bool enabled) const;
|
||||
void setSelectedTorrentsSequentialDownload(bool enabled) const;
|
||||
void setSelectedFirstLastPiecePrio(bool enabled) const;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user