author | simon <simon> | 2002-12-02 18:01:00 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 18:01:00 (UTC) |
commit | 41fe383fe8b840de6dc0bcd47cd29b0d68bf760a (patch) (unidiff) | |
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) (show 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 | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <qslider.h> | 42 | #include <qslider.h> |
43 | #include <qframe.h> | 43 | #include <qframe.h> |
44 | #include <qlineedit.h> | 44 | #include <qlineedit.h> |
45 | #include <qimage.h> | ||
45 | 46 | ||
46 | #include <opie/oticker.h> | 47 | #include <opie/oticker.h> |
47 | 48 | ||
@@ -113,10 +114,10 @@ private: | |||
113 | void paintButton( QPainter *p, int i ); | 114 | void paintButton( QPainter *p, int i ); |
114 | int skipDirection; | 115 | int skipDirection; |
115 | QString skin; | 116 | QString skin; |
116 | QPixmap *pixBg; | 117 | QPixmap pixBg; |
117 | QImage *imgUp; | 118 | QImage imgUp; |
118 | QImage *imgDn; | 119 | QImage imgDn; |
119 | QImage *imgButtonMask; | 120 | QImage imgButtonMask; |
120 | QBitmap *masks[10]; | 121 | QBitmap *masks[10]; |
121 | QPixmap *buttonPixUp[10]; | 122 | QPixmap *buttonPixUp[10]; |
122 | QPixmap *buttonPixDown[10]; | 123 | QPixmap *buttonPixDown[10]; |