[Libreoffice-commits] core.git: Branch 'feature/jsdialogs' - sc/source sw/source
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 12 22:03:33 UTC 2020
sc/source/ui/dbgui/validate.cxx | 6 ++++++
sw/source/uibase/dialog/watermarkdialog.cxx | 2 ++
2 files changed, 8 insertions(+)
New commits:
commit 65ed131c2796050249ff0b2405a2a3468694f187
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Mar 11 16:11:23 2020 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Mar 11 16:11:23 2020 +0100
jsdialog: hide help/cancel button on mobile
Change-Id: If47b55e768a7573b0adfed7d91a9c8694b08d636
diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx
index 9cfd99fc80af..30672543bdb8 100644
--- a/sc/source/ui/dbgui/validate.cxx
+++ b/sc/source/ui/dbgui/validate.cxx
@@ -102,6 +102,12 @@ ScValidationDlg::ScValidationDlg(weld::Window* pParent, const SfxItemSet* pArgSe
AddTabPage(m_sValuePageId, ScTPValidationValue::Create, nullptr);
AddTabPage("inputhelp", ScTPValidationHelp::Create, nullptr);
AddTabPage("erroralert", ScTPValidationError::Create, nullptr);
+
+ if (IS_MOBILE)
+ {
+ m_xBuilder->weld_button("cancel")->hide();
+ m_xBuilder->weld_button("help")->hide();
+ }
}
ScValidationDlg::~ScValidationDlg()
diff --git a/sw/source/uibase/dialog/watermarkdialog.cxx b/sw/source/uibase/dialog/watermarkdialog.cxx
index 1b15d1a2366c..533edbc16933 100644
--- a/sw/source/uibase/dialog/watermarkdialog.cxx
+++ b/sw/source/uibase/dialog/watermarkdialog.cxx
@@ -39,6 +39,8 @@ SwWatermarkDialog::SwWatermarkDialog(weld::Window* pParent, SfxBindings& rBindin
{
m_xBuilder->weld_label("ColorLabel")->hide();
m_xColor->hide();
+ m_xBuilder->weld_button("cancel")->hide();
+ m_xBuilder->weld_button("help")->hide();
}
}
More information about the Libreoffice-commits
mailing list