From ad09436b910b6c10c72f7c29db9b091ef1a55167 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 16 Feb 2011 18:14:38 +0100 Subject: Cleans up TabHighLightEffects indentation --- src/tabhighlighteffect.cpp | 6 +++++- src/tabhighlighteffect.h | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tabhighlighteffect.cpp b/src/tabhighlighteffect.cpp index 621263fe..fe663167 100644 --- a/src/tabhighlighteffect.cpp +++ b/src/tabhighlighteffect.cpp @@ -23,6 +23,7 @@ * * ============================================================ */ + //Self Includes #include "tabhighlighteffect.h" #include "tabhighlighteffect.moc" @@ -31,8 +32,10 @@ #include #include + const QByteArray prep("hAnim"); + TabHighlightEffect::TabHighlightEffect(TabBar *tabBar) : QGraphicsEffect(tabBar) , m_tabBar(tabBar) @@ -64,6 +67,7 @@ void TabHighlightEffect::draw(QPainter *painter) } } + bool TabHighlightEffect::event(QEvent* event) { if (event->type() == QEvent::DynamicPropertyChange) @@ -78,4 +82,4 @@ bool TabHighlightEffect::event(QEvent* event) } return QGraphicsEffect::event(event); -} \ No newline at end of file +} diff --git a/src/tabhighlighteffect.h b/src/tabhighlighteffect.h index 26292a9e..269a3315 100644 --- a/src/tabhighlighteffect.h +++ b/src/tabhighlighteffect.h @@ -22,9 +22,12 @@ * along with this program. If not, see . * * ============================================================ */ + + #ifndef TABHIGHLIGHTEFFECT_H #define TABHIGHLIGHTEFFECT_H + // Qt Includes #include #include @@ -33,6 +36,7 @@ // Forward Declarations class TabBar; + class TabHighlightEffect : public QGraphicsEffect { Q_OBJECT @@ -43,9 +47,10 @@ public: protected: virtual void draw(QPainter *painter); virtual bool event(QEvent *event); + private: - QColor m_highlightColor; TabBar * const m_tabBar; + QColor m_highlightColor; }; -#endif // TABHIGHLIGHTEFFECT_H \ No newline at end of file +#endif // TABHIGHLIGHTEFFECT_H -- cgit v1.2.1