summaryrefslogtreecommitdiff
path: root/src/tabhighlighteffect.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-07-25 19:48:41 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-25 19:48:41 +0200
commit14664e54b1a2dbe9c06f474a0918a262dba04e20 (patch)
tree2f48b455d90b5a966045f8ba6388ac8c0620259f /src/tabhighlighteffect.cpp
parentLast SSL fixes (diff)
downloadrekonq-14664e54b1a2dbe9c06f474a0918a262dba04e20.tar.xz
clean up
- QL1S - one stupid kDebug less - codingstyle
Diffstat (limited to 'src/tabhighlighteffect.cpp')
-rw-r--r--src/tabhighlighteffect.cpp10
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;