Ejemplo n.º 1
0
    def _readSettings(self):
        settings = QtCore.QSettings("de.apaku", "Slimfeed")
        self.restoreGeometry(settings.value("geometry", QtCore.QByteArray()))
        self.restoreState(settings.value("state", QtCore.QByteArray()))
        self.updateTimeout = _readQSettingsIntEntry(settings, "UpdateTimeout", 300)
        self.markReadTimeout = _readQSettingsIntEntry(settings, "MarkReadTimeout", 500)
        settings.beginGroup("ArticleDeletion")

        self.enableArticleDeletion = _readQSettingsBoolEntry(settings, "Enabled", False)
        self.numberOfArticlesEnabled = _readQSettingsBoolEntry(settings, "NumberOfArticlesEnabled", False)
        self.numberOfArticles = _readQSettingsIntEntry(settings, "NumberOfArticles", 100)
        self.numberOfDaysEnabled = _readQSettingsBoolEntry(settings, "NumberOfDaysEnabled", True)
        self.numberOfDays = _readQSettingsIntEntry(settings, "NumberOfDays", 60)
        settings.endGroup()

        self.systrayFontColor = settings.value(
            "SystrayFontColor", QtGui.qApp.palette().color(QtGui.QPalette.Active, QtGui.QPalette.Text)
        )
        # The default font for the systray overlay text should be bold
        defFont = QtGui.qApp.font()
        defFont.setBold(True)
        self.systrayFont = settings.value("SystrayFont", defFont)
        settings.beginGroup("Feeds")
        self.feedMgr.load(settings)
        settings.endGroup()
Ejemplo n.º 2
0
 def load(self, store):
     self.title = store.value("Title", None)
     self.author = store.value("Author", None)
     self.content = store.value("Content", None)
     self.updated = store.value("Updated", None)
     self.url = store.value("Url", None)
     self.identity = store.value("Id", None)
     self.read = _readQSettingsBoolEntry(store, "Read", False)
     self.important = _readQSettingsBoolEntry(store, "Important", False)