Add OpenWith... tool
This commit is contained in:
@@ -470,6 +470,9 @@ void CaptureWidget::handleButtonSignal(CaptureTool::Request r) {
|
||||
case CaptureTool::REQ_UPLOAD_TO_IMGUR:
|
||||
uploadToImgur();
|
||||
break;
|
||||
case CaptureTool::REQ_OPEN_APP:
|
||||
openWithProgram();
|
||||
break;
|
||||
case CaptureTool::REQ_MOVE_MODE:
|
||||
m_state = CaptureButton::TYPE_MOVESELECTION;
|
||||
if (m_lastPressedButton) {
|
||||
@@ -613,6 +616,12 @@ void CaptureWidget::uploadToImgur() {
|
||||
close();
|
||||
}
|
||||
|
||||
void CaptureWidget::openWithProgram() {
|
||||
m_captureDone = true;
|
||||
ResourceExporter().captureToProgram(pixmap());
|
||||
close();
|
||||
}
|
||||
|
||||
QRect CaptureWidget::extendedSelection() const {
|
||||
if (m_selection.isNull())
|
||||
return QRect();
|
||||
|
||||
Reference in New Issue
Block a user