Exemplo n.º 1
0
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>)));
}
Exemplo n.º 2
0
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)));
}
Exemplo n.º 3
0
void HistoryModel::addHistoryEntry(const QUrl &url, QString title)
{
    emit signalAddHistoryEntry(url, title);
}