Diffstat (limited to 'kaddressbook/kaddressbookview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/kaddressbookview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kaddressbook/kaddressbookview.cpp b/kaddressbook/kaddressbookview.cpp index 8062354..424d52a 100644 --- a/kaddressbook/kaddressbookview.cpp +++ b/kaddressbook/kaddressbookview.cpp | |||
@@ -99,64 +99,68 @@ QString KAddressBookView::selectedEmails() | |||
99 | } | 99 | } |
100 | 100 | ||
101 | return emailAddrs; | 101 | return emailAddrs; |
102 | } | 102 | } |
103 | 103 | ||
104 | KABC::Addressee::List KAddressBookView::addressees() | 104 | KABC::Addressee::List KAddressBookView::addressees() |
105 | { | 105 | { |
106 | KABC::Addressee::List addresseeList; | 106 | KABC::Addressee::List addresseeList; |
107 | 107 | ||
108 | KABC::AddressBook::Iterator it; | 108 | KABC::AddressBook::Iterator it; |
109 | for (it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { | 109 | for (it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { |
110 | if ( mFilter.filterAddressee( *it ) ) | 110 | if ( mFilter.filterAddressee( *it ) ) |
111 | addresseeList.append( *it ); | 111 | addresseeList.append( *it ); |
112 | } | 112 | } |
113 | 113 | ||
114 | return addresseeList; | 114 | return addresseeList; |
115 | } | 115 | } |
116 | 116 | ||
117 | void KAddressBookView::initGUI() | 117 | void KAddressBookView::initGUI() |
118 | { | 118 | { |
119 | // Create the layout | 119 | // Create the layout |
120 | QVBoxLayout *layout = new QVBoxLayout( this ); | 120 | QVBoxLayout *layout = new QVBoxLayout( this ); |
121 | 121 | ||
122 | // Add the view widget | 122 | // Add the view widget |
123 | mViewWidget = new QWidget( this ); | 123 | mViewWidget = new QWidget( this ); |
124 | layout->addWidget( mViewWidget ); | 124 | layout->addWidget( mViewWidget ); |
125 | } | 125 | } |
126 | 126 | ||
127 | KABC::Field::List KAddressBookView::fields() const | 127 | KABC::Field::List KAddressBookView::fields() const |
128 | { | 128 | { |
129 | return mFieldList; | 129 | return mFieldList; |
130 | } | 130 | } |
131 | KABC::Field::List KAddressBookView::allFields() const | ||
132 | { | ||
133 | return KABC::Field::allFields(); | ||
134 | } | ||
131 | 135 | ||
132 | void KAddressBookView::setFilter( const Filter &filter ) | 136 | void KAddressBookView::setFilter( const Filter &filter ) |
133 | { | 137 | { |
134 | mFilter = filter; | 138 | mFilter = filter; |
135 | } | 139 | } |
136 | 140 | ||
137 | KAddressBookView::DefaultFilterType KAddressBookView::defaultFilterType() const | 141 | KAddressBookView::DefaultFilterType KAddressBookView::defaultFilterType() const |
138 | { | 142 | { |
139 | return mDefaultFilterType; | 143 | return mDefaultFilterType; |
140 | } | 144 | } |
141 | 145 | ||
142 | const QString &KAddressBookView::defaultFilterName() const | 146 | const QString &KAddressBookView::defaultFilterName() const |
143 | { | 147 | { |
144 | return mDefaultFilterName; | 148 | return mDefaultFilterName; |
145 | } | 149 | } |
146 | 150 | ||
147 | KABC::AddressBook *KAddressBookView::addressBook() const | 151 | KABC::AddressBook *KAddressBookView::addressBook() const |
148 | { | 152 | { |
149 | return mAddressBook; | 153 | return mAddressBook; |
150 | } | 154 | } |
151 | 155 | ||
152 | QWidget *KAddressBookView::viewWidget() | 156 | QWidget *KAddressBookView::viewWidget() |
153 | { | 157 | { |
154 | return mViewWidget; | 158 | return mViewWidget; |
155 | } | 159 | } |
156 | 160 | ||
157 | ViewConfigureWidget *ViewFactory::configureWidget( KABC::AddressBook *ab, | 161 | ViewConfigureWidget *ViewFactory::configureWidget( KABC::AddressBook *ab, |
158 | QWidget *parent, | 162 | QWidget *parent, |
159 | const char *name ) | 163 | const char *name ) |
160 | { | 164 | { |
161 | return new ViewConfigureWidget( ab, parent, name ); | 165 | return new ViewConfigureWidget( ab, parent, name ); |
162 | } | 166 | } |