void Settings::setIconContextMenu(bool value) { if (getIconContextMenu() != value) { settings.setValue("iconcontextmenu", value); emit showOldestFirstChanged(); } }
void Settings::setShowOldestFirst(bool value) { if (getShowOldestFirst() != value) { settings.setValue("showoldestfirst", value); emit showOldestFirstChanged(); } }
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())); }
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())); }