Implement single method capture request
The core now has a method requestCapture, which receives a CaptureRequest object with all the needed information. This reduces code duplication in future features.
This commit is contained in:
@@ -140,10 +140,7 @@ CaptureWidget::CaptureWidget(const uint id, const QString &savePath,
|
||||
|
||||
CaptureWidget::~CaptureWidget() {
|
||||
if (m_captureDone) {
|
||||
QByteArray byteArray;
|
||||
QBuffer buffer(&byteArray);
|
||||
this->pixmap().save(&buffer, "PNG");
|
||||
emit captureTaken(m_id, byteArray);
|
||||
emit captureTaken(m_id, this->pixmap());
|
||||
} else {
|
||||
emit captureFailed(m_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user