You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
285 B

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