summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/TODO4
-rw-r--r--core/pim/addressbook/ablabel.cpp34
-rw-r--r--core/pim/addressbook/version.h2
3 files changed, 27 insertions, 13 deletions
diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO
index 106747e..da9b9c2 100644
--- a/core/pim/addressbook/TODO
+++ b/core/pim/addressbook/TODO
@@ -15,4 +15,2 @@ Feature requests:
15- User center of the joypad to switch back from card to listview ! 15- User center of the joypad to switch back from card to listview !
16- Cursor-UP/Down: Should additionally scroll cardview if it is too large
17 (behaviour should be selectable by configuration)
18 16
@@ -116 +114,3 @@ Fixed/Ready:
116- Fix handling of 3 Firstnames 114- Fix handling of 3 Firstnames
115- Cursor-UP/Down: Should additionally scroll cardview if it is too large
116 (behaviour should be selectable by configuration)
diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp
index 80b57ae..6d8de91 100644
--- a/core/pim/addressbook/ablabel.cpp
+++ b/core/pim/addressbook/ablabel.cpp
@@ -92,2 +92,3 @@ void AbLabel::keyPressEvent( QKeyEvent *e )
92{ 92{
93
93 // Commonly handled keys 94 // Commonly handled keys
@@ -105,7 +106,12 @@ void AbLabel::keyPressEvent( QKeyEvent *e )
105 qWarning( "UP.."); 106 qWarning( "UP..");
106 --m_itCurContact; 107 if ( ( visibleHeight() < contentsHeight() ) &&
107 if ( *m_itCurContact != OContact() ) 108 ( verticalScrollBar()->value() > verticalScrollBar()->minValue() ) )
108 sync(); 109 scrollBy( 0, -(visibleHeight()-20) );
109 else 110 else {
110 m_itCurContact = m_viewList.end(); 111 --m_itCurContact;
112 if ( *m_itCurContact != OContact() )
113 sync();
114 else
115 m_itCurContact = m_viewList.end();
116 }
111 117
@@ -114,7 +120,15 @@ void AbLabel::keyPressEvent( QKeyEvent *e )
114 qWarning( "DOWN.."); 120 qWarning( "DOWN..");
115 ++m_itCurContact; 121 // qWarning( "visible: %d, content: %d",visibleHeight(),contentsHeight());
116 if ( *m_itCurContact != OContact() ) 122 // qWarning( "value: %d; barMaxValue: %d", verticalScrollBar()->value()
117 sync(); 123 // , verticalScrollBar()->maxValue() );
118 else 124 if ( ( visibleHeight() < contentsHeight() ) &&
119 m_itCurContact = m_viewList.begin(); 125 ( verticalScrollBar()->value() < verticalScrollBar()->maxValue() ) )
126 scrollBy( 0, visibleHeight()-20 );
127 else {
128 ++m_itCurContact;
129 if ( *m_itCurContact != OContact() )
130 sync();
131 else
132 m_itCurContact = m_viewList.begin();
133 }
120 break; 134 break;
diff --git a/core/pim/addressbook/version.h b/core/pim/addressbook/version.h
index 0f12bd7..999ce67 100644
--- a/core/pim/addressbook/version.h
+++ b/core/pim/addressbook/version.h
@@ -5,3 +5,3 @@
5#define SUBVERSION "9" 5#define SUBVERSION "9"
6#define PATCHVERSION "1" 6#define PATCHVERSION "2"
7 7