Esempio n. 1
0
void Settings::setIconContextMenu(bool value)
{
    if (getIconContextMenu() != value) {
        settings.setValue("iconcontextmenu", value);
        emit showOldestFirstChanged();
    }
}
Esempio n. 2
0
void Settings::setShowOldestFirst(bool value)
{
    if (getShowOldestFirst() != value) {
        settings.setValue("showoldestfirst", value);
        emit showOldestFirstChanged();
    }
}
Esempio n. 3
0
EntryModel::EntryModel(DatabaseManager *db, QObject *parent) :
    ListModel(new EntryItem, parent)
{
    _db = db;
    reInit = false;

    Settings *s = Settings::instance();
    connect(s,SIGNAL(showOnlyUnreadChanged()),this,SLOT(init()));
    connect(s,SIGNAL(showOldestFirstChanged()),this,SLOT(init()));
}
Esempio n. 4
0
EntryModel::EntryModel(QObject *parent) :
    ListModel(new EntryItem, parent), initer(parent)
{
    reInit = false;

    Settings *s = Settings::instance();
    connect(s,SIGNAL(filterChanged()),this,SLOT(initInThread()));
    connect(&initer,SIGNAL(finished()),this,SLOT(initFinished()));
    connect(s,SIGNAL(showOldestFirstChanged()),this,SLOT(init()));
}