Diffstat (limited to 'core/pim/addressbook/abtable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abtable.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp index 3fb2214..30d749c 100644 --- a/core/pim/addressbook/abtable.cpp +++ b/core/pim/addressbook/abtable.cpp @@ -120,17 +120,17 @@ AbTable::AbTable( const QValueList<int> order, QWidget *parent, const char *name enablePainting( true ), columnVisible( true ), countNested( 0 ) { - // owarn << "C'tor start" << oendl; + // odebug << "C'tor start" << oendl; setSelectionMode( NoSelection ); init(); setSorting( TRUE ); connect( this, SIGNAL(clicked(int,int,int,const QPoint&)), this, SLOT(itemClicked(int,int)) ); // contactList.clear(); - // owarn << "C'tor end" << oendl; + // odebug << "C'tor end" << oendl; } AbTable::~AbTable() { @@ -150,9 +150,9 @@ void AbTable::init() } void AbTable::setContacts( const Opie::OPimContactAccess::List& viewList ) { - owarn << "AbTable::setContacts()" << oendl; + odebug << "AbTable::setContacts()" << oendl; clear(); m_viewList = viewList; @@ -182,24 +182,24 @@ void AbTable::setOrderedList( const QValueList<int> ordered ) bool AbTable::selectContact( int UID ) { - owarn << "AbTable::selectContact( " << UID << " )" << oendl; + odebug << "AbTable::selectContact( " << UID << " )" << oendl; int rows = numRows(); Opie::OPimContact* foundContact = 0l; bool found = false; setPaintingEnabled( FALSE ); - owarn << "Search start" << oendl; + odebug << "Search start" << oendl; for ( int r = 0; r < rows; ++r ) { if ( m_viewList.uidAt( r ) == UID ){ ensureCellVisible( r, 0 ); setCurrentCell( r, 0 ); found = true; break; } } - owarn << "Search end" << oendl; + odebug << "Search end" << oendl; if ( !found ){ ensureCellVisible( 0,0 ); setCurrentCell( 0, 0 ); @@ -212,9 +212,9 @@ bool AbTable::selectContact( int UID ) #if 0 void AbTable::insertIntoTable( const Opie::OPimContact& cnt, int row ) { - owarn << "void AbTable::insertIntoTable( const Opie::OPimContact& cnt, " + odebug << "void AbTable::insertIntoTable( const Opie::OPimContact& cnt, " << row << " )" << oendl; QString strName; ContactItem contactItem; @@ -282,9 +282,9 @@ int AbTable::currentEntry_UID() } void AbTable::clear() { - owarn << "void AbTable::clear()" << oendl; + odebug << "void AbTable::clear()" << oendl; // contactList.clear(); setPaintingEnabled( FALSE ); for ( int r = 0; r < numRows(); ++r ) { @@ -333,21 +333,21 @@ void AbTable::keyPressEvent( QKeyEvent *e ) if ( key >= 'A' && key <= 'Z' ) moveTo( key ); - // owarn << "Received key .." << oendl; + // odebug << "Received key .." << oendl; switch( e->key() ) { case Qt::Key_Space: case Qt::Key_Return: case Qt::Key_Enter: emit signalSwitch(); break; // case Qt::Key_Up: -// owarn << "a" << oendl; +// odebug << "a" << oendl; // emit signalKeyUp(); // break; // case Qt::Key_Down: -// owarn << "b" << oendl; +// odebug << "b" << oendl; // emit signalKeyDown(); // break; default: QTable::keyPressEvent( e ); @@ -356,9 +356,9 @@ void AbTable::keyPressEvent( QKeyEvent *e ) } void AbTable::moveTo( char c ) { - owarn << "void AbTable::moveTo( char c ) NOT IMPLEMENTED !!" << oendl; + odebug << "void AbTable::moveTo( char c ) NOT IMPLEMENTED !!" << oendl; #if 0 int rows = numRows(); QString value; @@ -422,9 +422,9 @@ void AbTable::resizeRows() { void AbTable::realignTable() { - // owarn << "void AbTable::realignTable()" << oendl; + // odebug << "void AbTable::realignTable()" << oendl; setPaintingEnabled( FALSE ); resizeRows(); @@ -472,9 +472,9 @@ void QTable::paintEmptyArea( QPainter *p, int cx, int cy, int cw, int ch ) void AbTable::fitColumns() { - owarn << "void AbTable::fitColumns()" << oendl; + odebug << "void AbTable::fitColumns()" << oendl; int contentsWidth = visibleWidth() / 2; // Fix to better value // contentsWidth = 130; @@ -484,9 +484,9 @@ void AbTable::fitColumns() showColumn(0); columnVisible = true; } - // owarn << "Width: " << contentsWidth << oendl; + // odebug << "Width: " << contentsWidth << oendl; setColumnWidth( 0, contentsWidth ); adjustColumn(1); if ( columnWidth(1) < contentsWidth ) @@ -496,9 +496,9 @@ void AbTable::fitColumns() } void AbTable::show() { - // owarn << "void AbTable::show()" << oendl; + // odebug << "void AbTable::show()" << oendl; realignTable(); QTable::show(); } @@ -520,13 +520,13 @@ void AbTable::setChoiceNames( const QStringList& list) #endif void AbTable::itemClicked(int,int col) { - // owarn << "AbTable::itemClicked(int, col: " << col << ")" << oendl; + // odebug << "AbTable::itemClicked(int, col: " << col << ")" << oendl; if ( col == 2 ) { return; } else { - // owarn << "Emitting signalSwitch()" << oendl; + // odebug << "Emitting signalSwitch()" << oendl; emit signalSwitch(); } } @@ -561,9 +561,9 @@ QStringList AbTable::choiceSelection(int /*index*/) const void AbTable::updateVisible() { - // owarn << "void AbTable::updateVisible()" << oendl; + // odebug << "void AbTable::updateVisible()" << oendl; int visible, totalRows, row, @@ -597,9 +597,9 @@ void AbTable::updateVisible() void AbTable::setPaintingEnabled( bool e ) { - // owarn << "IN void AbTable::setPaintingEnabled( " << e << " )->Nested: " + // odebug << "IN void AbTable::setPaintingEnabled( " << e << " )->Nested: " // << countNested << oendl; if ( e ) { if ( countNested > 0 ) @@ -614,14 +614,14 @@ void AbTable::setPaintingEnabled( bool e ) ++countNested; enablePainting = false; setUpdatesEnabled( false ); } - // owarn << "OUT void AbTable::setPaintingEnabled( " << e << " )->Nested: " + // odebug << "OUT void AbTable::setPaintingEnabled( " << e << " )->Nested: " // << countNested << oendl; } void AbTable::viewportPaintEvent( QPaintEvent* e ) { - // owarn << "void AbTable::viewportPaintEvent( QPaintEvent* e ) -> " + // odebug << "void AbTable::viewportPaintEvent( QPaintEvent* e ) -> " // << enablePainting << oendl; if ( enablePainting ) QTable::viewportPaintEvent( e ); } @@ -630,9 +630,9 @@ void AbTable::paintCell(QPainter* p, int row, int col, const QRect& cr, bool ) const QColorGroup &cg = colorGroup(); p->save(); - // owarn << "Paint row: " << row << oendl; + // odebug << "Paint row: " << row << oendl; Opie::OPimContact act_contact = m_viewList[row]; // Paint alternating background bars |