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

@ -119,7 +119,8 @@ Skin::getPixmap (QString f, QDir dir)
QFileInfoList list = dir.entryInfoList();
for (int i = 0; i < list.size(); ++i) {
QFileInfo fileInfo = list.at(i);
if (fileInfo.fileName().toLower() == f) {
QString fname = fileInfo.fileName().toLower();
if (fname.section(".", 0, 0) == f) {
return QPixmap (fileInfo.filePath());
}
}