author | simon <simon> | 2002-12-11 12:04:54 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-11 12:04:54 (UTC) |
commit | 882ddb046c81bdee5eeca59fde7ec458ae522dc7 (patch) (unidiff) | |
tree | b51292ac603f7ec41501c707a868dd462937224f /noncore/multimedia/opieplayer2/skin.cpp | |
parent | d7b877a5532e6377f034514c89c0b45b96265471 (diff) | |
download | opie-882ddb046c81bdee5eeca59fde7ec458ae522dc7.zip opie-882ddb046c81bdee5eeca59fde7ec458ae522dc7.tar.gz opie-882ddb046c81bdee5eeca59fde7ec458ae522dc7.tar.bz2 |
- starting to factor out the actual skin image loading into a separate
class
Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.cpp') (more/less context) (show 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 | */ | ||