author | eilers <eilers> | 2003-08-30 15:32:34 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-08-30 15:32:34 (UTC) |
commit | cfb97af8f45087e58d4b82689df22191bd657c34 (patch) (unidiff) | |
tree | 9e01e85787092abb0d8c6733bbe3091eaf6a892a /core/pim/addressbook/abtable.h | |
parent | 9f07321949f8baf1a64db0e4caec58041d3f775f (diff) | |
download | opie-cfb97af8f45087e58d4b82689df22191bd657c34.zip opie-cfb97af8f45087e58d4b82689df22191bd657c34.tar.gz opie-cfb97af8f45087e58d4b82689df22191bd657c34.tar.bz2 |
Speed optimization fix:
Startup and usability improved if a lot of contacts are stored. Left speed bootleneck is the xml
file..
Diffstat (limited to 'core/pim/addressbook/abtable.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abtable.h | 16 |
1 files changed, 11 insertions, 5 deletions
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 @@ | |||
32 | #include <qcombobox.h> | 32 | #include <qcombobox.h> |
33 | #include <qpixmap.h> | 33 | #include <qpixmap.h> |
34 | 34 | ||
35 | #if 0 | ||
35 | class AbTableItem : public QTableItem | 36 | class AbTableItem : public QTableItem |
36 | { | 37 | { |
37 | public: | 38 | public: |
@@ -47,6 +48,8 @@ private: | |||
47 | QString sortKey; | 48 | QString sortKey; |
48 | }; | 49 | }; |
49 | 50 | ||
51 | #endif | ||
52 | |||
50 | // This is a simple container, storing all contact | 53 | // This is a simple container, storing all contact |
51 | // information | 54 | // information |
52 | class ContactItem | 55 | class ContactItem |
@@ -56,6 +59,7 @@ class ContactItem | |||
56 | QString value; | 59 | QString value; |
57 | }; | 60 | }; |
58 | 61 | ||
62 | #if 0 | ||
59 | class AbPickItem : public QTableItem | 63 | class AbPickItem : public QTableItem |
60 | { | 64 | { |
61 | public: | 65 | public: |
@@ -68,6 +72,8 @@ private: | |||
68 | QGuardedPtr<QComboBox> cb; | 72 | QGuardedPtr<QComboBox> cb; |
69 | }; | 73 | }; |
70 | 74 | ||
75 | #endif | ||
76 | |||
71 | class AbTable : public QTable | 77 | class AbTable : public QTable |
72 | { | 78 | { |
73 | Q_OBJECT | 79 | Q_OBJECT |
@@ -91,7 +97,7 @@ public: | |||
91 | // Get the UID of the current selected Entry | 97 | // Get the UID of the current selected Entry |
92 | int currentEntry_UID(); | 98 | int currentEntry_UID(); |
93 | 99 | ||
94 | QString findContactName( const OContact &entry ); | 100 | // QString findContactName( const OContact &entry ); |
95 | 101 | ||
96 | void init(); | 102 | void init(); |
97 | void clear(); | 103 | void clear(); |
@@ -103,8 +109,8 @@ public: | |||
103 | void paintCell(QPainter* p, int row, int col, const QRect&, bool ); | 109 | void paintCell(QPainter* p, int row, int col, const QRect&, bool ); |
104 | 110 | ||
105 | // addresspicker mode (What's that ? se) | 111 | // addresspicker mode (What's that ? se) |
106 | void setChoiceNames( const QStringList& list); | 112 | // void setChoiceNames( const QStringList& list); |
107 | QStringList choiceNames() const; | 113 | // QStringList choiceNames() const; |
108 | void setChoiceSelection( const QValueList<int>& list ); | 114 | void setChoiceSelection( const QValueList<int>& list ); |
109 | QStringList choiceSelection(int index) const; | 115 | QStringList choiceSelection(int index) const; |
110 | 116 | ||
@@ -129,7 +135,7 @@ protected slots: | |||
129 | void rowHeightChanged( int row ); | 135 | void rowHeightChanged( int row ); |
130 | 136 | ||
131 | private: | 137 | private: |
132 | void insertIntoTable( const OContact &cnt, int row ); | 138 | // void insertIntoTable( const OContact &cnt, int row ); |
133 | ContactItem findContactContact( const OContact &entry, int row ); | 139 | ContactItem findContactContact( const OContact &entry, int row ); |
134 | void fitColumns(); | 140 | void fitColumns(); |
135 | void resizeRows(); | 141 | void resizeRows(); |
@@ -139,7 +145,7 @@ private: | |||
139 | 145 | ||
140 | int lastSortCol; | 146 | int lastSortCol; |
141 | bool asc; | 147 | bool asc; |
142 | QMap<AbTableItem*, OContact> contactList; | 148 | // QMap<AbTableItem*, OContact> contactList; |
143 | QValueList<int> intFields; | 149 | QValueList<int> intFields; |
144 | QStringList choicenames; | 150 | QStringList choicenames; |
145 | bool enablePainting; | 151 | bool enablePainting; |