Changeset View
Changeset View
Standalone View
Standalone View
src/panels/information/informationpanelcontent.cpp
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Line(s) | 161 | } else { | |||
---|---|---|---|---|---|
165 | // with a small delay to prevent a flickering when the next preview | 165 | // with a small delay to prevent a flickering when the next preview | ||
166 | // can be shown within a short timeframe. This timer is not started | 166 | // can be shown within a short timeframe. This timer is not started | ||
167 | // for directories, as directory previews might fail and return the | 167 | // for directories, as directory previews might fail and return the | ||
168 | // same icon. | 168 | // same icon. | ||
169 | if (!item.isDir()) { | 169 | if (!item.isDir()) { | ||
170 | m_outdatedPreviewTimer->start(); | 170 | m_outdatedPreviewTimer->start(); | ||
171 | } | 171 | } | ||
172 | 172 | | |||
173 | m_previewJob = new KIO::PreviewJob(KFileItemList() << item, QSize(m_preview->width(), m_preview->height())); | 173 | QStringList plugins = KIO::PreviewJob::availablePlugins(); | ||
174 | m_previewJob = new KIO::PreviewJob(KFileItemList() << item, | ||||
175 | QSize(m_preview->width(), m_preview->height()), | ||||
176 | &plugins); | ||||
174 | m_previewJob->setScaleType(KIO::PreviewJob::Unscaled); | 177 | m_previewJob->setScaleType(KIO::PreviewJob::Unscaled); | ||
175 | m_previewJob->setIgnoreMaximumSize(item.isLocalFile()); | 178 | m_previewJob->setIgnoreMaximumSize(item.isLocalFile()); | ||
176 | if (m_previewJob->uiDelegate()) { | 179 | if (m_previewJob->uiDelegate()) { | ||
177 | KJobWidgets::setWindow(m_previewJob, this); | 180 | KJobWidgets::setWindow(m_previewJob, this); | ||
178 | } | 181 | } | ||
179 | 182 | | |||
180 | connect(m_previewJob.data(), &KIO::PreviewJob::gotPreview, | 183 | connect(m_previewJob.data(), &KIO::PreviewJob::gotPreview, | ||
181 | this, &InformationPanelContent::showPreview); | 184 | this, &InformationPanelContent::showPreview); | ||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |