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();
|
||||
}
|
||||
|
||||
void Widget::setInnerFocus() {
|
||||
_inner->setInnerFocus();
|
||||
}
|
||||
|
||||
rpl::producer<bool> Widget::desiredShadowVisibility() const {
|
||||
return (_type == ::Settings::Main::Id()
|
||||
|| _type == ::Settings::Information::Id())
|
||||
|
|
|
@ -66,6 +66,7 @@ public:
|
|||
void saveChanges(FnMut<void()> done) override;
|
||||
|
||||
void showFinished() override;
|
||||
void setInnerFocus() override;
|
||||
|
||||
rpl::producer<bool> desiredShadowVisibility() const override;
|
||||
|
||||
|
|
|
@ -84,6 +84,8 @@ public:
|
|||
}
|
||||
virtual void showFinished() {
|
||||
}
|
||||
virtual void setInnerFocus() {
|
||||
}
|
||||
[[nodiscard]] virtual QPointer<Ui::RpWidget> createPinnedToTop(
|
||||
not_null<QWidget*> parent) {
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in New Issue