summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abtable.cpp11
-rw-r--r--core/pim/addressbook/abtable.h1
-rw-r--r--core/pim/addressbook/addressbook.cpp8
3 files changed, 20 insertions, 0 deletions
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp
index 0911edf..17277b4 100644
--- a/core/pim/addressbook/abtable.cpp
+++ b/core/pim/addressbook/abtable.cpp
@@ -19,4 +19,6 @@
**********************************************************************/
+#define QTOPIA_INTERNAL_CONTACT_MRE
+
#include <qpe/categoryselect.h>
#include <qpe/config.h>
@@ -450,4 +452,13 @@ void AbTable::addEntry( const Contact &newCnt )
}
+void AbTable::resizeRows( int size ) {
+
+ if (numRows()) {
+ for (int i = 0; i < numRows(); i++) {
+ setRowHeight( i, size );
+ }
+ }
+}
+
void AbTable::updateJournal( const Contact &cnt,
Contact::journal_action action, int row )
diff --git a/core/pim/addressbook/abtable.h b/core/pim/addressbook/abtable.h
index 9b96997..53635ee 100644
--- a/core/pim/addressbook/abtable.h
+++ b/core/pim/addressbook/abtable.h
@@ -87,4 +87,5 @@ public:
QString showCategory() const;
QStringList categories();
+ void resizeRows( int size );
void show();
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index b7b35bc..95a8521 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -238,4 +238,6 @@ void AddressbookWindow::slotSetFont( int size ) {
startFontSize = size;
+ QFont *currentFont;
+
switch (size) {
case 0:
@@ -244,4 +246,6 @@ void AddressbookWindow::slotSetFont( int size ) {
fontMenu->setItemChecked(2, false);
abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() - 2 ) );
+ currentFont = new QFont (abList->font());
+ abList->resizeRows(currentFont->pixelSize() + 7);
break;
case 1:
@@ -250,4 +254,6 @@ void AddressbookWindow::slotSetFont( int size ) {
fontMenu->setItemChecked(2, false);
abList->setFont( *defaultFont );
+ currentFont = new QFont (abList->font());
+ abList->resizeRows(currentFont->pixelSize() + 7);
break;
case 2:
@@ -256,4 +262,6 @@ void AddressbookWindow::slotSetFont( int size ) {
fontMenu->setItemChecked(2, true);
abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() + 2 ) );
+ currentFont = new QFont (abList->font());
+ abList->resizeRows(currentFont->pixelSize() + 7);
break;
}