mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Set proper focus on widget
And also allow keyboard tabbing to the Browse button.
Fix up 6ab35512da
.
This commit is contained in:
parent
3b0ac0962e
commit
855f727451
1 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,10 @@ FileSystemPathEdit::FileSystemPathEdit(Private::IFileEditorWithCompletion *edito
|
||||||
Q_D(FileSystemPathEdit);
|
Q_D(FileSystemPathEdit);
|
||||||
editor->widget()->setParent(this);
|
editor->widget()->setParent(this);
|
||||||
|
|
||||||
|
setFocusProxy(editor->widget());
|
||||||
|
// required, otherwise the button cannot be selected via keyboard tab
|
||||||
|
setTabOrder(editor->widget(), d_ptr->m_browseBtn);
|
||||||
|
|
||||||
auto *layout = new QHBoxLayout(this);
|
auto *layout = new QHBoxLayout(this);
|
||||||
layout->setContentsMargins(0, 0, 0, 0);
|
layout->setContentsMargins(0, 0, 0, 0);
|
||||||
layout->addWidget(editor->widget());
|
layout->addWidget(editor->widget());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue