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:
Ahmad Samir
2021-02-16 01:04:00 +02:00
committed by Kurt Hindenburg
parent e57b6ea8a6
commit d06ea23903
32 changed files with 165 additions and 165 deletions

View File

@@ -41,7 +41,7 @@ QString ViewProperties::currentDir() const
void ViewProperties::fireActivity()
{
emit activity(this);
Q_EMIT activity(this);
}
void ViewProperties::rename()
@@ -52,7 +52,7 @@ void ViewProperties::setTitle(const QString &title)
{
if (title != _title) {
_title = title;
emit titleChanged(this);
Q_EMIT titleChanged(this);
}
}
@@ -63,7 +63,7 @@ void ViewProperties::setIcon(const QIcon &icon)
if (icon.cacheKey() != _icon.cacheKey()) {
_icon = icon;
emit iconChanged(this);
Q_EMIT iconChanged(this);
}
}
@@ -71,7 +71,7 @@ void ViewProperties::setColor(const QColor &color)
{
if (color != _color) {
_color = color;
emit colorChanged(this);
Q_EMIT colorChanged(this);
}
}