diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-02-16 18:14:38 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-02-16 18:14:38 +0100 |
commit | ad09436b910b6c10c72f7c29db9b091ef1a55167 (patch) | |
tree | f298ae8a0783342375491fcbd588ebc4939671f0 | |
parent | This patch cleans up tabbar update: show/hide when ReKonfig::alwaysShowTabBar... (diff) | |
download | rekonq-ad09436b910b6c10c72f7c29db9b091ef1a55167.tar.xz |
Cleans up TabHighLightEffects indentation
-rw-r--r-- | src/tabhighlighteffect.cpp | 6 | ||||
-rw-r--r-- | src/tabhighlighteffect.h | 9 |
2 files changed, 12 insertions, 3 deletions
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 <QVariant> #include <tabbar.h> + 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 <http://www.gnu.org/licenses/>. * * ============================================================ */ + + #ifndef TABHIGHLIGHTEFFECT_H #define TABHIGHLIGHTEFFECT_H + // Qt Includes #include <QGraphicsEffect> #include <QPainter> @@ -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 |