mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6b8a1442c1
commit
cf037a16fc
@ -340,7 +340,7 @@ class RuleEditor(QDialog): # {{{
|
|||||||
return col, r
|
return col, r
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
class RulesModel(QAbstractListModel):
|
class RulesModel(QAbstractListModel): # {{{
|
||||||
|
|
||||||
def __init__(self, prefs, fm, parent=None):
|
def __init__(self, prefs, fm, parent=None):
|
||||||
QAbstractListModel.__init__(self, parent)
|
QAbstractListModel.__init__(self, parent)
|
||||||
@ -425,7 +425,9 @@ class RulesModel(QAbstractListModel):
|
|||||||
_('<li>If the <b>%s</b> column <b>%s</b> the value: <b>%s</b>') %
|
_('<li>If the <b>%s</b> column <b>%s</b> the value: <b>%s</b>') %
|
||||||
tuple(condition))
|
tuple(condition))
|
||||||
|
|
||||||
class EditRules(QWidget):
|
# }}}
|
||||||
|
|
||||||
|
class EditRules(QWidget): # {{{
|
||||||
|
|
||||||
changed = pyqtSignal()
|
changed = pyqtSignal()
|
||||||
|
|
||||||
@ -563,6 +565,8 @@ class EditRules(QWidget):
|
|||||||
def commit(self, prefs):
|
def commit(self, prefs):
|
||||||
self.model.commit(prefs)
|
self.model.commit(prefs)
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from PyQt4.Qt import QApplication
|
from PyQt4.Qt import QApplication
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user