summaryrefslogtreecommitdiff
path: root/src/notificationbar.h
diff options
context:
space:
mode:
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);
}