summaryrefslogtreecommitdiff
path: root/src/notificationbar.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-25 00:19:27 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-25 00:19:27 +0100
commit9d20e99fffeebe67fd8ff27cb4f9e353892f5190 (patch)
tree23462fac2e862a2f408a26f94ab024c4174c3458 /src/notificationbar.h
parentrekonq 0.6.82 (diff)
downloadrekonq-9d20e99fffeebe67fd8ff27cb4f9e353892f5190.tar.xz
Coding style
Diffstat (limited to 'src/notificationbar.h')
-rw-r--r--src/notificationbar.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/notificationbar.h b/src/notificationbar.h
index 2d0e2c3f..4b098584 100644
--- a/src/notificationbar.h
+++ b/src/notificationbar.h
@@ -44,12 +44,15 @@ class BlinkEffect : public QGraphicsEffect
public:
BlinkEffect(QObject *parent = 0)
- : QGraphicsEffect(parent)
- , m_opacity(0)
- , m_backgroundColor(QApplication::palette().highlight().color().lighter())
+ : QGraphicsEffect(parent)
+ , m_opacity(0)
+ , m_backgroundColor(QApplication::palette().highlight().color().lighter())
{}
- qreal opacity() const { return m_opacity; }
+ qreal opacity() const
+ {
+ return m_opacity;
+ }
void setOpacity(qreal opacity)
{
m_opacity = opacity;
@@ -59,7 +62,7 @@ public:
protected:
void draw(QPainter *painter)
{
- painter->drawPixmap(QPoint(0,0), sourcePixmap());
+ painter->drawPixmap(QPoint(0, 0), sourcePixmap());
painter->setOpacity(m_opacity);
painter->fillRect(boundingRect(), m_backgroundColor);
}