KShare/screenshotutil.hpp
ArsenArsen d44aae4f43 Fix a memory leak with the crop editor
I did not properly handle deleting the editor so it would stay in memory permanently.
2017-07-02 20:51:15 +02:00

15 lines
398 B
C++

#ifndef SCREENSHOTUTIL_HPP
#define SCREENSHOTUTIL_HPP
#include <QApplication>
#include <QWidget>
namespace screenshotutil {
QPixmap fullscreen(bool cursor = true);
QPixmap fullscreenArea(bool cursor = true, qreal x = 0, qreal y = 0, qreal w = -1, qreal h = -1);
QPixmap window(WId wid, QScreen *w = QApplication::primaryScreen());
void toClipboard(QString value);
}
#endif // SCREENSHOTUTIL_HPP