author | simon <simon> | 2002-12-11 12:04:54 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-11 12:04:54 (UTC) |
commit | 882ddb046c81bdee5eeca59fde7ec458ae522dc7 (patch) (side-by-side diff) | |
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) (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 @@ + +#include "skin.h" + +#include <qpe/resource.h> + +Skin::Skin( const QString &name, const QString &fileNameInfix ) + : m_name( name ), m_fileNameInfix( fileNameInfix ) +{ + m_skinPath = "opieplayer2/skins/" + name; +} + +QImage Skin::backgroundImage() const +{ + return QImage( Resource::findPixmap( QString( "%1/background" ).arg( m_skinPath ) ) ); +} + +/* vim: et sw=4 ts=4 + */ |