Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/paste.cpp
Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Line(s) | 287 | if (job) { | |||
---|---|---|---|---|---|
288 | KJobWidgets::setWindow(job, widget); | 288 | KJobWidgets::setWindow(job, widget); | ||
289 | return job; | 289 | return job; | ||
290 | } | 290 | } | ||
291 | } | 291 | } | ||
292 | 292 | | |||
293 | return pasteMimeDataImpl(mimeData, destUrl, QString(), widget, true /*clipboard*/); | 293 | return pasteMimeDataImpl(mimeData, destUrl, QString(), widget, true /*clipboard*/); | ||
294 | } | 294 | } | ||
295 | 295 | | |||
296 | // deprecated. KF6: remove | 296 | QString KIO::pasteActionText() | ||
297 | KIOWIDGETS_DEPRECATED_EXPORT QString KIO::pasteActionText() | | |||
298 | { | 297 | { | ||
299 | const QMimeData *mimeData = QApplication::clipboard()->mimeData(); | 298 | const QMimeData *mimeData = QApplication::clipboard()->mimeData(); | ||
300 | const QList<QUrl> urls = KUrlMimeData::urlsFromMimeData(mimeData); | 299 | const QList<QUrl> urls = KUrlMimeData::urlsFromMimeData(mimeData); | ||
301 | if (!urls.isEmpty()) { | 300 | if (!urls.isEmpty()) { | ||
302 | if (urls.first().isLocalFile()) { | 301 | if (urls.first().isLocalFile()) { | ||
303 | return i18np("&Paste File", "&Paste %1 Files", urls.count()); | 302 | return i18np("&Paste File", "&Paste %1 Files", urls.count()); | ||
304 | } else { | 303 | } else { | ||
305 | return i18np("&Paste URL", "&Paste %1 URLs", urls.count()); | 304 | return i18np("&Paste URL", "&Paste %1 URLs", urls.count()); | ||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |