From 3b6688fe11c162e3e14371e6f7bfa4b66afec8a5 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Tue, 26 Nov 2024 22:11:16 +0100 Subject: [PATCH] weld: Rename weld::Dialog::{widget -> button}_for_response Rename weld::Dialog::widget_for_response to weld::Dialog_button_for_response as it specifically returns a weld::Button, not a generic weld::Widget (other than GTK's `gtk_dialog_get_widget_for_response` [1] which returns a GtkWidget). [1] https://docs.gtk.org/gtk3/method.Dialog.get_widget_for_response.html Change-Id: I3b1dc34c0af752853551d2ebb706109f2214720d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177376 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- dbaccess/source/ui/dlg/sqlmessage.cxx | 2 +- include/vcl/weld.hxx | 2 +- vcl/inc/jsdialog/jsdialogbuilder.hxx | 4 ++-- vcl/inc/qt5/QtInstanceDialog.hxx | 2 +- vcl/inc/qt5/QtInstanceMessageDialog.hxx | 2 +- vcl/inc/salvtables.hxx | 4 ++-- vcl/jsdialog/jsdialogbuilder.cxx | 4 ++-- vcl/qt5/QtInstanceDialog.cxx | 2 +- vcl/qt5/QtInstanceMessageDialog.cxx | 4 ++-- vcl/source/app/salvtables.cxx | 4 ++-- vcl/source/control/wizardmachine.cxx | 10 +++++----- vcl/unx/gtk3/gtkinst.cxx | 4 ++-- 12 files changed, 22 insertions(+), 22 deletions(-) diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx index 51459220ac9e..0e539a34cb38 100644 --- a/dbaccess/source/ui/dlg/sqlmessage.cxx +++ b/dbaccess/source/ui/dlg/sqlmessage.cxx @@ -507,7 +507,7 @@ void OSQLMessageBox::impl_addDetailsButton() if ( bMoreDetailsAvailable ) { m_xDialog->add_button(GetStandardText(StandardButtonType::More), RET_MORE); - m_xMoreButton = m_xDialog->weld_widget_for_response(RET_MORE); + m_xMoreButton = m_xDialog->weld_button_for_response(RET_MORE); m_xMoreButton->connect_clicked(LINK(this, OSQLMessageBox, ButtonClickHdl)); } } diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 350b0c1ae4ba..81554db95c1a 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -629,7 +629,7 @@ public: virtual void response(int response) = 0; virtual void add_button(const OUString& rText, int response, const OUString& rHelpId = {}) = 0; virtual void set_default_response(int response) = 0; - virtual std::unique_ptr