QCommonStyle: fix a few typos and formatting issues
Change-Id: I7855795bf010865d5c2b8dd51538c446cdff1974 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
parent
3ab7016632
commit
bc232b2bef
@ -1135,7 +1135,7 @@ void QCommonStylePrivate::tabLayout(const QStyleOptionTab *opt, const QWidget *w
|
|||||||
QSize tabIconSize = opt->icon.actualSize(iconSize,
|
QSize tabIconSize = opt->icon.actualSize(iconSize,
|
||||||
(opt->state & QStyle::State_Enabled) ? QIcon::Normal : QIcon::Disabled,
|
(opt->state & QStyle::State_Enabled) ? QIcon::Normal : QIcon::Disabled,
|
||||||
(opt->state & QStyle::State_Selected) ? QIcon::On : QIcon::Off);
|
(opt->state & QStyle::State_Selected) ? QIcon::On : QIcon::Off);
|
||||||
// High-dpi icons do not need adjustmet; make sure tabIconSize is not larger than iconSize
|
// High-dpi icons do not need adjustment; make sure tabIconSize is not larger than iconSize
|
||||||
tabIconSize = QSize(qMin(tabIconSize.width(), iconSize.width()), qMin(tabIconSize.height(), iconSize.height()));
|
tabIconSize = QSize(qMin(tabIconSize.width(), iconSize.width()), qMin(tabIconSize.height(), iconSize.height()));
|
||||||
|
|
||||||
*iconRect = QRect(tr.left(), tr.center().y() - tabIconSize.height() / 2,
|
*iconRect = QRect(tr.left(), tr.center().y() - tabIconSize.height() / 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user