Diffstat (limited to 'kaddressbook/views/kaddressbookiconview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/views/kaddressbookiconview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/views/kaddressbookiconview.h b/kaddressbook/views/kaddressbookiconview.h index acfcd71..b0b9fea 100644 --- a/kaddressbook/views/kaddressbookiconview.h +++ b/kaddressbook/views/kaddressbookiconview.h | |||
@@ -42,48 +42,49 @@ class QIconDragItem; | |||
42 | class KAddressBookIconView; | 42 | class KAddressBookIconView; |
43 | 43 | ||
44 | namespace KABC { class AddressBook; } | 44 | namespace KABC { class AddressBook; } |
45 | 45 | ||
46 | /** This is an example kaddressbook view that is implemented using | 46 | /** This is an example kaddressbook view that is implemented using |
47 | * KIconView. This view is not the most useful view, but it displays | 47 | * KIconView. This view is not the most useful view, but it displays |
48 | * how simple implementing a new view can be. | 48 | * how simple implementing a new view can be. |
49 | */ | 49 | */ |
50 | class KAddressBookIconView : public KAddressBookView | 50 | class KAddressBookIconView : public KAddressBookView |
51 | { | 51 | { |
52 | Q_OBJECT | 52 | Q_OBJECT |
53 | 53 | ||
54 | public: | 54 | public: |
55 | KAddressBookIconView( KABC::AddressBook *ab, QWidget *parent, | 55 | KAddressBookIconView( KABC::AddressBook *ab, QWidget *parent, |
56 | const char *name = 0 ); | 56 | const char *name = 0 ); |
57 | virtual ~KAddressBookIconView(); | 57 | virtual ~KAddressBookIconView(); |
58 | 58 | ||
59 | virtual QStringList selectedUids(); | 59 | virtual QStringList selectedUids(); |
60 | virtual QString type() const { return "Icon"; } | 60 | virtual QString type() const { return "Icon"; } |
61 | void doSearch( const QString& s ,KABC::Field *field ); | 61 | void doSearch( const QString& s ,KABC::Field *field ); |
62 | 62 | ||
63 | virtual void readConfig(KConfig *config); | 63 | virtual void readConfig(KConfig *config); |
64 | virtual void scrollUP(); | 64 | virtual void scrollUP(); |
65 | virtual void scrollDOWN(); | 65 | virtual void scrollDOWN(); |
66 | virtual void setFocusAV(); | ||
66 | 67 | ||
67 | public slots: | 68 | public slots: |
68 | void refresh(QString uid = QString::null); | 69 | void refresh(QString uid = QString::null); |
69 | #ifndef KAB_EMBEDDED | 70 | #ifndef KAB_EMBEDDED |
70 | //MOC_SKIP_BEGIN | 71 | //MOC_SKIP_BEGIN |
71 | void setSelected(QString uid = QString::null, bool selected = true); | 72 | void setSelected(QString uid = QString::null, bool selected = true); |
72 | //MOC_SKIP_END | 73 | //MOC_SKIP_END |
73 | #else //KAB_EMBEDDED | 74 | #else //KAB_EMBEDDED |
74 | //US my MOC do not like default parameters ??? | 75 | //US my MOC do not like default parameters ??? |
75 | void setSelected(QString uid, bool selected); | 76 | void setSelected(QString uid, bool selected); |
76 | #endif //KAB_EMBEDDED | 77 | #endif //KAB_EMBEDDED |
77 | 78 | ||
78 | protected slots: | 79 | protected slots: |
79 | void addresseeExecuted(QIconViewItem *item); | 80 | void addresseeExecuted(QIconViewItem *item); |
80 | void addresseeSelected(); | 81 | void addresseeSelected(); |
81 | 82 | ||
82 | private: | 83 | private: |
83 | AddresseeIconView *mIconView; | 84 | AddresseeIconView *mIconView; |
84 | QPtrList<AddresseeIconViewItem> mIconList; | 85 | QPtrList<AddresseeIconViewItem> mIconList; |
85 | }; | 86 | }; |
86 | 87 | ||
87 | 88 | ||
88 | #ifndef KAB_EMBEDDED | 89 | #ifndef KAB_EMBEDDED |
89 | //MOC_SKIP_BEGIN | 90 | //MOC_SKIP_BEGIN |