diff options
| author | Roopesh Chander <roop@forwardbias.in> | 2009-10-22 19:04:12 +0530 |
|---|---|---|
| committer | Roopesh Chander <roop@forwardbias.in> | 2009-10-22 19:04:12 +0530 |
| commit | 5bc10927957de16160cbdd242db78b6bebac7ed9 (patch) | |
| tree | 7e74e37b3a834d4da304a4194184f936b3a7b27c /graphicstoolbar.h | |
| parent | fc8b914cb1cadd1c090f68a5de803d67a133de4d (diff) | |
allow change of background for the toolbars
Diffstat (limited to 'graphicstoolbar.h')
| -rw-r--r-- | graphicstoolbar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/graphicstoolbar.h b/graphicstoolbar.h index 9ee5eaf..99e20a1 100644 --- a/graphicstoolbar.h +++ b/graphicstoolbar.h @@ -12,6 +12,8 @@ class GraphicsToolBar : public QGraphicsWidget public: GraphicsToolBar(QGraphicsScene *scene, QGraphicsItem * parent = 0, Qt::WindowFlags wFlags = 0); void addWidget(QWidget *widget); + void setBackgroundBrush(QBrush brush); + QBrush backgroundBrush() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); protected: @@ -21,7 +23,7 @@ protected: private: QGraphicsLinearLayout *m_layout; QGraphicsScene *m_scene; - QLinearGradient m_bgGradient; + QBrush m_bgBrush; }; #endif // GRAPHICSTOOLBAR_H |
