summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/ablabel.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/addressbook/ablabel.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/ablabel.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp
index 70a66a0..8216d6f 100644
--- a/core/pim/addressbook/ablabel.cpp
+++ b/core/pim/addressbook/ablabel.cpp
@@ -17,13 +17,13 @@
** not clear to you.
**
**********************************************************************/
#include "ablabel.h"
-
+#include <opie2/odebug.h>
AbLabel::AbLabel( QWidget *parent, const char *name ):
QTextView( parent, name ),
m_empty( false )
{
}
@@ -92,21 +92,21 @@ void AbLabel::keyPressEvent( QKeyEvent *e )
{
// Commonly handled keys
if ( !m_empty ){
switch( e->key() ) {
case Qt::Key_Left:
- qWarning( "Left..");
+ Opie::Core::owarn << "Left.." << oendl;
case Qt::Key_Right:
- qWarning( "Right..");
+ Opie::Core::owarn << "Right.." << oendl;
case Qt::Key_F33:
- qWarning( "OK..");
+ Opie::Core::owarn << "OK.." << oendl;
emit signalOkPressed();
break;
case Qt::Key_Up:
- qWarning( "UP..");
+ Opie::Core::owarn << "Up.." << oendl;
if ( ( visibleHeight() < contentsHeight() ) &&
( verticalScrollBar()->value() > verticalScrollBar()->minValue() ) )
scrollBy( 0, -(visibleHeight()-20) );
else {
--m_itCurContact;
if ( *m_itCurContact != Opie::OPimContact() )
@@ -114,16 +114,16 @@ void AbLabel::keyPressEvent( QKeyEvent *e )
else
m_itCurContact = m_viewList.end();
}
break;
case Qt::Key_Down:
- qWarning( "DOWN..");
-// qWarning( "visible: %d, content: %d",visibleHeight(),contentsHeight());
-// qWarning( "value: %d; barMaxValue: %d", verticalScrollBar()->value()
-// , verticalScrollBar()->maxValue() );
+ Opie::Core::owarn << "Down.." << oendl;
+// Opie::Core::owarn << "Visible: " << visibleHeight() << ", content: " << contentHeight() << oendl;
+// Opie::Core::owarn << "Value: " << verticalScrollBar()->value()
+// << ", barMaxValue: " << verticalScrollBar()->maxValue() << oendl;
if ( ( visibleHeight() < contentsHeight() ) &&
( verticalScrollBar()->value() < verticalScrollBar()->maxValue() ) )
scrollBy( 0, visibleHeight()-20 );
else {
++m_itCurContact;
if ( *m_itCurContact != Opie::OPimContact() )