From 3756fa1506f6cbf782a9ea38036fd7ea965a83d8 Mon Sep 17 00:00:00 2001 From: eilers Date: Sun, 23 Feb 2003 15:29:19 +0000 Subject: Added icons. Especially the main-contact table has an icon to show whether it is a work-, home- number or if it is a mobile... The pictures may need improvements due to my incompetence in creating pictures.. Do we have anyone who may paint such stuff ? --- (limited to 'core/pim/addressbook/abtable.h') diff --git a/core/pim/addressbook/abtable.h b/core/pim/addressbook/abtable.h index 9825665..092e86f 100644 --- a/core/pim/addressbook/abtable.h +++ b/core/pim/addressbook/abtable.h @@ -30,6 +30,7 @@ #include #include #include +#include class AbTableItem : public QTableItem { @@ -46,6 +47,15 @@ private: QString sortKey; }; +// This is a simple container, storing all contact +// information +class ContactItem +{ + public: + QPixmap icon; + QString value; +}; + class AbPickItem : public QTableItem { public: @@ -115,7 +125,7 @@ protected slots: private: void insertIntoTable( const OContact &cnt, int row ); - QString findContactContact( const OContact &entry, int row ); + ContactItem findContactContact( const OContact &entry, int row ); void fitColumns(); void resizeRows(); void realignTable(); -- cgit v0.9.0.2