From d7130aacf9ea286af38bb61578fe32a0e4ea2642 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Fri, 24 Nov 2023 23:25:16 +0200 Subject: ksnapshot: add setPixmap DCOP call Can be useful to integrate KSnapshot with applications that can take their own screenshots better (e.g. a media player can use a single frame from a video instead of a lower-quality real screen grab). Signed-off-by: Mavridis Philippe --- ksnapshot/ksnapshot.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ksnapshot/ksnapshot.cpp') diff --git a/ksnapshot/ksnapshot.cpp b/ksnapshot/ksnapshot.cpp index 4b18d30e..be4fed35 100644 --- a/ksnapshot/ksnapshot.cpp +++ b/ksnapshot/ksnapshot.cpp @@ -589,6 +589,11 @@ void KSnapshot::setURL( const TQString &url ) updateCaption(); } +void KSnapshot::setPixmap(const TQPixmap &newImage) { + snapshot = newImage; + updatePreview(); +} + void KSnapshot::setGrabMode( int m ) { mainWidget->setMode( m ); -- cgit v1.2.1