author | simon <simon> | 2002-12-11 13:46:15 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-11 13:46:15 (UTC) |
commit | 2b3c450378c1da0a2175c91d652ce2eae5614ff8 (patch) (unidiff) | |
tree | 4c11c70dbf487725f6e443f5db4c5a0a0c964e61 /noncore/multimedia/opieplayer2/mediawidget.h | |
parent | cd5e96b40ceae9158e5cb01e71769e895ea7a3c1 (diff) | |
download | opie-2b3c450378c1da0a2175c91d652ce2eae5614ff8.zip opie-2b3c450378c1da0a2175c91d652ce2eae5614ff8.tar.gz opie-2b3c450378c1da0a2175c91d652ce2eae5614ff8.tar.bz2 |
- less code duplication. code from resizeEvent is now shared as well as
the image composing method and the pixmap mask helper
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediawidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h index 9f13677..4599637 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.h +++ b/noncore/multimedia/opieplayer2/mediawidget.h | |||
@@ -112,6 +112,8 @@ protected: | |||
112 | 112 | ||
113 | virtual void paintEvent( QPaintEvent *pe ); | 113 | virtual void paintEvent( QPaintEvent *pe ); |
114 | 114 | ||
115 | virtual void resizeEvent( QResizeEvent *e ); | ||
116 | |||
115 | Button *buttonAt( const QPoint &position ); | 117 | Button *buttonAt( const QPoint &position ); |
116 | 118 | ||
117 | virtual void mousePressEvent( QMouseEvent *event ); | 119 | virtual void mousePressEvent( QMouseEvent *event ); |
@@ -143,6 +145,9 @@ protected: | |||
143 | QPixmap backgroundPixmap; | 145 | QPixmap backgroundPixmap; |
144 | QImage buttonUpImage; | 146 | QImage buttonUpImage; |
145 | QImage buttonDownImage; | 147 | QImage buttonDownImage; |
148 | |||
149 | static QPixmap combineImageWithBackground( const QImage &background, const QPixmap &pixmap, const QPoint &offset ); | ||
150 | static QPixmap addMaskToPixmap( const QPixmap &pix, const QBitmap &mask ); | ||
146 | }; | 151 | }; |
147 | 152 | ||
148 | #endif // MEDIAWIDGET_H | 153 | #endif // MEDIAWIDGET_H |