author | alwin <alwin> | 2004-03-02 12:14:15 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-02 12:14:15 (UTC) |
commit | 0d59c780513da78033f4d9040475dee9db0256d4 (patch) (unidiff) | |
tree | 503d320b4aa3daae9982082e7b34e3e2c48bdfb7 /core/pim/addressbook/abtable.cpp | |
parent | a0981652d61776d70f25980f035748b21339e946 (diff) | |
download | opie-0d59c780513da78033f4d9040475dee9db0256d4.zip opie-0d59c780513da78033f4d9040475dee9db0256d4.tar.gz opie-0d59c780513da78033f4d9040475dee9db0256d4.tar.bz2 |
run the optimize_connect script
the whole cvs is tagged with "before_optimize_connect" if there are problems you
can check the diff (but it had compiled and run here)
Diffstat (limited to 'core/pim/addressbook/abtable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abtable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp index f7bff58..29f4383 100644 --- a/core/pim/addressbook/abtable.cpp +++ b/core/pim/addressbook/abtable.cpp | |||
@@ -98,65 +98,65 @@ QWidget *AbPickItem::createEditor() const | |||
98 | } | 98 | } |
99 | 99 | ||
100 | void AbPickItem::setContentFromEditor( QWidget *w ) | 100 | void AbPickItem::setContentFromEditor( QWidget *w ) |
101 | { | 101 | { |
102 | if ( w->inherits("QComboBox") ) | 102 | if ( w->inherits("QComboBox") ) |
103 | setText( ( (QComboBox*)w )->currentText() ); | 103 | setText( ( (QComboBox*)w )->currentText() ); |
104 | else | 104 | else |
105 | QTableItem::setContentFromEditor( w ); | 105 | QTableItem::setContentFromEditor( w ); |
106 | } | 106 | } |
107 | 107 | ||
108 | #endif | 108 | #endif |
109 | 109 | ||
110 | /*! | 110 | /*! |
111 | \class AbTable abtable.h | 111 | \class AbTable abtable.h |
112 | 112 | ||
113 | \brief QTable based class for showing a list of entries | 113 | \brief QTable based class for showing a list of entries |
114 | */ | 114 | */ |
115 | 115 | ||
116 | AbTable::AbTable( const QValueList<int> order, QWidget *parent, const char *name ) | 116 | AbTable::AbTable( const QValueList<int> order, QWidget *parent, const char *name ) |
117 | : QTable( parent, name ), | 117 | : QTable( parent, name ), |
118 | lastSortCol( -1 ), | 118 | lastSortCol( -1 ), |
119 | asc( TRUE ), | 119 | asc( TRUE ), |
120 | intFields( order ), | 120 | intFields( order ), |
121 | enablePainting( true ), | 121 | enablePainting( true ), |
122 | columnVisible( true ), | 122 | columnVisible( true ), |
123 | countNested( 0 ) | 123 | countNested( 0 ) |
124 | { | 124 | { |
125 | //qWarning("C'tor start"); | 125 | //qWarning("C'tor start"); |
126 | 126 | ||
127 | setSelectionMode( NoSelection ); | 127 | setSelectionMode( NoSelection ); |
128 | init(); | 128 | init(); |
129 | setSorting( TRUE ); | 129 | setSorting( TRUE ); |
130 | connect( this, SIGNAL(clicked(int,int,int,const QPoint &)), | 130 | connect( this, SIGNAL(clicked(int,int,int,const QPoint&)), |
131 | this, SLOT(itemClicked(int,int)) ); | 131 | this, SLOT(itemClicked(int,int)) ); |
132 | 132 | ||
133 | // contactList.clear(); | 133 | // contactList.clear(); |
134 | //qWarning("C'tor end"); | 134 | //qWarning("C'tor end"); |
135 | } | 135 | } |
136 | 136 | ||
137 | AbTable::~AbTable() | 137 | AbTable::~AbTable() |
138 | { | 138 | { |
139 | } | 139 | } |
140 | 140 | ||
141 | void AbTable::init() | 141 | void AbTable::init() |
142 | { | 142 | { |
143 | // :SX showChar = '\0'; | 143 | // :SX showChar = '\0'; |
144 | setNumRows( 0 ); | 144 | setNumRows( 0 ); |
145 | setNumCols( 2 ); | 145 | setNumCols( 2 ); |
146 | 146 | ||
147 | horizontalHeader()->setLabel( 0, tr( "Full Name" )); | 147 | horizontalHeader()->setLabel( 0, tr( "Full Name" )); |
148 | horizontalHeader()->setLabel( 1, tr( "Contact" )); | 148 | horizontalHeader()->setLabel( 1, tr( "Contact" )); |
149 | setLeftMargin( 0 ); | 149 | setLeftMargin( 0 ); |
150 | verticalHeader()->hide(); | 150 | verticalHeader()->hide(); |
151 | columnVisible = true; | 151 | columnVisible = true; |
152 | } | 152 | } |
153 | 153 | ||
154 | void AbTable::setContacts( const OContactAccess::List& viewList ) | 154 | void AbTable::setContacts( const OContactAccess::List& viewList ) |
155 | { | 155 | { |
156 | qWarning("AbTable::setContacts()"); | 156 | qWarning("AbTable::setContacts()"); |
157 | 157 | ||
158 | clear(); | 158 | clear(); |
159 | m_viewList = viewList; | 159 | m_viewList = viewList; |
160 | 160 | ||
161 | setSorting( false ); | 161 | setSorting( false ); |
162 | setPaintingEnabled( FALSE ); | 162 | setPaintingEnabled( FALSE ); |