--- a/src/libraries.cpp Sun Jul 25 20:29:14 2021 +0300 +++ b/src/libraries.cpp Sun Jul 25 20:39:21 2021 +0300 @@ -96,9 +96,9 @@ */ void LibraryManager::addLibrary(const Library& library) { - emit layoutAboutToBeChanged(); + Q_EMIT layoutAboutToBeChanged(); libraries.append(library); - emit layoutChanged(); + Q_EMIT layoutChanged(); } /** @@ -110,9 +110,9 @@ Q_ASSERT(isValidIndex(libraryIndex)); if (isValidIndex(libraryIndex)) { - emit layoutAboutToBeChanged(); + Q_EMIT layoutAboutToBeChanged(); libraries.remove(libraryIndex); - emit layoutChanged(); + Q_EMIT layoutChanged(); } } @@ -189,7 +189,7 @@ (isValidIndex(libraryToIndex) or libraryToIndex == count()) and libraryFromIndex != libraryToIndex) { - emit layoutAboutToBeChanged(); + Q_EMIT layoutAboutToBeChanged(); const Library library = this->library(libraryFromIndex); if (libraryToIndex > libraryFromIndex) { @@ -201,7 +201,7 @@ this->libraries.removeAt(libraryFromIndex); this->libraries.insert(libraryToIndex, library); } - emit layoutChanged(); + Q_EMIT layoutChanged(); } } @@ -349,7 +349,7 @@ Q_ASSERT(isValidIndex(libraryIndex)); const QModelIndex topLeft = this->index(libraryIndex, 0); const QModelIndex bottomRight = this->index(libraryIndex, columnCount({}) - 1); - emit dataChanged(topLeft, bottomRight); + Q_EMIT dataChanged(topLeft, bottomRight); } /**