Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/skin.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.cpp b/noncore/multimedia/opieplayer2/skin.cpp new file mode 100644 index 0000000..097b29a --- a/dev/null +++ b/noncore/multimedia/opieplayer2/skin.cpp | |||
@@ -0,0 +1,18 @@ | |||
1 | |||
2 | #include "skin.h" | ||
3 | |||
4 | #include <qpe/resource.h> | ||
5 | |||
6 | Skin::Skin( const QString &name, const QString &fileNameInfix ) | ||
7 | : m_name( name ), m_fileNameInfix( fileNameInfix ) | ||
8 | { | ||
9 | m_skinPath = "opieplayer2/skins/" + name; | ||
10 | } | ||
11 | |||
12 | QImage Skin::backgroundImage() const | ||
13 | { | ||
14 | return QImage( Resource::findPixmap( QString( "%1/background" ).arg( m_skinPath ) ) ); | ||
15 | } | ||
16 | |||
17 | /* vim: et sw=4 ts=4 | ||
18 | */ | ||