mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Fix screen reader accessibility in torrent list
PR #23359. Closes #20393.
This commit is contained in:
committed by
Vladimir Golovnev (Glassez)
parent
571094cc9c
commit
ba7c7e283e
@@ -1285,9 +1285,16 @@ void TransferListWidget::displayListMenu()
|
|||||||
listMenu->popup(QCursor::pos());
|
listMenu->popup(QCursor::pos());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferListWidget::currentChanged(const QModelIndex ¤t, const QModelIndex&)
|
void TransferListWidget::currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
|
||||||
{
|
{
|
||||||
qDebug("CURRENT CHANGED");
|
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;
|
BitTorrent::Torrent *torrent = nullptr;
|
||||||
if (current.isValid())
|
if (current.isValid())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ private slots:
|
|||||||
void torrentDoubleClicked();
|
void torrentDoubleClicked();
|
||||||
void displayListMenu();
|
void displayListMenu();
|
||||||
void displayColumnHeaderMenu();
|
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 setSelectedTorrentsSuperSeeding(bool enabled) const;
|
||||||
void setSelectedTorrentsSequentialDownload(bool enabled) const;
|
void setSelectedTorrentsSequentialDownload(bool enabled) const;
|
||||||
void setSelectedFirstLastPiecePrio(bool enabled) const;
|
void setSelectedFirstLastPiecePrio(bool enabled) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user