Spreadsheet: fix -Wclazy-connect-by-name

This commit is contained in:
wmayer
2023-04-01 16:51:26 +02:00
committed by wwmayer
parent cd04621bb5
commit 633ad41a96
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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;
};