diff options
| author | Mavridis Philippe <mavridisf@gmail.com> | 2023-11-24 23:25:16 +0200 |
|---|---|---|
| committer | Mavridis Philippe <mavridisf@gmail.com> | 2023-11-25 16:15:52 +0200 |
| commit | cdcc24c6bba3b2d2f8b328c7a1c4abdad3d358e7 (patch) | |
| tree | fd01b6eabde99d71f6c6f45a8e61c205341408a1 /ksnapshot/ksnapshotiface.h | |
| parent | 57ade68197b2c160aff51b75be3cbc17f682547c (diff) | |
| download | tdegraphics-cdcc24c6.tar.gz tdegraphics-cdcc24c6.zip | |
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 <mavridisf@gmail.com>
(cherry picked from commit d7130aacf9ea286af38bb61578fe32a0e4ea2642)
Diffstat (limited to 'ksnapshot/ksnapshotiface.h')
| -rw-r--r-- | ksnapshot/ksnapshotiface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ksnapshot/ksnapshotiface.h b/ksnapshot/ksnapshotiface.h index 5136b0ba..e8ac5158 100644 --- a/ksnapshot/ksnapshotiface.h +++ b/ksnapshot/ksnapshotiface.h @@ -12,6 +12,7 @@ #define __KS_IFACE_H #include <dcopobject.h> +#include <tqpixmap.h> class KSnapshotIface : virtual public DCOPObject { @@ -60,6 +61,10 @@ class KSnapshotIface : virtual public DCOPObject /** Exit KSnapshot **/ virtual void exit() = 0; + + /** Set image, for applications which want to make use of KSnapshot's UI + and interface with their own images */ + virtual void setPixmap(const TQPixmap &newImage) = 0; }; #endif |
