HistoryModel::HistoryModel(QupZilla* mainClass) : QObject() , m_isSaving(true) , p_QupZilla(mainClass) { loadSettings(); connect(this, SIGNAL(signalAddHistoryEntry(QUrl, QString)), this, SLOT(slotAddHistoryEntry(QUrl, QString))); connect(this, SIGNAL(signalDeleteHistoryEntry(QList<int>)), this, SLOT(slotDeleteHistoryEntry(QList<int>))); }
HistoryModel::HistoryModel(QupZilla* mainClass) : QObject() , m_isSaving(true) , p_QupZilla(mainClass) { loadSettings(); qRegisterMetaType<HistoryModel::HistoryEntry>("HistoryModel::HistoryEntry"); QThread* t = new QThread(this); t->start(); moveToThread(t); connect(this, SIGNAL(signalAddHistoryEntry(QUrl, QString)), this, SLOT(slotAddHistoryEntry(QUrl, QString))); connect(this, SIGNAL(signalDeleteHistoryEntry(int)), this, SLOT(slotDeleteHistoryEntry(int))); }