KShare/uploaders/default/clipboarduploader.cpp
2017-04-25 22:17:36 +02:00

12 lines
285 B
C++

#include "clipboarduploader.hpp"
#include <QApplication>
#include <QClipboard>
#include <notifications.hpp>
void ClipboardUploader::doUpload(QPixmap *pixmap)
{
QApplication::clipboard()->setImage(pixmap->toImage());
notifications::notify("KShare", "Copied to clipboard!");
}