From cfb97af8f45087e58d4b82689df22191bd657c34 Mon Sep 17 00:00:00 2001 From: eilers Date: Sat, 30 Aug 2003 15:32:34 +0000 Subject: Speed optimization fix: Startup and usability improved if a lot of contacts are stored. Left speed bootleneck is the xml file.. --- (limited to 'core/pim/addressbook/abtable.h') diff --git a/core/pim/addressbook/abtable.h b/core/pim/addressbook/abtable.h index 0f7bc29..b9ebe27 100644 --- a/core/pim/addressbook/abtable.h +++ b/core/pim/addressbook/abtable.h @@ -32,6 +32,7 @@ #include #include +#if 0 class AbTableItem : public QTableItem { public: @@ -47,6 +48,8 @@ private: QString sortKey; }; +#endif + // This is a simple container, storing all contact // information class ContactItem @@ -56,6 +59,7 @@ class ContactItem QString value; }; +#if 0 class AbPickItem : public QTableItem { public: @@ -68,6 +72,8 @@ private: QGuardedPtr cb; }; +#endif + class AbTable : public QTable { Q_OBJECT @@ -91,7 +97,7 @@ public: // Get the UID of the current selected Entry int currentEntry_UID(); - QString findContactName( const OContact &entry ); + // QString findContactName( const OContact &entry ); void init(); void clear(); @@ -103,8 +109,8 @@ public: void paintCell(QPainter* p, int row, int col, const QRect&, bool ); // addresspicker mode (What's that ? se) - void setChoiceNames( const QStringList& list); - QStringList choiceNames() const; + // void setChoiceNames( const QStringList& list); + // QStringList choiceNames() const; void setChoiceSelection( const QValueList& list ); QStringList choiceSelection(int index) const; @@ -129,7 +135,7 @@ protected slots: void rowHeightChanged( int row ); private: - void insertIntoTable( const OContact &cnt, int row ); + // void insertIntoTable( const OContact &cnt, int row ); ContactItem findContactContact( const OContact &entry, int row ); void fitColumns(); void resizeRows(); @@ -139,7 +145,7 @@ private: int lastSortCol; bool asc; - QMap contactList; + // QMap contactList; QValueList intFields; QStringList choicenames; bool enablePainting; -- cgit v0.9.0.2