summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-11 13:06:35 (UTC)
committer simon <simon>2002-12-11 13:06:35 (UTC)
commit84d92e2298605f4d4f9a9209731f62c2b10e54e4 (patch) (side-by-side diff)
tree9742dc8490da1a2ff1b2af2484fc87b1f218ca36
parentaa9623e53bd86c2645103ebacc81262f372b73d7 (diff)
downloadopie-84d92e2298605f4d4f9a9209731f62c2b10e54e4.zip
opie-84d92e2298605f4d4f9a9209731f62c2b10e54e4.tar.gz
opie-84d92e2298605f4d4f9a9209731f62c2b10e54e4.tar.bz2
- minor cleanup
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.cpp10
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.h2
2 files changed, 5 insertions, 7 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp
index 6b304ec..0d1c8b6 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.cpp
+++ b/noncore/multimedia/opieplayer2/mediawidget.cpp
@@ -71,16 +71,14 @@ void MediaWidget::loadDefaultSkin( const SkinButtonInfo *skinInfo, uint buttonCo
{
Config cfg( "OpiePlayer" );
cfg.setGroup( "Options" );
- QString skin = cfg.readEntry( "Skin","default" );
+ QString name = cfg.readEntry( "Skin","default" );
- loadSkin( skinInfo, buttonCount, skin, fileNameInfix );
+ Skin skin( name, fileNameInfix );
+ loadSkin( skinInfo, buttonCount, skin );
}
-void MediaWidget::loadSkin( const SkinButtonInfo *skinInfo, uint buttonCount, const QString &name, const QString &fileNameInfix )
+void MediaWidget::loadSkin( const SkinButtonInfo *skinInfo, uint buttonCount, const Skin &skin )
{
- Skin skin( name, fileNameInfix );
-
- QString skinPath = "opieplayer2/skins/" + name;
backgroundPixmap = skin.backgroundImage();
buttonUpImage = skin.buttonUpImage();
buttonDownImage = skin.buttonDownImage();
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h
index 0fe4772..9f13677 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.h
+++ b/noncore/multimedia/opieplayer2/mediawidget.h
@@ -106,7 +106,7 @@ protected:
Button setupButton( const SkinButtonInfo &buttonInfo, const Skin &skin );
void loadDefaultSkin( const SkinButtonInfo *skinInfo, uint buttonCount, const QString &fileNameInfix = QString::null );
- void loadSkin( const SkinButtonInfo *skinInfo, uint buttonCount, const QString &name, const QString &fileNameInfix );
+ void loadSkin( const SkinButtonInfo *skinInfo, uint buttonCount, const Skin &skin );
virtual void closeEvent( QCloseEvent * );