mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Allow other keypresses in LogListWidget
By not emitting the native signal, all other keypresses other than the copy and select keysequences are ignored. This should reallow keyboard navigation within LogListWidget objects. Closes #12172.
This commit is contained in:
@@ -72,8 +72,8 @@ void LogListWidget::keyPressEvent(QKeyEvent *event)
|
|||||||
{
|
{
|
||||||
if (event->matches(QKeySequence::Copy))
|
if (event->matches(QKeySequence::Copy))
|
||||||
copySelection();
|
copySelection();
|
||||||
else if (event->matches(QKeySequence::SelectAll))
|
else
|
||||||
selectAll();
|
QListWidget::keyPressEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogListWidget::appendLine(const QString &line, const Log::MsgType &type)
|
void LogListWidget::appendLine(const QString &line, const Log::MsgType &type)
|
||||||
|
|||||||
Reference in New Issue
Block a user