commit b59eed3846613d1ade80df12932f497d03db1c4d Author: Stephan Witt <sw...@lyx.org> Date: Wed Oct 13 18:11:37 2021 +0200
#12368 correct spelling of toolbars visibility check function name --- src/frontends/qt/GuiToolbar.cpp | 6 +++--- src/frontends/qt/GuiToolbar.h | 2 +- src/frontends/qt/GuiView.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt/GuiToolbar.cpp b/src/frontends/qt/GuiToolbar.cpp index 351e826..bc2613d 100644 --- a/src/frontends/qt/GuiToolbar.cpp +++ b/src/frontends/qt/GuiToolbar.cpp @@ -626,7 +626,7 @@ void GuiToolbar::restoreSession() } -bool GuiToolbar::isVisibiltyOn() const +bool GuiToolbar::isVisibilityOn() const { return visibility_ & Toolbars::ON; } @@ -663,10 +663,10 @@ void GuiToolbar::setState(string const state) void GuiToolbar::toggle() { if (visibility_ & Toolbars::ALLOWAUTO) { - if (!(visibility_ & Toolbars::AUTO) && !isVisibiltyOn()) { + if (!(visibility_ & Toolbars::AUTO) && !isVisibilityOn()) { setState("auto"); } else { - if (isVisibiltyOn()) + if (isVisibilityOn()) setState("off"); else setState("on"); diff --git a/src/frontends/qt/GuiToolbar.h b/src/frontends/qt/GuiToolbar.h index cf269b6..f1cc13a 100644 --- a/src/frontends/qt/GuiToolbar.h +++ b/src/frontends/qt/GuiToolbar.h @@ -149,7 +149,7 @@ public: bool isRestored() const; /// - bool isVisibiltyOn() const; + bool isVisibilityOn() const; int visibility() const { return visibility_; } /// Refresh the contents of the bar. diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp index 6e433e1..767791f 100644 --- a/src/frontends/qt/GuiView.cpp +++ b/src/frontends/qt/GuiView.cpp @@ -1516,7 +1516,7 @@ bool GuiView::event(QEvent * e) menuBar()->hide(); if (lyxrc.full_screen_toolbars) { for (auto const & tb_p : d.toolbars_) - if (tb_p.second->isVisibiltyOn() && tb_p.second->isVisible()) + if (tb_p.second->isVisibilityOn() && tb_p.second->isVisible()) tb_p.second->hide(); } for (int i = 0; i != d.splitter_->count(); ++i) @@ -1537,7 +1537,7 @@ bool GuiView::event(QEvent * e) menuBar()->show(); if (lyxrc.full_screen_toolbars) { for (auto const & tb_p : d.toolbars_) - if (tb_p.second->isVisibiltyOn() && !tb_p.second->isVisible()) + if (tb_p.second->isVisibilityOn() && !tb_p.second->isVisible()) tb_p.second->show(); //updateToolbars(); } -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs