Make it easier to disable tab indicator
This commit is contained in:
parent
55d257cecd
commit
34d1449cd2
@ -435,7 +435,7 @@ DATA = OrderedDict([
|
||||
|
||||
('indicator-width',
|
||||
SettingValue(types.Int(minval=0), '3'),
|
||||
"Width of the progress indicator."),
|
||||
"Width of the progress indicator (0 to disable)."),
|
||||
|
||||
('indicator-space',
|
||||
SettingValue(types.Int(minval=0), '3'),
|
||||
|
@ -385,8 +385,10 @@ class TabBarStyle(QCommonStyle):
|
||||
icon_rect = QRect()
|
||||
text_rect = QRect(opt.rect)
|
||||
qt_ensure_valid(text_rect)
|
||||
indicator_width = config.get('tabbar', 'indicator-width')
|
||||
text_rect.adjust(padding, 0, 0, 0)
|
||||
text_rect.adjust(config.get('tabbar', 'indicator-width') +
|
||||
if indicator_width != 0:
|
||||
text_rect.adjust(indicator_width +
|
||||
config.get('tabbar', 'indicator-space'), 0, 0, 0)
|
||||
if not opt.icon.isNull():
|
||||
icon_rect = self._get_icon_rect(opt, text_rect)
|
||||
|
Loading…
Reference in New Issue
Block a user