mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 03:06:37 +03:00
Merge pull request #17829 from Chocobo1/focus
Set proper focus on widget
This commit is contained in:
commit
ce7d8dee28
2 changed files with 5 additions and 0 deletions
1
.github/workflows/coverity-scan.yml
vendored
1
.github/workflows/coverity-scan.yml
vendored
|
@ -60,6 +60,7 @@ jobs:
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DGUI=ON \
|
-DGUI=ON \
|
||||||
|
-DQT6=ON \
|
||||||
-DVERBOSE_CONFIGURE=ON
|
-DVERBOSE_CONFIGURE=ON
|
||||||
export PATH="$(pwd)/coverity_tool/bin:$PATH"
|
export PATH="$(pwd)/coverity_tool/bin:$PATH"
|
||||||
cov-build --dir cov-int cmake --build build
|
cov-build --dir cov-int cmake --build build
|
||||||
|
|
|
@ -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…
Reference in a new issue