mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
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:
parent
76ab23b776
commit
a623dfb133
@ -18,8 +18,6 @@
|
||||
ComicModel::ComicModel(QObject *parent)
|
||||
: QAbstractItemModel(parent)
|
||||
{
|
||||
connect(this, SIGNAL(beforeReset()), this, SIGNAL(modelAboutToBeReset()));
|
||||
connect(this, SIGNAL(reset()), this, SIGNAL(modelReset()));
|
||||
}
|
||||
|
||||
ComicModel::ComicModel(QSqlQuery &sqlquery, QObject *parent)
|
||||
|
@ -160,8 +160,6 @@ private:
|
||||
qulonglong sourceId;
|
||||
|
||||
signals:
|
||||
void beforeReset();
|
||||
void reset();
|
||||
void isEmpty();
|
||||
void searchNumResults(int);
|
||||
void resortedIndexes(QList<int>);
|
||||
|
@ -56,8 +56,6 @@ void drawMacOSXFinishedFolderIcon()
|
||||
FolderModel::FolderModel(QObject *parent)
|
||||
: QAbstractItemModel(parent), rootItem(0)
|
||||
{
|
||||
connect(this, SIGNAL(beforeReset()), this, SIGNAL(modelAboutToBeReset()));
|
||||
connect(this, SIGNAL(reset()), this, SIGNAL(modelReset()));
|
||||
}
|
||||
|
||||
FolderModel::FolderModel(QSqlQuery &sqlquery, QObject *parent)
|
||||
|
@ -102,10 +102,6 @@ private:
|
||||
QMap<unsigned long long int, FolderItem *> items; //relación entre folders
|
||||
|
||||
QString _databasePath;
|
||||
|
||||
signals:
|
||||
void beforeReset();
|
||||
void reset();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user