Diffstat (limited to 'core/pim/addressbook/abtable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abtable.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp index 30d749c..0be7d1a 100644 --- a/core/pim/addressbook/abtable.cpp +++ b/core/pim/addressbook/abtable.cpp | |||
@@ -176,25 +176,24 @@ void AbTable::setContacts( const Opie::OPimContactAccess::List& viewList ) | |||
176 | } | 176 | } |
177 | 177 | ||
178 | void AbTable::setOrderedList( const QValueList<int> ordered ) | 178 | void AbTable::setOrderedList( const QValueList<int> ordered ) |
179 | { | 179 | { |
180 | intFields = ordered; | 180 | intFields = ordered; |
181 | } | 181 | } |
182 | 182 | ||
183 | 183 | ||
184 | bool AbTable::selectContact( int UID ) | 184 | bool AbTable::selectContact( int UID ) |
185 | { | 185 | { |
186 | odebug << "AbTable::selectContact( " << UID << " )" << oendl; | 186 | odebug << "AbTable::selectContact( " << UID << " )" << oendl; |
187 | int rows = numRows(); | 187 | int rows = numRows(); |
188 | Opie::OPimContact* foundContact = 0l; | ||
189 | bool found = false; | 188 | bool found = false; |
190 | 189 | ||
191 | setPaintingEnabled( FALSE ); | 190 | setPaintingEnabled( FALSE ); |
192 | odebug << "Search start" << oendl; | 191 | odebug << "Search start" << oendl; |
193 | for ( int r = 0; r < rows; ++r ) { | 192 | for ( int r = 0; r < rows; ++r ) { |
194 | if ( m_viewList.uidAt( r ) == UID ){ | 193 | if ( m_viewList.uidAt( r ) == UID ){ |
195 | ensureCellVisible( r, 0 ); | 194 | ensureCellVisible( r, 0 ); |
196 | setCurrentCell( r, 0 ); | 195 | setCurrentCell( r, 0 ); |
197 | found = true; | 196 | found = true; |
198 | break; | 197 | break; |
199 | } | 198 | } |
200 | } | 199 | } |
@@ -346,25 +345,25 @@ void AbTable::keyPressEvent( QKeyEvent *e ) | |||
346 | // emit signalKeyUp(); | 345 | // emit signalKeyUp(); |
347 | // break; | 346 | // break; |
348 | // case Qt::Key_Down: | 347 | // case Qt::Key_Down: |
349 | // odebug << "b" << oendl; | 348 | // odebug << "b" << oendl; |
350 | // emit signalKeyDown(); | 349 | // emit signalKeyDown(); |
351 | // break; | 350 | // break; |
352 | default: | 351 | default: |
353 | QTable::keyPressEvent( e ); | 352 | QTable::keyPressEvent( e ); |
354 | } | 353 | } |
355 | 354 | ||
356 | } | 355 | } |
357 | 356 | ||
358 | void AbTable::moveTo( char c ) | 357 | void AbTable::moveTo( char /*c*/ ) |
359 | { | 358 | { |
360 | odebug << "void AbTable::moveTo( char c ) NOT IMPLEMENTED !!" << oendl; | 359 | odebug << "void AbTable::moveTo( char c ) NOT IMPLEMENTED !!" << oendl; |
361 | 360 | ||
362 | #if 0 | 361 | #if 0 |
363 | int rows = numRows(); | 362 | int rows = numRows(); |
364 | QString value; | 363 | QString value; |
365 | AbTableItem *abi; | 364 | AbTableItem *abi; |
366 | int r; | 365 | int r; |
367 | if ( asc ) { | 366 | if ( asc ) { |
368 | r = 0; | 367 | r = 0; |
369 | while ( r < rows-1) { | 368 | while ( r < rows-1) { |
370 | abi = static_cast<AbTableItem*>( item(r, 0) ); | 369 | abi = static_cast<AbTableItem*>( item(r, 0) ); |