Ignore format changes for new clang-format version

This commit is contained in:
Jonathan White
2020-11-11 17:58:40 -05:00
parent 91dea9cbc4
commit 15dc6f062e
2 changed files with 4 additions and 0 deletions

View File

@@ -2695,8 +2695,10 @@ void BaseStyle::drawControl(ControlElement element,
if (isChecked) {
painter->setRenderHint(QPainter::Antialiasing);
painter->setPen(Qt::NoPen);
// clang-format off
QPalette::ColorRole textRole =
!isEnabled ? QPalette::Text : isSelected ? QPalette::HighlightedText : QPalette::ButtonText;
// clang-format on
painter->setBrush(option->palette.brush(option->palette.currentColorGroup(), textRole));
qreal rx, ry, rw, rh;
QRectF(checkRect).getRect(&rx, &ry, &rw, &rh);