summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/skin.cpp
authorsimon <simon>2002-12-11 12:21:55 (UTC)
committer simon <simon>2002-12-11 12:21:55 (UTC)
commitd24ad11763335834718485f14e90d8dab2611fa2 (patch) (side-by-side diff)
treec2ad64ecd8f2e217a3816f57c3dec20aaac4e421 /noncore/multimedia/opieplayer2/skin.cpp
parent381de1a3cfcc32dd7c0350329413f55dd9de9bb8 (diff)
downloadopie-d24ad11763335834718485f14e90d8dab2611fa2.zip
opie-d24ad11763335834718485f14e90d8dab2611fa2.tar.gz
opie-d24ad11763335834718485f14e90d8dab2611fa2.tar.bz2
- moved the remaining pieces of image/pixmap loading to the Skin class
Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/skin.cpp7
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
@@ -24,5 +24,12 @@ QImage Skin::buttonDownImage() const
return QImage( Resource::findPixmap( QString( "%1/skin%2_down" ).arg( m_skinPath ).arg( m_fileNameInfix ) ) );
}
+QImage Skin::buttonMaskImage( const QString &fileName ) const
+{
+ QString prefix = m_skinPath + QString::fromLatin1( "/skin%1_mask_" ).arg( m_fileNameInfix );
+ QString path = prefix + fileName + ".png";
+ return QImage( Resource::findPixmap( path ) );
+}
+
/* vim: et sw=4 ts=4
*/