summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/skin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.cpp b/noncore/multimedia/opieplayer2/skin.cpp
index 44f5ca2..742e495 100644
--- a/noncore/multimedia/opieplayer2/skin.cpp
+++ b/noncore/multimedia/opieplayer2/skin.cpp
@@ -137,25 +137,25 @@ void Skin::addButtonToMask( int tag, const QImage &maskImage ) const
137 uchar *line = dest[y]; 137 uchar *line = dest[y];
138 for ( int x = 0; x < d->buttonMask.width(); x++ ) 138 for ( int x = 0; x < d->buttonMask.width(); x++ )
139 if ( !qRed( maskImage.pixel( x, y ) ) ) 139 if ( !qRed( maskImage.pixel( x, y ) ) )
140 line[x] = tag; 140 line[x] = tag;
141 } 141 }
142} 142}
143 143
144QImage Skin::buttonMaskImage( const QString &fileName ) const 144QImage Skin::buttonMaskImage( const QString &fileName ) const
145{ 145{
146 SkinData::ButtonMaskImageMap::Iterator it = d->buttonMasks.find( fileName ); 146 SkinData::ButtonMaskImageMap::Iterator it = d->buttonMasks.find( fileName );
147 if ( it == d->buttonMasks.end() ) { 147 if ( it == d->buttonMasks.end() ) {
148 QString prefix = m_skinPath + QString::fromLatin1( "/skin%1_mask_" ).arg( m_fileNameInfix ); 148 QString prefix = m_skinPath + QString::fromLatin1( "/skin%1_mask_" ).arg( m_fileNameInfix );
149 QString path = prefix + fileName + ".png"; 149 QString path = prefix + fileName;
150 it = d->buttonMasks.insert( fileName, loadImage( path ) ); 150 it = d->buttonMasks.insert( fileName, loadImage( path ) );
151 } 151 }
152 return *it; 152 return *it;
153} 153}
154 154
155QString Skin::defaultSkinName() 155QString Skin::defaultSkinName()
156{ 156{
157 Config cfg( "OpiePlayer" ); 157 Config cfg( "OpiePlayer" );
158 cfg.setGroup( "Options" ); 158 cfg.setGroup( "Options" );
159 return cfg.readEntry( "Skin", "default" ); 159 return cfg.readEntry( "Skin", "default" );
160} 160}
161 161