Spreadsheet: fix -Wclazy-connect-by-name
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user