Beispiel #1
0
 def __init__(self, parent, tweak_name='gui_timestamp_display_format',
         default_format='dd MMM yyyy'):
     QStyledItemDelegate.__init__(self, parent)
     self.tweak_name = tweak_name
     self.format = tweaks[self.tweak_name]
     if self.format is None:
         self.format = default_format
 def __init__(self, parent, db, sep, items_func_name, col, space_before_sep=False):
     QStyledItemDelegate.__init__(self, parent)
     self.db = db
     self.sep = sep
     self.items_func_name = items_func_name
     self.col = col
     self.space_before_sep = space_before_sep
Beispiel #3
0
    def __init__(self, parent):
        QStyledItemDelegate.__init__(self, parent)

        self.angle = 0
        self.timer = QTimer(self)
        self.timer.timeout.connect(self.frame_changed)
        self.color = parent.palette().color(QPalette.WindowText)
        self.spinner_width = 64
Beispiel #4
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.rf = QFont(rating_font())
     self.em = Qt.ElideMiddle
     delta = 0
     if iswindows and sys.getwindowsversion().major >= 6:
         delta = 2
     self.rf.setPointSize(QFontInfo(QApplication.font()).pointSize()+delta)
Beispiel #5
0
 def __init__(self, parent):
     '''
     Delegate for text data. If auto_complete_function needs to return a list
     of text items to auto-complete with. If the function is None no
     auto-complete will be used.
     '''
     QStyledItemDelegate.__init__(self, parent)
     self.auto_complete_function = None
Beispiel #6
0
 def __init__(self, parent):
     '''
     Delegate for custom_column bool data.
     '''
     QStyledItemDelegate.__init__(self, parent)
Beispiel #7
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.document = QTextDocument()
Beispiel #8
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.format = tweaks['gui_pubdate_display_format']
     if self.format is None:
         self.format = 'MMM yyyy'
Beispiel #9
0
 def __init__(self, parent=None, max_width=160):
     QStyledItemDelegate.__init__(self, parent)
     self.max_width = max_width
     self.dummy_model = QStringListModel([' '], self)
     self.dummy_index = self.dummy_model.index(0)
Beispiel #10
0
 def __init__(self, parent):
     '''
     Delegate for custom_column bool data.
     '''
     QStyledItemDelegate.__init__(self, parent)
Beispiel #11
0
 def __init__(self, all_authors, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.all_authors = all_authors
Beispiel #12
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
     self.editing_index = None
     self.closeEditor.connect(self.editing_done)
Beispiel #13
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.old_look = gprefs['tag_browser_old_look']
Beispiel #14
0
 def __init__(self, parent, fmt='dd MMM yyyy', default_to_today=True):
     QStyledItemDelegate.__init__(self, parent)
     self.format = fmt
     self.default_to_today = default_to_today
Beispiel #15
0
 def __init__(self, parent=None, max_width=160):
     QStyledItemDelegate.__init__(self, parent)
     self.max_width = max_width
     self.dummy_model = QStringListModel([' '], self)
     self.dummy_index = self.dummy_model.index(0)
Beispiel #16
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
     self.editing_indices = {}
     self.closeEditor.connect(self.editing_done)
Beispiel #17
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.format = tweaks['gui_pubdate_display_format']
     if self.format is None:
         self.format = 'MMM yyyy'
Beispiel #18
0
 def __init__(self, parent, sep, items_func_name, space_before_sep=False):
     QStyledItemDelegate.__init__(self, parent)
     self.sep = sep
     self.items_func_name = items_func_name
     self.space_before_sep = space_before_sep
Beispiel #19
0
 def __init__(self, parent=None, max_width=160):
     QStyledItemDelegate.__init__(self, parent)
     self.max_width = max_width
Beispiel #20
0
 def __init__(self, view):
     QStyledItemDelegate.__init__(self, view)
     self.view = view
Beispiel #21
0
 def __init__(self, view):
     QStyledItemDelegate.__init__(self, view)
     self.view = view
Beispiel #22
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.old_look = gprefs['tag_browser_old_look']
Beispiel #23
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.document = QTextDocument()
 def __init__(self, parent, fmt='dd MMM yyyy', default_to_today=True):
     QStyledItemDelegate.__init__(self, parent)
     self.format = fmt
     self.default_to_today = default_to_today
Beispiel #25
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
Beispiel #26
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
     self.item_size = QSize(32, 32)
     self.np_pat = re.compile(r'(sp|j|nj|ss|fs|ds)$')
 def __init__(self, parent=None, max_width=160):
     QStyledItemDelegate.__init__(self, parent)
     self.max_width = max_width