Changeset View
Changeset View
Standalone View
Standalone View
src/ExportManager.cpp
Show First 20 Lines • Show All 524 Lines • ▼ Show 20 Line(s) | |||||
525 | // misc helpers | 525 | // misc helpers | ||
526 | 526 | | |||
527 | void ExportManager::doCopyToClipboard(bool notify) | 527 | void ExportManager::doCopyToClipboard(bool notify) | ||
528 | { | 528 | { | ||
529 | auto data = new QMimeData(); | 529 | auto data = new QMimeData(); | ||
530 | data->setImageData(mSavePixmap.toImage()); | 530 | data->setImageData(mSavePixmap.toImage()); | ||
531 | data->setData(QStringLiteral("x-kde-force-image-copy"), QByteArray()); | 531 | data->setData(QStringLiteral("x-kde-force-image-copy"), QByteArray()); | ||
532 | QApplication::clipboard()->setMimeData(data, QClipboard::Clipboard); | 532 | QApplication::clipboard()->setMimeData(data, QClipboard::Clipboard); | ||
533 | 533 | emit imageCopied(); | |||
534 | if (notify) { | 534 | if (notify) { | ||
535 | emit forceNotify(QUrl()); | 535 | emit forceNotify(QUrl()); | ||
536 | } | 536 | } | ||
537 | } | 537 | } | ||
538 | 538 | | |||
539 | void ExportManager::doPrint(QPrinter *printer) | 539 | void ExportManager::doPrint(QPrinter *printer) | ||
540 | { | 540 | { | ||
541 | QPainter painter; | 541 | QPainter painter; | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |