From 882ddb046c81bdee5eeca59fde7ec458ae522dc7 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 Dec 2002 12:04:54 +0000 Subject: - starting to factor out the actual skin image loading into a separate class --- (limited to 'noncore/multimedia/opieplayer2/skin.cpp') 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 + +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 + */ -- cgit v0.9.0.2