Added support of focus handle to sections of settings.
This commit is contained in:
parent
a4f5e3f411
commit
de3b30ed7d
|
@ -101,6 +101,10 @@ void Widget::showFinished() {
|
||||||
_inner->showFinished();
|
_inner->showFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::setInnerFocus() {
|
||||||
|
_inner->setInnerFocus();
|
||||||
|
}
|
||||||
|
|
||||||
rpl::producer<bool> Widget::desiredShadowVisibility() const {
|
rpl::producer<bool> Widget::desiredShadowVisibility() const {
|
||||||
return (_type == ::Settings::Main::Id()
|
return (_type == ::Settings::Main::Id()
|
||||||
|| _type == ::Settings::Information::Id())
|
|| _type == ::Settings::Information::Id())
|
||||||
|
|
|
@ -66,6 +66,7 @@ public:
|
||||||
void saveChanges(FnMut<void()> done) override;
|
void saveChanges(FnMut<void()> done) override;
|
||||||
|
|
||||||
void showFinished() override;
|
void showFinished() override;
|
||||||
|
void setInnerFocus() override;
|
||||||
|
|
||||||
rpl::producer<bool> desiredShadowVisibility() const override;
|
rpl::producer<bool> desiredShadowVisibility() const override;
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,8 @@ public:
|
||||||
}
|
}
|
||||||
virtual void showFinished() {
|
virtual void showFinished() {
|
||||||
}
|
}
|
||||||
|
virtual void setInnerFocus() {
|
||||||
|
}
|
||||||
[[nodiscard]] virtual QPointer<Ui::RpWidget> createPinnedToTop(
|
[[nodiscard]] virtual QPointer<Ui::RpWidget> createPinnedToTop(
|
||||||
not_null<QWidget*> parent) {
|
not_null<QWidget*> parent) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in New Issue