mirror of
https://github.com/KDE/konsole.git
synced 2026-06-11 07:26:10 -04:00
Use Q_EMIT instead of emit
In C++20 there are new classes that have member functions named emit(). c.f.: https://lists.qt-project.org/pipermail/development/2020-February/038812.html https://en.cppreference.com/w/cpp/io/basic_osyncstream/emit A similar change was done in the Frameworks: https://invent.kde.org/frameworks/kio/-/merge_requests/315
This commit is contained in:
committed by
Kurt Hindenburg
parent
e57b6ea8a6
commit
d06ea23903
@@ -59,7 +59,7 @@ bool CheckableSessionModel::setData(const QModelIndex &index, const QVariant &va
|
||||
_checkedSessions.remove(session);
|
||||
}
|
||||
|
||||
emit dataChanged(index, index);
|
||||
Q_EMIT dataChanged(index, index);
|
||||
return true;
|
||||
}
|
||||
return SessionListModel::setData(index, value, role);
|
||||
|
||||
Reference in New Issue
Block a user