From 7c1ff86900dbeed63bb9c3c70ec5972cf90f87be Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Mon, 30 Oct 2017 13:12:28 +0100 Subject: [PATCH] Fix usage of 'emit' macro Even though it doesn't expand to anything... --- src/EditTableDialog.cpp | 2 +- src/sqlitetablemodel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EditTableDialog.cpp b/src/EditTableDialog.cpp index 0a6e1e4a..2f974291 100644 --- a/src/EditTableDialog.cpp +++ b/src/EditTableDialog.cpp @@ -76,7 +76,7 @@ void EditTableDialog::keyPressEvent(QKeyEvent *evt) if((evt->modifiers() & Qt::ControlModifier) && (evt->key() == Qt::Key_Enter || evt->key() == Qt::Key_Return)) { - emit accept(); + accept(); return; } if(evt->key() == Qt::Key_Enter || evt->key() == Qt::Key_Return) diff --git a/src/sqlitetablemodel.cpp b/src/sqlitetablemodel.cpp index d8711993..ea01bb94 100644 --- a/src/sqlitetablemodel.cpp +++ b/src/sqlitetablemodel.cpp @@ -364,7 +364,7 @@ bool SqliteTableModel::setTypedData(const QModelIndex& index, bool isBlob, const m_data[index.row()].replace(index.column(), newValue); lock.unlock(); - emit(dataChanged(index, index)); + emit dataChanged(index, index); return true; } else { lock.unlock();