Diffstat (limited to 'core/applets/clipboardapplet/clipboard.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/clipboardapplet/clipboard.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/clipboardapplet/clipboard.h b/core/applets/clipboardapplet/clipboard.h index ec87d39..bbda0ff 100644 --- a/core/applets/clipboardapplet/clipboard.h +++ b/core/applets/clipboardapplet/clipboard.h | |||
@@ -11,47 +11,48 @@ | |||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef __CLIPBOARD_APPLET_H__ | 20 | #ifndef __CLIPBOARD_APPLET_H__ |
21 | #define __CLIPBOARD_APPLET_H__ | 21 | #define __CLIPBOARD_APPLET_H__ |
22 | 22 | ||
23 | #include <qwidget.h> | 23 | #include <qwidget.h> |
24 | #include <qpixmap.h> | 24 | #include <qpixmap.h> |
25 | #include <qstringlist.h> | 25 | #include <qstringlist.h> |
26 | 26 | ||
27 | class QTimer; | 27 | class QTimer; |
28 | 28 | ||
29 | class ClipboardApplet : public QWidget | 29 | class ClipboardApplet : public QWidget |
30 | { | 30 | { |
31 | Q_OBJECT | 31 | Q_OBJECT |
32 | public: | 32 | public: |
33 | ClipboardApplet ( QWidget *parent = 0, const char *name=0 ); | 33 | ClipboardApplet ( QWidget *parent = 0, const char *name=0 ); |
34 | ~ClipboardApplet ( ); | 34 | ~ClipboardApplet ( ); |
35 | static int position(); | ||
35 | 36 | ||
36 | protected: | 37 | protected: |
37 | void mousePressEvent ( QMouseEvent *); | 38 | void mousePressEvent ( QMouseEvent *); |
38 | void paintEvent ( QPaintEvent* ); | 39 | void paintEvent ( QPaintEvent* ); |
39 | 40 | ||
40 | private slots: | 41 | private slots: |
41 | void action ( int ); | 42 | void action ( int ); |
42 | void newData ( ); | 43 | void newData ( ); |
43 | void shutdown ( ); | 44 | void shutdown ( ); |
44 | 45 | ||
45 | private: | 46 | private: |
46 | QPopupMenu * m_menu; | 47 | QPopupMenu * m_menu; |
47 | QStringList m_history; | 48 | QStringList m_history; |
48 | bool m_dirty; | 49 | bool m_dirty; |
49 | QString m_lasttext; | 50 | QString m_lasttext; |
50 | QTimer * m_timer; | 51 | QTimer * m_timer; |
51 | 52 | ||
52 | QPixmap m_clipboardPixmap; | 53 | QPixmap m_clipboardPixmap; |
53 | }; | 54 | }; |
54 | 55 | ||
55 | 56 | ||
56 | #endif // __CLIPBOARD_APPLET_H__ | 57 | #endif // __CLIPBOARD_APPLET_H__ |
57 | 58 | ||