Diffstat (limited to 'noncore/applets/notesapplet/notesappletimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/notesapplet/notesappletimpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/applets/notesapplet/notesappletimpl.cpp b/noncore/applets/notesapplet/notesappletimpl.cpp index 93de433..8a9da7f 100644 --- a/noncore/applets/notesapplet/notesappletimpl.cpp +++ b/noncore/applets/notesapplet/notesappletimpl.cpp | |||
@@ -1,41 +1,41 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 L.J. Potter <llornkcor@handhelds.org> | 2 | ** Copyright (C) 2002 L.J. Potter <llornkcor@handhelds.org> |
3 | ** | 3 | ** |
4 | ** | 4 | ** |
5 | ** This file may be distributed and/or modified under the terms of the | 5 | ** This file may be distributed and/or modified under the terms of the |
6 | ** GNU General Public License version 2 as published by the Free Software | 6 | ** GNU General Public License version 2 as published by the Free Software |
7 | ** Foundation and appearing in the file LICENSE.GPL included in the | 7 | ** Foundation and appearing in the file LICENSE.GPL included in the |
8 | ** packaging of this file. | 8 | ** packaging of this file. |
9 | ** | 9 | ** |
10 | ** | 10 | ** |
11 | **********************************************************************/ | 11 | **********************************************************************/ |
12 | #include "notes.h" | 12 | #include "notes.h" |
13 | #include "notesappletimpl.h" | 13 | #include "notesappletimpl.h" |
14 | 14 | ||
15 | 15 | ||
16 | NotesAppletImpl::NotesAppletImpl() | 16 | NotesAppletImpl::NotesAppletImpl() |
17 | : notes(0), ref(0) { | 17 | : notes(0){ |
18 | } | 18 | } |
19 | 19 | ||
20 | NotesAppletImpl::~NotesAppletImpl() { | 20 | NotesAppletImpl::~NotesAppletImpl() { |
21 | // not needed though cause we should have a valid parent | 21 | // not needed though cause we should have a valid parent |
22 | delete notes; | 22 | delete notes; |
23 | } | 23 | } |
24 | 24 | ||
25 | QWidget *NotesAppletImpl::applet( QWidget *parent ) { | 25 | QWidget *NotesAppletImpl::applet( QWidget *parent ) { |
26 | if ( !notes ) | 26 | if ( !notes ) |
27 | notes = new NotesApplet( parent ); | 27 | notes = new NotesApplet( parent ); |
28 | return notes; | 28 | return notes; |
29 | } | 29 | } |
30 | 30 | ||
31 | int NotesAppletImpl::position() const { | 31 | int NotesAppletImpl::position() const { |
32 | return 6; | 32 | return 6; |
33 | } | 33 | } |
34 | 34 | ||
35 | QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { | 35 | QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { |
36 | *iface = 0; | 36 | *iface = 0; |
37 | if ( uuid == IID_QUnknown ) | 37 | if ( uuid == IID_QUnknown ) |
38 | *iface = this; | 38 | *iface = this; |
39 | else if ( uuid == IID_TaskbarApplet ) | 39 | else if ( uuid == IID_TaskbarApplet ) |
40 | *iface = this; | 40 | *iface = this; |
41 | else | 41 | else |