author | simon <simon> | 2002-12-11 01:09:30 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-11 01:09:30 (UTC) |
commit | 7e71955ef58a502d6a6dd2384c3f55bd852d649a (patch) (side-by-side diff) | |
tree | 99096f2de6d579ddfa461495cddd07f40859e4d4 /noncore/multimedia/opieplayer2/videowidget.cpp | |
parent | 212b7605f9e86d2161e11f65498c37acd1863300 (diff) | |
download | opie-7e71955ef58a502d6a6dd2384c3f55bd852d649a.zip opie-7e71955ef58a502d6a6dd2384c3f55bd852d649a.tar.gz opie-7e71955ef58a502d6a6dd2384c3f55bd852d649a.tar.bz2 |
- centralize more of the skin loading code, so it can be factored out later
more easily
Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 0047ac0..bc47717 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -186,14 +186,5 @@ void VideoWidget::setDisplayType( MediaPlayerState::DisplayType displayType ) void VideoWidget::loadSkin() { - Config cfg("OpiePlayer"); - cfg.setGroup("Options"); - QString skin = cfg.readEntry("Skin","default"); - - QString skinPath = "opieplayer2/skins/" + skin; - backgroundPixmap = QPixmap( Resource::loadPixmap( QString("%1/background").arg(skinPath) ) ); - buttonUpImage = QImage( Resource::loadImage( QString("%1/skinV_up").arg(skinPath) ) ); - buttonDownImage = QImage( Resource::loadImage( QString("%1/skinV_down").arg(skinPath) ) ); - - setupButtons( skinInfo, buttonCount, QPEApplication::qpeDir() + "/pics/" + skinPath + "/skinV_mask_", buttonUpImage.size() ); + loadDefaultSkin( skinInfo, buttonCount, "V" ); setBackgroundPixmap( backgroundPixmap ); |