summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/skin.cpp
blob: 352368f097b8c055cf3e53c3267a7bfc5ec03797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

#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 ) ) );
}

QImage Skin::buttonUpImage() const
{
    return QImage( Resource::findPixmap( QString( "%1/skin%2_up" ).arg( m_skinPath ).arg( m_fileNameInfix ) ) );
}

QImage Skin::buttonDownImage() const
{
    return QImage( Resource::findPixmap( QString( "%1/skin%2_down" ).arg( m_skinPath ).arg( m_fileNameInfix ) ) );
}

/* vim: et sw=4 ts=4
 */