示例#1
0
文件: toc.py 项目: siebert/calibre
 def sizeHint(self, *args):
     ans = QStyledItemDelegate.sizeHint(self, *args)
     return ans + QSize(0, 10)
示例#2
0
文件: search.py 项目: IvoNet/calibre
 def sizeHint(self, *args):
     ans = QStyledItemDelegate.sizeHint(self, *args)
     ans.setHeight(ans.height() + 4)
     return ans
示例#3
0
 def sizeHint(self, option, index):
     ans = QStyledItemDelegate.sizeHint(self, option, index)
     top_level = not index.parent().isValid()
     ans += QSize(0, 20 if top_level else 10)
     return ans
示例#4
0
 def sizeHint(self, option, index):
     ans = QStyledItemDelegate.sizeHint(self, option, index)
     top_level = not index.parent().isValid()
     ans += QSize(0, 20 if top_level else 10)
     return ans
示例#5
0
 def sizeHint(self, *args):
     ans = QStyledItemDelegate.sizeHint(self, *args)
     ans.setHeight(ans.height() + 4)
     return ans
示例#6
0
 def sizeHint(self, option, index):
     ans = QStyledItemDelegate.sizeHint(self, option, index)
     ans.setHeight(ans.height() + 10)
     return ans
示例#7
0
 def sizeHint(self, option, index):
     option.font = self.rf
     option.textElideMode = self.em
     return QStyledItemDelegate.sizeHint(self, option, index)
示例#8
0
 def sizeHint(self, option, index):
     ans = QStyledItemDelegate.sizeHint(self, option, index)
     if not index.parent().isValid():
         ans += QSize(0, 6)
     return ans
示例#9
0
 def sizeHint(self, option, index):
     option.font = self.rf
     option.textElideMode = self.em
     return QStyledItemDelegate.sizeHint(self, option, index)
示例#10
0
文件: widgets.py 项目: dusual/calibre
 def sizeHint(self, option, index):
     ans = QStyledItemDelegate.sizeHint(self, option, index)
     ans.setHeight(ans.height() + 10)
     return ans
示例#11
0
 def sizeHint(self, *args):
     return QStyledItemDelegate.sizeHint(self, *args) + QSize(0, 15)
示例#12
0
 def sizeHint(self, option, index):
     ans = QStyledItemDelegate.sizeHint(self, option, index)
     if not index.parent().isValid():
         ans += QSize(0, 6)
     return ans
示例#13
0
 def sizeHint(self, *args):
     return QStyledItemDelegate.sizeHint(self, *args) + QSize(0, 15)
示例#14
0
文件: toc.py 项目: 089git/calibre
 def sizeHint(self, *args):
     ans = QStyledItemDelegate.sizeHint(self, *args)
     return ans + QSize(0, 10)