Diffstat (limited to 'core/applets/screenshotapplet') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/screenshotapplet/screenshotappletimpl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/applets/screenshotapplet/screenshotappletimpl.cpp b/core/applets/screenshotapplet/screenshotappletimpl.cpp index a537162..4a7512e 100644 --- a/core/applets/screenshotapplet/screenshotappletimpl.cpp +++ b/core/applets/screenshotapplet/screenshotappletimpl.cpp | |||
@@ -29,36 +29,38 @@ ScreenshotAppletImpl::ScreenshotAppletImpl() | |||
29 | ScreenshotAppletImpl::~ScreenshotAppletImpl() | 29 | ScreenshotAppletImpl::~ScreenshotAppletImpl() |
30 | { | 30 | { |
31 | delete screenshot; | 31 | delete screenshot; |
32 | } | 32 | } |
33 | 33 | ||
34 | QWidget *ScreenshotAppletImpl::applet( QWidget *parent ) | 34 | QWidget *ScreenshotAppletImpl::applet( QWidget *parent ) |
35 | { | 35 | { |
36 | if ( !screenshot ) | 36 | if ( !screenshot ) |
37 | screenshot = new ScreenshotApplet( parent ); | 37 | screenshot = new ScreenshotApplet( parent ); |
38 | return screenshot; | 38 | return screenshot; |
39 | } | 39 | } |
40 | 40 | ||
41 | int ScreenshotAppletImpl::position() const | 41 | int ScreenshotAppletImpl::position() const |
42 | { | 42 | { |
43 | return 6; | 43 | return 6; |
44 | } | 44 | } |
45 | 45 | ||
46 | QRESULT ScreenshotAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 46 | QRESULT ScreenshotAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
47 | { | 47 | { |
48 | *iface = 0; | 48 | *iface = 0; |
49 | if ( uuid == IID_QUnknown ) | 49 | if ( uuid == IID_QUnknown ) |
50 | *iface = this; | 50 | *iface = this; |
51 | else if ( uuid == IID_TaskbarApplet ) | 51 | else if ( uuid == IID_TaskbarApplet ) |
52 | *iface = this; | 52 | *iface = this; |
53 | 53 | else | |
54 | return QS_FALSE; | ||
55 | |||
54 | if ( *iface ) | 56 | if ( *iface ) |
55 | (*iface)->addRef(); | 57 | (*iface)->addRef(); |
56 | return QS_OK; | 58 | return QS_OK; |
57 | } | 59 | } |
58 | 60 | ||
59 | Q_EXPORT_INTERFACE() | 61 | Q_EXPORT_INTERFACE() |
60 | { | 62 | { |
61 | Q_CREATE_INSTANCE( ScreenshotAppletImpl ) | 63 | Q_CREATE_INSTANCE( ScreenshotAppletImpl ) |
62 | } | 64 | } |
63 | 65 | ||
64 | 66 | ||