diff options
Diffstat (limited to 'src/tabhighlighteffect.cpp')
-rw-r--r-- | src/tabhighlighteffect.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tabhighlighteffect.cpp b/src/tabhighlighteffect.cpp index a6441f04..b6f191d8 100644 --- a/src/tabhighlighteffect.cpp +++ b/src/tabhighlighteffect.cpp @@ -49,21 +49,21 @@ void TabHighlightEffect::draw(QPainter *painter) { const QPixmap &pixmap = sourcePixmap(); - if(pixmap.isNull()) + if (pixmap.isNull()) return; painter->drawPixmap(QPoint(0, 0), pixmap); Q_FOREACH(const QByteArray & propertyName, dynamicPropertyNames()) { - if(!propertyName.startsWith(prep)) + if (!propertyName.startsWith(prep)) continue; int index = propertyName.right(propertyName.size() - prep.size()).toInt(); qreal opacity = property(propertyName).toReal(); QRect textRect = m_tabBar->tabTextRect(index); - if(!boundingRect().contains(textRect)) + if (!boundingRect().contains(textRect)) continue; QString tabText = m_tabBar->fontMetrics().elidedText(m_tabBar->tabText(index), Qt::ElideRight, @@ -78,11 +78,11 @@ void TabHighlightEffect::draw(QPainter *painter) bool TabHighlightEffect::event(QEvent* event) { - if(event->type() == QEvent::DynamicPropertyChange) + if (event->type() == QEvent::DynamicPropertyChange) { QDynamicPropertyChangeEvent *pChangeEv = dynamic_cast<QDynamicPropertyChangeEvent*>(event); - if(pChangeEv->propertyName().startsWith(prep)) + if (pChangeEv->propertyName().startsWith(prep)) { update(); return true; |