Changeset View
Changeset View
Standalone View
Standalone View
krusader/DiskUsage/diskusage.cpp
Show First 20 Lines • Show All 948 Lines • ▼ Show 20 Line(s) | 861 | { | |||
---|---|---|---|---|---|
949 | } | 949 | } | ||
950 | QStackedWidget::keyPressEvent(e); | 950 | QStackedWidget::keyPressEvent(e); | ||
951 | } | 951 | } | ||
952 | 952 | | |||
953 | QPixmap DiskUsage::getIcon(const QString& mime) | 953 | QPixmap DiskUsage::getIcon(const QString& mime) | ||
954 | { | 954 | { | ||
955 | QPixmap icon; | 955 | QPixmap icon; | ||
956 | 956 | | |||
957 | if (!QPixmapCache::find(mime, icon)) { | 957 | if (!QPixmapCache::find(mime, &icon)) { | ||
958 | // get the icon. | 958 | // get the icon. | ||
959 | if (mime == "Broken Link !") // FIXME: this doesn't work anymore - the reported mimetype for a broken link is now "unknown" | 959 | if (mime == "Broken Link !") // FIXME: this doesn't work anymore - the reported mimetype for a broken link is now "unknown" | ||
960 | icon = FileListIcon("file-broken").pixmap(); | 960 | icon = FileListIcon("file-broken").pixmap(); | ||
961 | else { | 961 | else { | ||
962 | QMimeDatabase db; | 962 | QMimeDatabase db; | ||
963 | QMimeType mt = db.mimeTypeForName(mime); | 963 | QMimeType mt = db.mimeTypeForName(mime); | ||
964 | if (mt.isValid()) | 964 | if (mt.isValid()) | ||
965 | icon = FileListIcon(mt.iconName()).pixmap(); | 965 | icon = FileListIcon(mt.iconName()).pixmap(); | ||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |