summaryrefslogtreecommitdiff
authortux_mike <tux_mike>2002-04-10 03:29:24 (UTC)
committer tux_mike <tux_mike>2002-04-10 03:29:24 (UTC)
commit4eb2a1b8698fdcca7a2c74a3fe9a88a297607754 (patch) (unidiff)
tree0787600f2d3e0d4bb314124fff55fa3046bfb2f5
parent0d5d67ab1225446f1796a08d97c0cc025922958f (diff)
downloadopie-4eb2a1b8698fdcca7a2c74a3fe9a88a297607754.zip
opie-4eb2a1b8698fdcca7a2c74a3fe9a88a297607754.tar.gz
opie-4eb2a1b8698fdcca7a2c74a3fe9a88a297607754.tar.bz2
Made rows resize with fonts.
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
@@ -20,2 +20,4 @@
20 20
21#define QTOPIA_INTERNAL_CONTACT_MRE
22
21#include <qpe/categoryselect.h> 23#include <qpe/categoryselect.h>
@@ -451,2 +453,11 @@ void AbTable::addEntry( const Contact &newCnt )
451 453
454void AbTable::resizeRows( int size ) {
455
456 if (numRows()) {
457 for (int i = 0; i < numRows(); i++) {
458 setRowHeight( i, size );
459 }
460 }
461}
462
452void AbTable::updateJournal( const Contact &cnt, 463void AbTable::updateJournal( const Contact &cnt,
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
@@ -88,2 +88,3 @@ public:
88 QStringList categories(); 88 QStringList categories();
89 void resizeRows( int size );
89 90
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
@@ -239,2 +239,4 @@ void AddressbookWindow::slotSetFont( int size ) {
239 239
240 QFont *currentFont;
241
240 switch (size) { 242 switch (size) {
@@ -245,2 +247,4 @@ void AddressbookWindow::slotSetFont( int size ) {
245 abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() - 2 ) ); 247 abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() - 2 ) );
248 currentFont = new QFont (abList->font());
249 abList->resizeRows(currentFont->pixelSize() + 7);
246 break; 250 break;
@@ -251,2 +255,4 @@ void AddressbookWindow::slotSetFont( int size ) {
251 abList->setFont( *defaultFont ); 255 abList->setFont( *defaultFont );
256 currentFont = new QFont (abList->font());
257 abList->resizeRows(currentFont->pixelSize() + 7);
252 break; 258 break;
@@ -257,2 +263,4 @@ void AddressbookWindow::slotSetFont( int size ) {
257 abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() + 2 ) ); 263 abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() + 2 ) );
264 currentFont = new QFont (abList->font());
265 abList->resizeRows(currentFont->pixelSize() + 7);
258 break; 266 break;