From 633ad41a96cdc6b39d2ff97cd037032dc700f856 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 1 Apr 2023 16:51:26 +0200 Subject: [PATCH] Spreadsheet: fix -Wclazy-connect-by-name --- src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.cpp | 4 ++-- src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.cpp b/src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.cpp index 7df2637191..93c295913b 100644 --- a/src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.cpp +++ b/src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.cpp @@ -61,7 +61,7 @@ QWidget *SpreadsheetDelegate::createEditor(QWidget *parent, SpreadsheetGui::LineEdit *editor = new SpreadsheetGui::LineEdit(parent); editor->setDocumentObject(sheet); - connect(editor, &SpreadsheetGui::LineEdit::finishedWithKey, this, &SpreadsheetDelegate::on_editorFinishedWithKey); + connect(editor, &SpreadsheetGui::LineEdit::finishedWithKey, this, &SpreadsheetDelegate::onEditorFinishedWithKey); return editor; } @@ -85,7 +85,7 @@ void SpreadsheetDelegate::setModelData(QWidget *editor, } } -void SpreadsheetDelegate::on_editorFinishedWithKey(int key, Qt::KeyboardModifiers modifiers) +void SpreadsheetDelegate::onEditorFinishedWithKey(int key, Qt::KeyboardModifiers modifiers) { Q_EMIT finishedWithKey(key, modifiers); } diff --git a/src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.h b/src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.h index 8d388c1375..c05f761279 100644 --- a/src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.h +++ b/src/Mod/Spreadsheet/Gui/SpreadsheetDelegate.h @@ -50,8 +50,8 @@ public: Q_SIGNALS: void finishedWithKey(int key, Qt::KeyboardModifiers modifiers); -private Q_SLOTS: - void on_editorFinishedWithKey(int key, Qt::KeyboardModifiers modifiers); +private: + void onEditorFinishedWithKey(int key, Qt::KeyboardModifiers modifiers); private: Spreadsheet::Sheet * sheet; };