Database Models: Remove obsolete signals

Folder model and comic model contain two signal relais which do not
serve any obvious purpose.
Remove them.
This commit is contained in:
Felix Kauselmann 2021-06-23 11:33:58 +02:00
parent 76ab23b776
commit a623dfb133
4 changed files with 0 additions and 10 deletions

View File

@ -18,8 +18,6 @@
ComicModel::ComicModel(QObject *parent) ComicModel::ComicModel(QObject *parent)
: QAbstractItemModel(parent) : QAbstractItemModel(parent)
{ {
connect(this, SIGNAL(beforeReset()), this, SIGNAL(modelAboutToBeReset()));
connect(this, SIGNAL(reset()), this, SIGNAL(modelReset()));
} }
ComicModel::ComicModel(QSqlQuery &sqlquery, QObject *parent) ComicModel::ComicModel(QSqlQuery &sqlquery, QObject *parent)

View File

@ -160,8 +160,6 @@ private:
qulonglong sourceId; qulonglong sourceId;
signals: signals:
void beforeReset();
void reset();
void isEmpty(); void isEmpty();
void searchNumResults(int); void searchNumResults(int);
void resortedIndexes(QList<int>); void resortedIndexes(QList<int>);

View File

@ -56,8 +56,6 @@ void drawMacOSXFinishedFolderIcon()
FolderModel::FolderModel(QObject *parent) FolderModel::FolderModel(QObject *parent)
: QAbstractItemModel(parent), rootItem(0) : QAbstractItemModel(parent), rootItem(0)
{ {
connect(this, SIGNAL(beforeReset()), this, SIGNAL(modelAboutToBeReset()));
connect(this, SIGNAL(reset()), this, SIGNAL(modelReset()));
} }
FolderModel::FolderModel(QSqlQuery &sqlquery, QObject *parent) FolderModel::FolderModel(QSqlQuery &sqlquery, QObject *parent)

View File

@ -102,10 +102,6 @@ private:
QMap<unsigned long long int, FolderItem *> items; //relación entre folders QMap<unsigned long long int, FolderItem *> items; //relación entre folders
QString _databasePath; QString _databasePath;
signals:
void beforeReset();
void reset();
}; };
#endif #endif