Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/skin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.cpp b/noncore/multimedia/opieplayer2/skin.cpp index 352368f..fb1c9c4 100644 --- a/noncore/multimedia/opieplayer2/skin.cpp +++ b/noncore/multimedia/opieplayer2/skin.cpp | |||
@@ -15,14 +15,21 @@ QImage Skin::backgroundImage() const | |||
15 | } | 15 | } |
16 | 16 | ||
17 | QImage Skin::buttonUpImage() const | 17 | QImage Skin::buttonUpImage() const |
18 | { | 18 | { |
19 | return QImage( Resource::findPixmap( QString( "%1/skin%2_up" ).arg( m_skinPath ).arg( m_fileNameInfix ) ) ); | 19 | return QImage( Resource::findPixmap( QString( "%1/skin%2_up" ).arg( m_skinPath ).arg( m_fileNameInfix ) ) ); |
20 | } | 20 | } |
21 | 21 | ||
22 | QImage Skin::buttonDownImage() const | 22 | QImage Skin::buttonDownImage() const |
23 | { | 23 | { |
24 | return QImage( Resource::findPixmap( QString( "%1/skin%2_down" ).arg( m_skinPath ).arg( m_fileNameInfix ) ) ); | 24 | return QImage( Resource::findPixmap( QString( "%1/skin%2_down" ).arg( m_skinPath ).arg( m_fileNameInfix ) ) ); |
25 | } | 25 | } |
26 | 26 | ||
27 | QImage Skin::buttonMaskImage( const QString &fileName ) const | ||
28 | { | ||
29 | QString prefix = m_skinPath + QString::fromLatin1( "/skin%1_mask_" ).arg( m_fileNameInfix ); | ||
30 | QString path = prefix + fileName + ".png"; | ||
31 | return QImage( Resource::findPixmap( path ) ); | ||
32 | } | ||
33 | |||
27 | /* vim: et sw=4 ts=4 | 34 | /* vim: et sw=4 ts=4 |
28 | */ | 35 | */ |