Don't let the textscroller in shaded mode use more space then available.

This commit is contained in:
Tobias Rundstrom 2006-03-05 19:11:48 -03:00
parent 94404d0bc1
commit d88f3b273c
3 changed files with 5 additions and 4 deletions

View file

@ -48,7 +48,7 @@ SkinList::SkinList (QWidget *parent) : QListWidget (parent)
path.append ("/.xmms2/clients/promoe/skins/");
QDir d;
new SkinChooserItem (QIcon (":CleanAMP/main.bmp"), "CleanAMP (default)", ":CleanAMP/", this);
new SkinChooserItem (QIcon (":CleanAMP/main.png"), "CleanAMP (default)", ":CleanAMP/", this);
d.setPath (path);
d.setFilter (QDir::Dirs);
@ -57,7 +57,7 @@ SkinList::SkinList (QWidget *parent) : QListWidget (parent)
for (int i = 0; i < list.size(); ++i) {
QFileInfo fileInfo = list.at(i);
QDir dir (fileInfo.filePath());
QPixmap p = Skin::getPixmap ("main.bmp", dir);
QPixmap p = Skin::getPixmap ("main", dir);
if (!p.isNull()) {
new SkinChooserItem (QIcon (p), dir.dirName(), dir.absolutePath(), this);
}