Esempio n. 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
Esempio n. 2
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
Esempio n. 3
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)
Esempio n. 4
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
 def __init__(self, parent, db, sep, items_func_name, space_before_sep=False,
              col=None, col_fn=None):
     QStyledItemDelegate.__init__(self, parent)
     self.db = db
     self.sep = sep
     self.items_func_name = items_func_name
     self.col = col
     self.col_fn = col_fn
     self.space_before_sep = space_before_sep
Esempio n. 6
0
 def __init__(self,
              parent,
              tweak_name='gui_timestamp_display_format',
              default_format='dd MMM yyyy'):
     QStyledItemDelegate.__init__(self, parent)
     self.table_widget = parent
     self.tweak_name = tweak_name
     self.format = tweaks[self.tweak_name]
     if self.format is None:
         self.format = default_format
Esempio n. 7
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args)
     self.is_half_star = kwargs.get('is_half_star', False)
     self.table_widget = args[0]
     self.rf = QFont(rating_font())
     self.em = Qt.TextElideMode.ElideMiddle
     delta = 0
     if iswindows and sys.getwindowsversion().major >= 6:
         delta = 2
     self.rf.setPointSize(QFontInfo(QApplication.font()).pointSize()+delta)
Esempio n. 8
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.is_half_star = kwargs.get('is_half_star', False)
     self.table_widget = args[0]
     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)
 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
Esempio n. 10
0
 def __init__(self, *args):
     QStyledItemDelegate.__init__(self, *args)
     self.cache = {}
Esempio n. 11
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.old_look = gprefs['tag_browser_old_look']
     self.rating_pat = re.compile(r'[%s]' % rating_to_stars(3, True))
     self.rating_font = QFont(rating_font())
Esempio n. 12
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)$')
Esempio n. 13
0
File: ask.py Progetto: alok/vise
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
     self._m = QStringListModel(
         ['sdfgkjsg sopgjs gsgs slgjslg sdklgsgl', ''])
Esempio n. 14
0
 def __init__(self, view):
     QStyledItemDelegate.__init__(self, view)
     self.view = view
Esempio n. 15
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.document = QTextDocument()
Esempio n. 16
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.table_widget = parent
Esempio n. 17
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.format = tweaks['gui_pubdate_display_format']
     self.table_widget = args[0]
     if self.format is None:
         self.format = 'MMM yyyy'
Esempio n. 18
0
 def __init__(self, parent):
     '''
     Delegate for custom_column bool data.
     '''
     QStyledItemDelegate.__init__(self, parent)
Esempio n. 19
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.old_look = gprefs['tag_browser_old_look']
Esempio n. 20
0
 def __init__(self, all_authors, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.all_authors = all_authors
Esempio n. 21
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.old_look = False
     self.rating_pat = re.compile(r'[%s]' % rating_to_stars(3, True))
     self.rating_font = QFont(rating_font())
Esempio n. 22
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"
Esempio n. 23
0
 def __init__(self, parent):
     """
     Delegate for custom_column bool data.
     """
     QStyledItemDelegate.__init__(self, parent)
Esempio n. 24
0
 def __init__(self, *args):
     QStyledItemDelegate.__init__(self, *args)
     self.cache = {}
 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
Esempio n. 26
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
     self.editing_index = None
     self.closeEditor.connect(self.editing_done)
Esempio n. 27
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
     self.table_widget = parent
Esempio n. 28
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.old_look = gprefs['tag_browser_old_look']
Esempio n. 29
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.table_widget = parent
     self.longest_text = ''
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.format = 'dd MMM yyyy'
Esempio n. 31
0
 def __init__(self, parent):
     '''
     Delegate for custom_column bool data.
     '''
     QStyledItemDelegate.__init__(self, parent)
Esempio n. 32
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
Esempio n. 33
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
Esempio n. 34
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.old_look = False
     self.rating_pat = re.compile(r'[%s]' % rating_to_stars(3, True))
     self.rating_font = QFont(rating_font())
     self.completion_data = None
Esempio n. 35
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
Esempio n. 36
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
     self.table_widget = parent
Esempio n. 37
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.format = 'dd MMM yyyy'
Esempio n. 38
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.table_widget = parent
     self.longest_text = ''
Esempio n. 39
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
     self.editing_indices = {}
     self.closeEditor.connect(self.editing_done)
Esempio n. 40
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.old_look = gprefs['tag_browser_old_look']
     self.rating_pat = re.compile(r'[%s]' % rating_to_stars(3, True))
     self.rating_font = QFont(rating_font())
Esempio n. 41
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)$')
Esempio n. 42
0
 def __init__(self, all_authors, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.all_authors = all_authors
Esempio n. 43
0
 def __init__(self, *args, **kwargs):
     QStyledItemDelegate.__init__(self, *args, **kwargs)
     self.format = tweaks['gui_pubdate_display_format']
     self.table_widget = args[0]
     if self.format is None:
         self.format = 'MMM yyyy'
Esempio n. 44
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)
Esempio n. 45
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.table_widget = parent
Esempio n. 46
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.animator = SpinAnimator(self)
     self.animator.updated.connect(self.needs_redraw)
     self.color = parent.palette().color(QPalette.ColorRole.WindowText)
     self.spinner_width = 64
Esempio n. 47
0
 def __init__(self, parent):
     QStyledItemDelegate.__init__(self, parent)
     self.document = QTextDocument()
Esempio n. 48
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)
Esempio n. 49
0
 def __init__(self, view):
     QStyledItemDelegate.__init__(self, view)
     self.view = view
Esempio n. 50
0
 def __init__(self, parent=None):
     QStyledItemDelegate.__init__(self, parent)
     self._m = QStringListModel(['sdfgkjsg sopgjs gsgs slgjslg sdklgsgl', ''])