author | simon <simon> | 2002-12-02 18:01:00 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 18:01:00 (UTC) |
commit | 41fe383fe8b840de6dc0bcd47cd29b0d68bf760a (patch) (side-by-side diff) | |
tree | 238a6bc98e657ed32d4d71895265d8512013bb14 /noncore/multimedia/opieplayer2/audiowidget.h | |
parent | c31f9b59dba873739494fcd9916c7cb9120ce1d9 (diff) | |
download | opie-41fe383fe8b840de6dc0bcd47cd29b0d68bf760a.zip opie-41fe383fe8b840de6dc0bcd47cd29b0d68bf760a.tar.gz opie-41fe383fe8b840de6dc0bcd47cd29b0d68bf760a.tar.bz2 |
- added a missing const
- QImage and QPixmap are value based classes, so use them like that for
a couple of objects. simplifies the code and helps to avoid memory leaks
Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h index 7cb1d79..54adb36 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.h +++ b/noncore/multimedia/opieplayer2/audiowidget.h @@ -39,12 +39,13 @@ #include <qdrawutil.h> #include <qpixmap.h> #include <qstring.h> #include <qslider.h> #include <qframe.h> #include <qlineedit.h> +#include <qimage.h> #include <opie/oticker.h> class QPixmap; namespace { @@ -110,16 +111,16 @@ private slots: private: void toggleButton( int ); void setToggleButton( int, bool ); void paintButton( QPainter *p, int i ); int skipDirection; QString skin; - QPixmap *pixBg; - QImage *imgUp; - QImage *imgDn; - QImage *imgButtonMask; + QPixmap pixBg; + QImage imgUp; + QImage imgDn; + QImage imgButtonMask; QBitmap *masks[10]; QPixmap *buttonPixUp[10]; QPixmap *buttonPixDown[10]; QPixmap *pixmaps[4]; OTicker songInfo; |