author | sandman <sandman> | 2002-11-21 19:54:25 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-11-21 19:54:25 (UTC) |
commit | 6d302b82aab909da59852d99a31bcc7726ba9f34 (patch) (side-by-side diff) | |
tree | e090ba7fcd96afe5fd74e7451f2c59b64f0eb369 /noncore/styles/theme/othemestyle.h | |
parent | 440f1d4d439c83368a855355cdceda43660137f2 (diff) | |
download | opie-6d302b82aab909da59852d99a31bcc7726ba9f34.zip opie-6d302b82aab909da59852d99a31bcc7726ba9f34.tar.gz opie-6d302b82aab909da59852d99a31bcc7726ba9f34.tar.bz2 |
- progress bars are now also themed (same hack/workaround, that is used in
liquid)
- some speed optimizations
Diffstat (limited to 'noncore/styles/theme/othemestyle.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/theme/othemestyle.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/noncore/styles/theme/othemestyle.h b/noncore/styles/theme/othemestyle.h index 52445c4..406b35b 100644 --- a/noncore/styles/theme/othemestyle.h +++ b/noncore/styles/theme/othemestyle.h @@ -25,8 +25,10 @@ #include <qpushbutton.h> #include <qscrollbar.h> #include <qstring.h> +class QProgressBar; + /** * KDE themed styles. * @@ -62,8 +64,10 @@ public: /// @internal // to make it possible for derived classes to overload this function virtual void polish( QPalette& pal ); + virtual bool eventFilter ( QObject *obj, QEvent *ev ); + /** * This is a convenience method for drawing widgets with * borders, highlights, pixmaps, colors, etc... * You specify the widget type and it will draw it according to the @@ -311,14 +315,11 @@ public: #endif /** * Draw a menubar item. */ -#if 0 - - virtual void drawKMenuItem( QPainter *p, int x, int y, int w, int h, - const QColorGroup &g, bool active, - QMenuItem *item, QBrush *fill = NULL ); -#endif + virtual void drawMenuBarItem( QPainter *p, int x, int y, int w, int h, + QMenuItem *item, const QColorGroup &g, + bool enabled, bool active ); /** * Return the width of the splitter as specified in the config file. */ virtual int splitterWidth() const; @@ -351,10 +352,9 @@ public: const QColor *c = 0, bool atBorder = false ); /** * Draw a @ref KProgess bar. */ - // virtual void drawKProgressBlock(QPainter *p, int x, int y, int w, int h, - // const QColorGroup &g, QBrush *fill); + virtual void drawProgressBar (QPainter *, int , int , int , int , const QColorGroup &, int ); /** * Return the background for @ref KProgress. */ // virtual void getKProgressBackground(const QColorGroup &g, QBrush &bg); |