summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-11 09:49:14 (UTC)
committer zautrix <zautrix>2004-10-11 09:49:14 (UTC)
commit504f6b2a8732d980a88234cdef0a80c201b9c4da (patch) (unidiff)
tree6aa81a390f51ecb91446a0b637707777146d3d25
parentff475669e0cb65677168d4a29928a6c1d984aa10 (diff)
downloadkdepimpi-504f6b2a8732d980a88234cdef0a80c201b9c4da.zip
kdepimpi-504f6b2a8732d980a88234cdef0a80c201b9c4da.tar.gz
kdepimpi-504f6b2a8732d980a88234cdef0a80c201b9c4da.tar.bz2
compile fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/addresseeeditorwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/addresseeeditorwidget.cpp b/kaddressbook/addresseeeditorwidget.cpp
index dbbf7fe..50b6b6d 100644
--- a/kaddressbook/addresseeeditorwidget.cpp
+++ b/kaddressbook/addresseeeditorwidget.cpp
@@ -1,798 +1,799 @@
1/* 1/*
2 This file is part of KAddressBook. 2 This file is part of KAddressBook.
3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#include <qcheckbox.h> 24#include <qcheckbox.h>
25#include <qhbox.h> 25#include <qhbox.h>
26#include <qlabel.h> 26#include <qlabel.h>
27#include <qlayout.h> 27#include <qlayout.h>
28#include <qlistbox.h> 28#include <qlistbox.h>
29#include <qpushbutton.h> 29#include <qpushbutton.h>
30#include <qtabwidget.h> 30#include <qtabwidget.h>
31#include <qapplication.h>
31 32
32#ifndef KAB_EMBEDDED 33#ifndef KAB_EMBEDDED
33#include <qtextedit.h> 34#include <qtextedit.h>
34 35
35#include <kaccelmanager.h> 36#include <kaccelmanager.h>
36#include "keywidget.h" 37#include "keywidget.h"
37#include "soundwidget.h" 38#include "soundwidget.h"
38 39
39#else //KAB_EMBEDDED 40#else //KAB_EMBEDDED
40#include <qmultilineedit.h> 41#include <qmultilineedit.h>
41#endif //KAB_EMBEDDED 42#endif //KAB_EMBEDDED
42 43
43 44
44#include "keywidget.h" 45#include "keywidget.h"
45#include "geowidget.h" 46#include "geowidget.h"
46#include "imagewidget.h" 47#include "imagewidget.h"
47#include "nameeditdialog.h" 48#include "nameeditdialog.h"
48#include "phoneeditwidget.h" 49#include "phoneeditwidget.h"
49#include "secrecywidget.h" 50#include "secrecywidget.h"
50 51
51 52
52#include <qtoolbutton.h> 53#include <qtoolbutton.h>
53#include <qtooltip.h> 54#include <qtooltip.h>
54 55
55#include <kapplication.h> 56#include <kapplication.h>
56#include <kconfig.h> 57#include <kconfig.h>
57#include <kcombobox.h> 58#include <kcombobox.h>
58#include <kdebug.h> 59#include <kdebug.h>
59#include <kdialogbase.h> 60#include <kdialogbase.h>
60#include <kglobal.h> 61#include <kglobal.h>
61#include <kiconloader.h> 62#include <kiconloader.h>
62#include <klineedit.h> 63#include <klineedit.h>
63#include <klocale.h> 64#include <klocale.h>
64#include <kmessagebox.h> 65#include <kmessagebox.h>
65#include <kseparator.h> 66#include <kseparator.h>
66#include <ksqueezedtextlabel.h> 67#include <ksqueezedtextlabel.h>
67 68
68#include <libkdepim/categoryeditdialog.h> 69#include <libkdepim/categoryeditdialog.h>
69#include <libkdepim/categoryselectdialog.h> 70#include <libkdepim/categoryselectdialog.h>
70 71
71#include <libkdepim/kdateedit.h> 72#include <libkdepim/kdateedit.h>
72 73
73#include "addresseditwidget.h" 74#include "addresseditwidget.h"
74#include "emaileditwidget.h" 75#include "emaileditwidget.h"
75#include "kabcore.h" 76#include "kabcore.h"
76#include "kabprefs.h" 77#include "kabprefs.h"
77 78
78#include "addresseeeditorwidget.h" 79#include "addresseeeditorwidget.h"
79 80
80 81
81 82
82AddresseeEditorWidget::AddresseeEditorWidget( KABCore *core, bool isExtension, 83AddresseeEditorWidget::AddresseeEditorWidget( KABCore *core, bool isExtension,
83 QWidget *parent, const char *name ) 84 QWidget *parent, const char *name )
84 : ExtensionWidget( core, parent, name ), mIsExtension( isExtension ), 85 : ExtensionWidget( core, parent, name ), mIsExtension( isExtension ),
85 mBlockSignals( false ) 86 mBlockSignals( false )
86{ 87{
87 88
88 mAConfig = AddresseeConfig::instance(); 89 mAConfig = AddresseeConfig::instance();
89 90
90 mFormattedNameType = NameEditDialog::CustomName; 91 mFormattedNameType = NameEditDialog::CustomName;
91 initGUI(); 92 initGUI();
92 mCategoryDialog = 0; 93 mCategoryDialog = 0;
93 mCategoryEditDialog = 0; 94 mCategoryEditDialog = 0;
94 95
95 // Load the empty addressee as defaults 96 // Load the empty addressee as defaults
96 load(); 97 load();
97 98
98 mDirty = false; 99 mDirty = false;
99} 100}
100 101
101AddresseeEditorWidget::~AddresseeEditorWidget() 102AddresseeEditorWidget::~AddresseeEditorWidget()
102{ 103{
103 kdDebug(5720) << "~AddresseeEditorWidget()" << endl; 104 kdDebug(5720) << "~AddresseeEditorWidget()" << endl;
104} 105}
105 106
106void AddresseeEditorWidget::contactsSelectionChanged() 107void AddresseeEditorWidget::contactsSelectionChanged()
107{ 108{
108 KABC::Addressee::List list = selectedContacts(); 109 KABC::Addressee::List list = selectedContacts();
109 110
110 mAddressee = list[ 0 ]; 111 mAddressee = list[ 0 ];
111 load(); 112 load();
112} 113}
113 114
114void AddresseeEditorWidget::setAddressee( const KABC::Addressee &addr ) 115void AddresseeEditorWidget::setAddressee( const KABC::Addressee &addr )
115{ 116{
116 mAddressee = addr; 117 mAddressee = addr;
117 load(); 118 load();
118} 119}
119 120
120const KABC::Addressee &AddresseeEditorWidget::addressee() 121const KABC::Addressee &AddresseeEditorWidget::addressee()
121{ 122{
122 return mAddressee; 123 return mAddressee;
123} 124}
124 125
125void AddresseeEditorWidget::textChanged( const QString& ) 126void AddresseeEditorWidget::textChanged( const QString& )
126{ 127{
127 emitModified(); 128 emitModified();
128} 129}
129 130
130void AddresseeEditorWidget::initGUI() 131void AddresseeEditorWidget::initGUI()
131{ 132{
132 QVBoxLayout *layout = new QVBoxLayout( this ); 133 QVBoxLayout *layout = new QVBoxLayout( this );
133 134
134 mTabWidget = new QTabWidget( this ); 135 mTabWidget = new QTabWidget( this );
135 layout->addWidget( mTabWidget ); 136 layout->addWidget( mTabWidget );
136 137
137 setupTab1(); 138 setupTab1();
138 setupTab1_1(); 139 setupTab1_1();
139 setupTab2(); 140 setupTab2();
140 setupTab2_1(); 141 setupTab2_1();
141 setupTab3(); 142 setupTab3();
142 setupTab3_1(); 143 setupTab3_1();
143 144
144 mNameEdit->setFocus(); 145 mNameEdit->setFocus();
145 146
146 connect( mTabWidget, SIGNAL( currentChanged(QWidget*) ), 147 connect( mTabWidget, SIGNAL( currentChanged(QWidget*) ),
147 SLOT( pageChanged(QWidget*) ) ); 148 SLOT( pageChanged(QWidget*) ) );
148} 149}
149 150
150void AddresseeEditorWidget::setupTab1() 151void AddresseeEditorWidget::setupTab1()
151{ 152{
152 // This is the General tab 153 // This is the General tab
153 QWidget *tab1 = new QWidget( mTabWidget ); 154 QWidget *tab1 = new QWidget( mTabWidget );
154 155
155//US QGridLayout *layout = new QGridLayout( tab1, 11, 7 ); 156//US QGridLayout *layout = new QGridLayout( tab1, 11, 7 );
156 QGridLayout *layout = new QGridLayout( tab1, 7, 1 ); 157 QGridLayout *layout = new QGridLayout( tab1, 7, 1 );
157 layout->setMargin( KDialogBase::marginHintSmall() ); 158 layout->setMargin( KDialogBase::marginHintSmall() );
158 layout->setSpacing( KDialogBase::spacingHintSmall() ); 159 layout->setSpacing( KDialogBase::spacingHintSmall() );
159 160
160 QLabel *label; 161 QLabel *label;
161 KSeparator* bar; 162 KSeparator* bar;
162 QPushButton *button; 163 QPushButton *button;
163 164
164 ////////////////////////////////// 165 //////////////////////////////////
165 // Upper left group (person info) 166 // Upper left group (person info)
166 167
167 // Person icon 168 // Person icon
168 /* LR 169 /* LR
169 label = new QLabel( tab1 ); 170 label = new QLabel( tab1 );
170//US ambiguous call. Add one more parameter 171//US ambiguous call. Add one more parameter
171//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) ); 172//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) );
172 label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) ); 173 label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) );
173 layout->addMultiCellWidget( label, 0, 1, 0, 0 ); 174 layout->addMultiCellWidget( label, 0, 1, 0, 0 );
174 */ 175 */
175 // First name 176 // First name
176 button = new QPushButton( i18n( "Name..." ), tab1 ); 177 button = new QPushButton( i18n( "Name..." ), tab1 );
177//US QToolTip::add( button, i18n( "Edit the contact's name" ) ); 178//US QToolTip::add( button, i18n( "Edit the contact's name" ) );
178 mNameEdit = new KLineEdit( tab1, "mNameEdit" ); 179 mNameEdit = new KLineEdit( tab1, "mNameEdit" );
179 connect( mNameEdit, SIGNAL( textChanged( const QString& ) ), 180 connect( mNameEdit, SIGNAL( textChanged( const QString& ) ),
180 SLOT( nameTextChanged( const QString& ) ) ); 181 SLOT( nameTextChanged( const QString& ) ) );
181 connect( button, SIGNAL( clicked() ), SLOT( nameButtonClicked() ) ); 182 connect( button, SIGNAL( clicked() ), SLOT( nameButtonClicked() ) );
182 183
183 mNameLabel = new KSqueezedTextLabel( tab1 ); 184 mNameLabel = new KSqueezedTextLabel( tab1 );
184 mNameLabel->hide(); 185 mNameLabel->hide();
185 186
186 layout->addWidget( button, 0, 0 ); 187 layout->addWidget( button, 0, 0 );
187 layout->addWidget( mNameEdit, 0, 1 ); 188 layout->addWidget( mNameEdit, 0, 1 );
188 layout->addWidget( mNameLabel, 0, 1 ); 189 layout->addWidget( mNameLabel, 0, 1 );
189 190
190 label = new QLabel( i18n( "Role:" ), tab1 ); 191 label = new QLabel( i18n( "Role:" ), tab1 );
191 mRoleEdit = new KLineEdit( tab1 ); 192 mRoleEdit = new KLineEdit( tab1 );
192 connect( mRoleEdit, SIGNAL( textChanged( const QString& ) ), 193 connect( mRoleEdit, SIGNAL( textChanged( const QString& ) ),
193 SLOT( textChanged( const QString& ) ) ); 194 SLOT( textChanged( const QString& ) ) );
194 label->setBuddy( mRoleEdit ); 195 label->setBuddy( mRoleEdit );
195 layout->addWidget( label, 1, 0 ); 196 layout->addWidget( label, 1, 0 );
196 layout->addWidget( mRoleEdit, 1, 1 ); 197 layout->addWidget( mRoleEdit, 1, 1 );
197 198
198 // Organization 199 // Organization
199 label = new QLabel( i18n( "Organization:" ), tab1 ); 200 label = new QLabel( i18n( "Organization:" ), tab1 );
200 mOrgEdit = new KLineEdit( tab1 ); 201 mOrgEdit = new KLineEdit( tab1 );
201 label->setBuddy( mOrgEdit ); 202 label->setBuddy( mOrgEdit );
202 connect( mOrgEdit, SIGNAL( textChanged( const QString& ) ), 203 connect( mOrgEdit, SIGNAL( textChanged( const QString& ) ),
203 SLOT( textChanged( const QString& ) ) ); 204 SLOT( textChanged( const QString& ) ) );
204 layout->addWidget( label, 2, 0 ); 205 layout->addWidget( label, 2, 0 );
205 layout->addWidget( mOrgEdit, 2, 1 ); 206 layout->addWidget( mOrgEdit, 2, 1 );
206 207
207 // File as (formatted name) 208 // File as (formatted name)
208 label = new QLabel( i18n( "Formatted name:" ), tab1 ); 209 label = new QLabel( i18n( "Formatted name:" ), tab1 );
209 mFormattedNameLabel = new KSqueezedTextLabel( tab1 ); 210 mFormattedNameLabel = new KSqueezedTextLabel( tab1 );
210 layout->addWidget( label, 3, 0 ); 211 layout->addWidget( label, 3, 0 );
211 layout->addWidget( mFormattedNameLabel, 3, 1 ); 212 layout->addWidget( mFormattedNameLabel, 3, 1 );
212 /* LR 213 /* LR
213 // Left hand separator. This separator doesn't go all the way 214 // Left hand separator. This separator doesn't go all the way
214 // across so the dialog still flows from top to bottom 215 // across so the dialog still flows from top to bottom
215 bar = new KSeparator( KSeparator::HLine, tab1 ); 216 bar = new KSeparator( KSeparator::HLine, tab1 );
216 layout->addMultiCellWidget( bar, 4, 4, 0, 2 ); 217 layout->addMultiCellWidget( bar, 4, 4, 0, 2 );
217 */ 218 */
218 ////////////////////////////////////// 219 //////////////////////////////////////
219 220
220 /* LR 221 /* LR
221 // Phone numbers (upper right) 222 // Phone numbers (upper right)
222 label = new QLabel( tab1 ); 223 label = new QLabel( tab1 );
223//US loadIcon call is ambiguous. Add one more parameter 224//US loadIcon call is ambiguous. Add one more parameter
224//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) ); 225//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) );
225 label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); 226 label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) );
226//US layout->addMultiCellWidget( label, 0, 1, 3, 3 ); 227//US layout->addMultiCellWidget( label, 0, 1, 3, 3 );
227 layout->addMultiCellWidget( label, 5, 6, 0, 0 ); 228 layout->addMultiCellWidget( label, 5, 6, 0, 0 );
228 */ 229 */
229 mPhoneEditWidget = new PhoneEditWidget( tab1 ); 230 mPhoneEditWidget = new PhoneEditWidget( tab1 );
230 connect( mPhoneEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); 231 connect( mPhoneEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) );
231//US layout->addMultiCellWidget( mPhoneEditWidget, 0, 3, 4, 6 ); 232//US layout->addMultiCellWidget( mPhoneEditWidget, 0, 3, 4, 6 );
232 int iii; 233 int iii;
233#ifndef DESKTOP_VERSION 234#ifndef DESKTOP_VERSION
234 iii = 7; 235 iii = 7;
235#else 236#else
236 iii = 8; 237 iii = 8;
237#endif 238#endif
238 layout->addMultiCellWidget( mPhoneEditWidget, 4, iii, 0, 1 ); 239 layout->addMultiCellWidget( mPhoneEditWidget, 4, iii, 0, 1 );
239 ++iii; 240 ++iii;
240 /* LR 241 /* LR
241 bar = new KSeparator( KSeparator::HLine, tab1 ); 242 bar = new KSeparator( KSeparator::HLine, tab1 );
242//US layout->addMultiCellWidget( bar, 4, 4, 3, 6 ); 243//US layout->addMultiCellWidget( bar, 4, 4, 3, 6 );
243 layout->addMultiCellWidget( bar, 9, 9, 0, 2 ); 244 layout->addMultiCellWidget( bar, 9, 9, 0, 2 );
244 */ 245 */
245/*US 246/*US
246 ////////////////////////////////////// 247 //////////////////////////////////////
247 // Addresses (lower left) 248 // Addresses (lower left)
248 label = new QLabel( tab1 ); 249 label = new QLabel( tab1 );
249//US loadIcon call is ambiguous. Add one more parameter 250//US loadIcon call is ambiguous. Add one more parameter
250//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop ) ); 251//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop ) );
251 label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop, 0 ) ); 252 label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop, 0 ) );
252 layout->addMultiCellWidget( label, 5, 6, 0, 0 ); 253 layout->addMultiCellWidget( label, 5, 6, 0, 0 );
253 254
254 mAddressEditWidget = new AddressEditWidget( tab1 ); 255 mAddressEditWidget = new AddressEditWidget( tab1 );
255 connect( mAddressEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); 256 connect( mAddressEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) );
256 layout->addMultiCellWidget( mAddressEditWidget, 5, 9, 1, 2 ); 257 layout->addMultiCellWidget( mAddressEditWidget, 5, 9, 1, 2 );
257 258
258 ////////////////////////////////////// 259 //////////////////////////////////////
259 // Email / Web (lower right) 260 // Email / Web (lower right)
260 label = new QLabel( tab1 ); 261 label = new QLabel( tab1 );
261//US loadIcon call is ambiguous. Add one more parameter 262//US loadIcon call is ambiguous. Add one more parameter
262//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop) ); 263//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop) );
263 label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop, 0) ); 264 label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop, 0) );
264 layout->addMultiCellWidget( label, 5, 6, 3, 3 ); 265 layout->addMultiCellWidget( label, 5, 6, 3, 3 );
265 266
266 mEmailWidget = new EmailEditWidget( tab1 ); 267 mEmailWidget = new EmailEditWidget( tab1 );
267 connect( mEmailWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); 268 connect( mEmailWidget, SIGNAL( modified() ), SLOT( emitModified() ) );
268 layout->addMultiCellWidget( mEmailWidget, 5, 6, 4, 6 ); 269 layout->addMultiCellWidget( mEmailWidget, 5, 6, 4, 6 );
269 270
270 // add the separator 271 // add the separator
271 bar = new KSeparator( KSeparator::HLine, tab1 ); 272 bar = new KSeparator( KSeparator::HLine, tab1 );
272 layout->addMultiCellWidget( bar, 7, 7, 3, 6 ); 273 layout->addMultiCellWidget( bar, 7, 7, 3, 6 );
273 274
274 label = new QLabel( tab1 ); 275 label = new QLabel( tab1 );
275//US loadIcon call is ambiguous. Add one more parameter 276//US loadIcon call is ambiguous. Add one more parameter
276//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop) ); 277//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop) );
277 label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop, 0) ); 278 label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop, 0) );
278 layout->addMultiCellWidget( label, 8, 9, 3, 3 ); 279 layout->addMultiCellWidget( label, 8, 9, 3, 3 );
279 280
280 label = new QLabel( i18n( "URL:" ), tab1 ); 281 label = new QLabel( i18n( "URL:" ), tab1 );
281 mURLEdit = new KLineEdit( tab1 ); 282 mURLEdit = new KLineEdit( tab1 );
282 connect( mURLEdit, SIGNAL( textChanged( const QString& ) ), 283 connect( mURLEdit, SIGNAL( textChanged( const QString& ) ),
283 SLOT( textChanged( const QString& ) ) ); 284 SLOT( textChanged( const QString& ) ) );
284 label->setBuddy( mURLEdit ); 285 label->setBuddy( mURLEdit );
285 layout->addWidget( label, 8, 4 ); 286 layout->addWidget( label, 8, 4 );
286 layout->addMultiCellWidget( mURLEdit, 8, 8, 5, 6 ); 287 layout->addMultiCellWidget( mURLEdit, 8, 8, 5, 6 );
287 288
288 label = new QLabel( i18n( "&IM address:" ), tab1 ); 289 label = new QLabel( i18n( "&IM address:" ), tab1 );
289 mIMAddressEdit = new KLineEdit( tab1 ); 290 mIMAddressEdit = new KLineEdit( tab1 );
290 connect( mIMAddressEdit, SIGNAL( textChanged( const QString& ) ), 291 connect( mIMAddressEdit, SIGNAL( textChanged( const QString& ) ),
291 SLOT( textChanged( const QString& ) ) ); 292 SLOT( textChanged( const QString& ) ) );
292 label->setBuddy( mIMAddressEdit ); 293 label->setBuddy( mIMAddressEdit );
293 layout->addWidget( label, 9, 4 ); 294 layout->addWidget( label, 9, 4 );
294 layout->addMultiCellWidget( mIMAddressEdit, 9, 9, 5, 6 ); 295 layout->addMultiCellWidget( mIMAddressEdit, 9, 9, 5, 6 );
295 296
296 layout->addColSpacing( 6, 50 ); 297 layout->addColSpacing( 6, 50 );
297 298
298 bar = new KSeparator( KSeparator::HLine, tab1 ); 299 bar = new KSeparator( KSeparator::HLine, tab1 );
299 layout->addMultiCellWidget( bar, 10, 10, 0, 6 ); 300 layout->addMultiCellWidget( bar, 10, 10, 0, 6 );
300*/ 301*/
301 /////////////////////////////////////// 302 ///////////////////////////////////////
302 QHBox *categoryBox = new QHBox( tab1 ); 303 QHBox *categoryBox = new QHBox( tab1 );
303 categoryBox->setSpacing( KDialogBase::spacingHint() ); 304 categoryBox->setSpacing( KDialogBase::spacingHint() );
304 categoryBox->setMargin( KDialogBase::marginHintSmall() ); 305 categoryBox->setMargin( KDialogBase::marginHintSmall() );
305 306
306 // Categories 307 // Categories
307 button = new QPushButton( i18n( "Categories" ), categoryBox ); 308 button = new QPushButton( i18n( "Categories" ), categoryBox );
308 connect( button, SIGNAL( clicked() ), SLOT( categoryButtonClicked() ) ); 309 connect( button, SIGNAL( clicked() ), SLOT( categoryButtonClicked() ) );
309 310
310 mCategoryEdit = new KLineEdit( categoryBox ); 311 mCategoryEdit = new KLineEdit( categoryBox );
311 mCategoryEdit->setReadOnly( true ); 312 mCategoryEdit->setReadOnly( true );
312 connect( mCategoryEdit, SIGNAL( textChanged( const QString& ) ), 313 connect( mCategoryEdit, SIGNAL( textChanged( const QString& ) ),
313 SLOT( textChanged( const QString& ) ) ); 314 SLOT( textChanged( const QString& ) ) );
314 315
315 mSecrecyWidget = new SecrecyWidget( categoryBox ); 316 mSecrecyWidget = new SecrecyWidget( categoryBox );
316 connect( mSecrecyWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); 317 connect( mSecrecyWidget, SIGNAL( changed() ), SLOT( emitModified() ) );
317 318
318//US layout->addMultiCellWidget( categoryBox, 11, 11, 0, 6 ); 319//US layout->addMultiCellWidget( categoryBox, 11, 11, 0, 6 );
319 layout->addMultiCellWidget( categoryBox, iii, iii, 0, 1 ); 320 layout->addMultiCellWidget( categoryBox, iii, iii, 0, 1 );
320 321
321 // Build the layout and add to the tab widget 322 // Build the layout and add to the tab widget
322 layout->activate(); // required 323 layout->activate(); // required
323 324
324 mTabWidget->addTab( tab1, i18n( "&General" ) ); 325 mTabWidget->addTab( tab1, i18n( "&General" ) );
325} 326}
326 327
327 328
328void AddresseeEditorWidget::setupTab1_1() 329void AddresseeEditorWidget::setupTab1_1()
329{ 330{
330 // This is the Address tab 331 // This is the Address tab
331 QWidget *tab1_1 = new QWidget( mTabWidget ); 332 QWidget *tab1_1 = new QWidget( mTabWidget );
332 333
333//US QGridLayout *layout = new QGridLayout( tab1_1, 11, 7 ); 334//US QGridLayout *layout = new QGridLayout( tab1_1, 11, 7 );
334 QGridLayout *layout = new QGridLayout( tab1_1, 7, 2 ); 335 QGridLayout *layout = new QGridLayout( tab1_1, 7, 2 );
335 layout->setMargin( KDialogBase::marginHintSmall() ); 336 layout->setMargin( KDialogBase::marginHintSmall() );
336 layout->setSpacing( KDialogBase::spacingHintSmall() ); 337 layout->setSpacing( KDialogBase::spacingHintSmall() );
337 338
338 QLabel *label; 339 QLabel *label;
339 KSeparator* bar; 340 KSeparator* bar;
340 QPushButton *button; 341 QPushButton *button;
341 342
342/*US 343/*US
343 ////////////////////////////////// 344 //////////////////////////////////
344 // Upper left group (person info) 345 // Upper left group (person info)
345 346
346 // Person icon 347 // Person icon
347 label = new QLabel( tab1 ); 348 label = new QLabel( tab1 );
348//US ambiguous call. Add one more parameter 349//US ambiguous call. Add one more parameter
349//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) ); 350//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) );
350 label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) ); 351 label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) );
351 layout->addMultiCellWidget( label, 0, 1, 0, 0 ); 352 layout->addMultiCellWidget( label, 0, 1, 0, 0 );
352 353
353 // First name 354 // First name
354 button = new QPushButton( i18n( "Name..." ), tab1 ); 355 button = new QPushButton( i18n( "Name..." ), tab1 );
355 QToolTip::add( button, i18n( "Edit the contact's name" ) ); 356 QToolTip::add( button, i18n( "Edit the contact's name" ) );
356 mNameEdit = new KLineEdit( tab1, "mNameEdit" ); 357 mNameEdit = new KLineEdit( tab1, "mNameEdit" );
357 connect( mNameEdit, SIGNAL( textChanged( const QString& ) ), 358 connect( mNameEdit, SIGNAL( textChanged( const QString& ) ),
358 SLOT( nameTextChanged( const QString& ) ) ); 359 SLOT( nameTextChanged( const QString& ) ) );
359 connect( button, SIGNAL( clicked() ), SLOT( nameButtonClicked() ) ); 360 connect( button, SIGNAL( clicked() ), SLOT( nameButtonClicked() ) );
360 361
361#ifndef KAB_EMBEDDED 362#ifndef KAB_EMBEDDED
362 mNameLabel = new KSqueezedTextLabel( tab1 ); 363 mNameLabel = new KSqueezedTextLabel( tab1 );
363 mNameLabel->hide(); 364 mNameLabel->hide();
364#else //KAB_EMBEDDED 365#else //KAB_EMBEDDED
365qDebug("AddresseeEditorWidget::setupTab1 has to be changed"); 366qDebug("AddresseeEditorWidget::setupTab1 has to be changed");
366#endif //KAB_EMBEDDED 367#endif //KAB_EMBEDDED
367 368
368 layout->addWidget( button, 0, 1 ); 369 layout->addWidget( button, 0, 1 );
369 layout->addWidget( mNameEdit, 0, 2 ); 370 layout->addWidget( mNameEdit, 0, 2 );
370 371
371#ifndef KAB_EMBEDDED 372#ifndef KAB_EMBEDDED
372 layout->addWidget( mNameLabel, 0, 2 ); 373 layout->addWidget( mNameLabel, 0, 2 );
373#else //KAB_EMBEDDED 374#else //KAB_EMBEDDED
374qDebug("AddresseeEditorWidget::setupTab1 has to be changed"); 375qDebug("AddresseeEditorWidget::setupTab1 has to be changed");
375#endif //KAB_EMBEDDED 376#endif //KAB_EMBEDDED
376 377
377 label = new QLabel( i18n( "Role:" ), tab1 ); 378 label = new QLabel( i18n( "Role:" ), tab1 );
378 mRoleEdit = new KLineEdit( tab1 ); 379 mRoleEdit = new KLineEdit( tab1 );
379 connect( mRoleEdit, SIGNAL( textChanged( const QString& ) ), 380 connect( mRoleEdit, SIGNAL( textChanged( const QString& ) ),
380 SLOT( textChanged( const QString& ) ) ); 381 SLOT( textChanged( const QString& ) ) );
381 label->setBuddy( mRoleEdit ); 382 label->setBuddy( mRoleEdit );
382 layout->addWidget( label, 1, 1 ); 383 layout->addWidget( label, 1, 1 );
383 layout->addWidget( mRoleEdit, 1, 2 ); 384 layout->addWidget( mRoleEdit, 1, 2 );
384 385
385 // Organization 386 // Organization
386 label = new QLabel( i18n( "Organization:" ), tab1 ); 387 label = new QLabel( i18n( "Organization:" ), tab1 );
387 mOrgEdit = new KLineEdit( tab1 ); 388 mOrgEdit = new KLineEdit( tab1 );
388 label->setBuddy( mOrgEdit ); 389 label->setBuddy( mOrgEdit );
389 connect( mOrgEdit, SIGNAL( textChanged( const QString& ) ), 390 connect( mOrgEdit, SIGNAL( textChanged( const QString& ) ),
390 SLOT( textChanged( const QString& ) ) ); 391 SLOT( textChanged( const QString& ) ) );
391 layout->addWidget( label, 2, 1 ); 392 layout->addWidget( label, 2, 1 );
392 layout->addWidget( mOrgEdit, 2, 2 ); 393 layout->addWidget( mOrgEdit, 2, 2 );
393 394
394 // File as (formatted name) 395 // File as (formatted name)
395 label = new QLabel( i18n( "Formatted name:" ), tab1 ); 396 label = new QLabel( i18n( "Formatted name:" ), tab1 );
396#ifndef KAB_EMBEDDED 397#ifndef KAB_EMBEDDED
397 mFormattedNameLabel = new KSqueezedTextLabel( tab1 ); 398 mFormattedNameLabel = new KSqueezedTextLabel( tab1 );
398#else //KAB_EMBEDDED 399#else //KAB_EMBEDDED
399qDebug("AddresseeEditorWidget::setupTab1 has to be changed"); 400qDebug("AddresseeEditorWidget::setupTab1 has to be changed");
400#endif //KAB_EMBEDDED 401#endif //KAB_EMBEDDED
401 layout->addWidget( label, 3, 1 ); 402 layout->addWidget( label, 3, 1 );
402#ifndef KAB_EMBEDDED 403#ifndef KAB_EMBEDDED
403 layout->addWidget( mFormattedNameLabel, 3, 2 ); 404 layout->addWidget( mFormattedNameLabel, 3, 2 );
404#else //KAB_EMBEDDED 405#else //KAB_EMBEDDED
405qDebug("AddresseeEditorWidget::setupTab1 has to be changed"); 406qDebug("AddresseeEditorWidget::setupTab1 has to be changed");
406#endif //KAB_EMBEDDED 407#endif //KAB_EMBEDDED
407 408
408 // Left hand separator. This separator doesn't go all the way 409 // Left hand separator. This separator doesn't go all the way
409 // across so the dialog still flows from top to bottom 410 // across so the dialog still flows from top to bottom
410 bar = new KSeparator( KSeparator::HLine, tab1 ); 411 bar = new KSeparator( KSeparator::HLine, tab1 );
411 layout->addMultiCellWidget( bar, 4, 4, 0, 2 ); 412 layout->addMultiCellWidget( bar, 4, 4, 0, 2 );
412 413
413 ////////////////////////////////////// 414 //////////////////////////////////////
414 // Phone numbers (upper right) 415 // Phone numbers (upper right)
415 label = new QLabel( tab1 ); 416 label = new QLabel( tab1 );
416//US loadIcon call is ambiguous. Add one more parameter 417//US loadIcon call is ambiguous. Add one more parameter
417//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) ); 418//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) );
418 label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); 419 label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) );
419 layout->addMultiCellWidget( label, 0, 1, 3, 3 ); 420 layout->addMultiCellWidget( label, 0, 1, 3, 3 );
420 421
421 mPhoneEditWidget = new PhoneEditWidget( tab1 ); 422 mPhoneEditWidget = new PhoneEditWidget( tab1 );
422 connect( mPhoneEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); 423 connect( mPhoneEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) );
423 layout->addMultiCellWidget( mPhoneEditWidget, 0, 3, 4, 6 ); 424 layout->addMultiCellWidget( mPhoneEditWidget, 0, 3, 4, 6 );
424 425
425 bar = new KSeparator( KSeparator::HLine, tab1 ); 426 bar = new KSeparator( KSeparator::HLine, tab1 );
426 layout->addMultiCellWidget( bar, 4, 4, 3, 6 ); 427 layout->addMultiCellWidget( bar, 4, 4, 3, 6 );
427*/ 428*/
428 ////////////////////////////////////// 429 //////////////////////////////////////
429 // Addresses (lower left) 430 // Addresses (lower left)
430 /* LR 431 /* LR
431 label = new QLabel( tab1_1 ); 432 label = new QLabel( tab1_1 );
432//US loadIcon call is ambiguous. Add one more parameter 433//US loadIcon call is ambiguous. Add one more parameter
433//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop ) ); 434//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop ) );
434 label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop, 0 ) ); 435 label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop, 0 ) );
435//US layout->addMultiCellWidget( label, 5, 6, 0, 0 ); 436//US layout->addMultiCellWidget( label, 5, 6, 0, 0 );
436 layout->addMultiCellWidget( label, 0, 1, 0, 0 ); 437 layout->addMultiCellWidget( label, 0, 1, 0, 0 );
437 */ 438 */
438 439
439 mAddressEditWidget = new AddressEditWidget( tab1_1 ); 440 mAddressEditWidget = new AddressEditWidget( tab1_1 );
440 connect( mAddressEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); 441 connect( mAddressEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) );
441//US layout->addMultiCellWidget( mAddressEditWidget, 5, 9, 1, 2 ); 442//US layout->addMultiCellWidget( mAddressEditWidget, 5, 9, 1, 2 );
442 layout->addMultiCellWidget( mAddressEditWidget, 0, 4, 0, 1 ); 443 layout->addMultiCellWidget( mAddressEditWidget, 0, 4, 0, 1 );
443 444
444//US 445//US
445/* LR 446/* LR
446 bar = new KSeparator( KSeparator::HLine, tab1_1 ); 447 bar = new KSeparator( KSeparator::HLine, tab1_1 );
447 layout->addMultiCellWidget( bar, 5, 5, 0, 3 ); 448 layout->addMultiCellWidget( bar, 5, 5, 0, 3 );
448*/ 449*/
449 450
450 ////////////////////////////////////// 451 //////////////////////////////////////
451 // Email / Web (lower right) 452 // Email / Web (lower right)
452 /* LR 453 /* LR
453 label = new QLabel( tab1_1 ); 454 label = new QLabel( tab1_1 );
454//US loadIcon call is ambiguous. Add one more parameter 455//US loadIcon call is ambiguous. Add one more parameter
455//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop) ); 456//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop) );
456 label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop, 0) ); 457 label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop, 0) );
457//US layout->addMultiCellWidget( label, 5, 6, 3, 3 ); 458//US layout->addMultiCellWidget( label, 5, 6, 3, 3 );
458 layout->addMultiCellWidget( label, 6, 7, 0, 0 ); 459 layout->addMultiCellWidget( label, 6, 7, 0, 0 );
459 */ 460 */
460 mEmailWidget = new EmailEditWidget( tab1_1 ); 461 mEmailWidget = new EmailEditWidget( tab1_1 );
461 connect( mEmailWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); 462 connect( mEmailWidget, SIGNAL( modified() ), SLOT( emitModified() ) );
462//US layout->addMultiCellWidget( mEmailWidget, 5, 6, 4, 6 ); 463//US layout->addMultiCellWidget( mEmailWidget, 5, 6, 4, 6 );
463 layout->addMultiCellWidget( mEmailWidget, 5, 6, 0, 1 ); 464 layout->addMultiCellWidget( mEmailWidget, 5, 6, 0, 1 );
464 465
465 /* LR 466 /* LR
466 // add the separator 467 // add the separator
467 bar = new KSeparator( KSeparator::HLine, tab1_1 ); 468 bar = new KSeparator( KSeparator::HLine, tab1_1 );
468//US layout->addMultiCellWidget( bar, 7, 7, 3, 6 ); 469//US layout->addMultiCellWidget( bar, 7, 7, 3, 6 );
469 layout->addMultiCellWidget( bar, 8, 8, 0, 3 ); 470 layout->addMultiCellWidget( bar, 8, 8, 0, 3 );
470 471
471 label = new QLabel( tab1_1 ); 472 label = new QLabel( tab1_1 );
472//US loadIcon call is ambiguous. Add one more parameter 473//US loadIcon call is ambiguous. Add one more parameter
473//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop) ); 474//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop) );
474 label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop, 0) ); 475 label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop, 0) );
475//US layout->addMultiCellWidget( label, 8, 9, 3, 3 ); 476//US layout->addMultiCellWidget( label, 8, 9, 3, 3 );
476 layout->addMultiCellWidget( label, 9, 10, 0, 0 ); 477 layout->addMultiCellWidget( label, 9, 10, 0, 0 );
477 */ 478 */
478 label = new QLabel( i18n( "URL:" ), tab1_1 ); 479 label = new QLabel( i18n( "URL:" ), tab1_1 );
479 mURLEdit = new KLineEdit( tab1_1 ); 480 mURLEdit = new KLineEdit( tab1_1 );
480 connect( mURLEdit, SIGNAL( textChanged( const QString& ) ), 481 connect( mURLEdit, SIGNAL( textChanged( const QString& ) ),
481 SLOT( textChanged( const QString& ) ) ); 482 SLOT( textChanged( const QString& ) ) );
482 label->setBuddy( mURLEdit ); 483 label->setBuddy( mURLEdit );
483//US layout->addWidget( label, 8, 4 ); 484//US layout->addWidget( label, 8, 4 );
484 layout->addWidget( label, 7,0 ); 485 layout->addWidget( label, 7,0 );
485//US layout->addMultiCellWidget( mURLEdit, 8, 8, 5, 6 ); 486//US layout->addMultiCellWidget( mURLEdit, 8, 8, 5, 6 );
486 layout->addWidget( mURLEdit, 7, 1); 487 layout->addWidget( mURLEdit, 7, 1);
487 488
488 label = new QLabel( i18n( "&IM address:" ), tab1_1 ); 489 label = new QLabel( i18n( "&IM address:" ), tab1_1 );
489 mIMAddressEdit = new KLineEdit( tab1_1 ); 490 mIMAddressEdit = new KLineEdit( tab1_1 );
490 connect( mIMAddressEdit, SIGNAL( textChanged( const QString& ) ), 491 connect( mIMAddressEdit, SIGNAL( textChanged( const QString& ) ),
491 SLOT( textChanged( const QString& ) ) ); 492 SLOT( textChanged( const QString& ) ) );
492 label->setBuddy( mIMAddressEdit ); 493 label->setBuddy( mIMAddressEdit );
493//US layout->addWidget( label, 9, 4 ); 494//US layout->addWidget( label, 9, 4 );
494 layout->addWidget( label, 8, 0 ); 495 layout->addWidget( label, 8, 0 );
495//US layout->addMultiCellWidget( mIMAddressEdit, 9, 9, 5, 6 ); 496//US layout->addMultiCellWidget( mIMAddressEdit, 9, 9, 5, 6 );
496 layout->addWidget( mIMAddressEdit, 8,1 ); 497 layout->addWidget( mIMAddressEdit, 8,1 );
497 498
498//US layout->addColSpacing( 6, 50 ); 499//US layout->addColSpacing( 6, 50 );
499 500
500//US bar = new KSeparator( KSeparator::HLine, tab1_1 ); 501//US bar = new KSeparator( KSeparator::HLine, tab1_1 );
501//US layout->addMultiCellWidget( bar, 10, 10, 0, 6 ); 502//US layout->addMultiCellWidget( bar, 10, 10, 0, 6 );
502 503
503/*US 504/*US
504 /////////////////////////////////////// 505 ///////////////////////////////////////
505 QHBox *categoryBox = new QHBox( tab1 ); 506 QHBox *categoryBox = new QHBox( tab1 );
506 categoryBox->setSpacing( KDialogBase::spacingHintSmall() ); 507 categoryBox->setSpacing( KDialogBase::spacingHintSmall() );
507 508
508 // Categories 509 // Categories
509 button = new QPushButton( i18n( "Categories" ), categoryBox ); 510 button = new QPushButton( i18n( "Categories" ), categoryBox );
510 connect( button, SIGNAL( clicked() ), SLOT( categoryButtonClicked() ) ); 511 connect( button, SIGNAL( clicked() ), SLOT( categoryButtonClicked() ) );
511 512
512 mCategoryEdit = new KLineEdit( categoryBox ); 513 mCategoryEdit = new KLineEdit( categoryBox );
513 mCategoryEdit->setReadOnly( true ); 514 mCategoryEdit->setReadOnly( true );
514 connect( mCategoryEdit, SIGNAL( textChanged( const QString& ) ), 515 connect( mCategoryEdit, SIGNAL( textChanged( const QString& ) ),
515 SLOT( textChanged( const QString& ) ) ); 516 SLOT( textChanged( const QString& ) ) );
516 517
517 mSecrecyWidget = new SecrecyWidget( categoryBox ); 518 mSecrecyWidget = new SecrecyWidget( categoryBox );
518 connect( mSecrecyWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); 519 connect( mSecrecyWidget, SIGNAL( changed() ), SLOT( emitModified() ) );
519 520
520 layout->addMultiCellWidget( categoryBox, 11, 11, 0, 6 ); 521 layout->addMultiCellWidget( categoryBox, 11, 11, 0, 6 );
521*/ 522*/
522 // Build the layout and add to the tab widget 523 // Build the layout and add to the tab widget
523 layout->activate(); // required 524 layout->activate(); // required
524 525
525 mTabWidget->addTab( tab1_1, i18n( "&Address" ) ); 526 mTabWidget->addTab( tab1_1, i18n( "&Address" ) );
526} 527}
527 528
528 529
529 530
530void AddresseeEditorWidget::setupTab2() 531void AddresseeEditorWidget::setupTab2()
531{ 532{
532 // This is the Details tab 533 // This is the Details tab
533 QWidget *tab2 = new QWidget( mTabWidget ); 534 QWidget *tab2 = new QWidget( mTabWidget );
534 535
535 QGridLayout *layout = new QGridLayout( tab2, 8, 3 ); 536 QGridLayout *layout = new QGridLayout( tab2, 8, 3 );
536 layout->setMargin( KDialogBase::marginHintSmall() ); 537 layout->setMargin( KDialogBase::marginHintSmall() );
537 layout->setSpacing( KDialogBase::spacingHintSmall() ); 538 layout->setSpacing( KDialogBase::spacingHintSmall() );
538 539
539 QLabel *label; 540 QLabel *label;
540 KSeparator* bar; 541 KSeparator* bar;
541 542
542 /////////////////////// 543 ///////////////////////
543 // Office info 544 // Office info
544 545
545 // Department 546 // Department
546 label = new QLabel( tab2 ); 547 label = new QLabel( tab2 );
547//US loadIcon call is ambiguous. Add one more parameter 548//US loadIcon call is ambiguous. Add one more parameter
548//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop ) ); 549//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop ) );
549 label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, 0 ) ); 550 label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, 0 ) );
550 layout->addMultiCellWidget( label, 0, 1, 0, 0 ); 551 layout->addMultiCellWidget( label, 0, 1, 0, 0 );
551 552
552 label = new QLabel( i18n( "Department:" ), tab2 ); 553 label = new QLabel( i18n( "Department:" ), tab2 );
553 layout->addWidget( label, 0, 1 ); 554 layout->addWidget( label, 0, 1 );
554 mDepartmentEdit = new KLineEdit( tab2 ); 555 mDepartmentEdit = new KLineEdit( tab2 );
555 connect( mDepartmentEdit, SIGNAL( textChanged( const QString& ) ), 556 connect( mDepartmentEdit, SIGNAL( textChanged( const QString& ) ),
556 SLOT( textChanged( const QString& ) ) ); 557 SLOT( textChanged( const QString& ) ) );
557 label->setBuddy( mDepartmentEdit ); 558 label->setBuddy( mDepartmentEdit );
558 layout->addWidget( mDepartmentEdit, 0, 2 ); 559 layout->addWidget( mDepartmentEdit, 0, 2 );
559 560
560 label = new QLabel( i18n( "Office:" ), tab2 ); 561 label = new QLabel( i18n( "Office:" ), tab2 );
561 layout->addWidget( label, 1, 1 ); 562 layout->addWidget( label, 1, 1 );
562 mOfficeEdit = new KLineEdit( tab2 ); 563 mOfficeEdit = new KLineEdit( tab2 );
563 connect( mOfficeEdit, SIGNAL( textChanged( const QString& ) ), 564 connect( mOfficeEdit, SIGNAL( textChanged( const QString& ) ),
564 SLOT( textChanged( const QString& ) ) ); 565 SLOT( textChanged( const QString& ) ) );
565 label->setBuddy( mOfficeEdit ); 566 label->setBuddy( mOfficeEdit );
566 layout->addWidget( mOfficeEdit, 1, 2 ); 567 layout->addWidget( mOfficeEdit, 1, 2 );
567 568
568 label = new QLabel( i18n( "Profession:" ), tab2 ); 569 label = new QLabel( i18n( "Profession:" ), tab2 );
569 layout->addWidget( label, 2, 1 ); 570 layout->addWidget( label, 2, 1 );
570 mProfessionEdit = new KLineEdit( tab2 ); 571 mProfessionEdit = new KLineEdit( tab2 );
571 connect( mProfessionEdit, SIGNAL( textChanged( const QString& ) ), 572 connect( mProfessionEdit, SIGNAL( textChanged( const QString& ) ),
572 SLOT( textChanged( const QString& ) ) ); 573 SLOT( textChanged( const QString& ) ) );
573 label->setBuddy( mProfessionEdit ); 574 label->setBuddy( mProfessionEdit );
574 layout->addWidget( mProfessionEdit, 2, 2 ); 575 layout->addWidget( mProfessionEdit, 2, 2 );
575 576
576 label = new QLabel( i18n( "Manager\'s name:" ), tab2 ); 577 label = new QLabel( i18n( "Manager\'s name:" ), tab2 );
577//US layout->addWidget( label, 0, 3 ); 578//US layout->addWidget( label, 0, 3 );
578 layout->addWidget( label, 3, 1 ); 579 layout->addWidget( label, 3, 1 );
579 mManagerEdit = new KLineEdit( tab2 ); 580 mManagerEdit = new KLineEdit( tab2 );
580 connect( mManagerEdit, SIGNAL( textChanged( const QString& ) ), 581 connect( mManagerEdit, SIGNAL( textChanged( const QString& ) ),
581 SLOT( textChanged( const QString& ) ) ); 582 SLOT( textChanged( const QString& ) ) );
582 label->setBuddy( mManagerEdit ); 583 label->setBuddy( mManagerEdit );
583//US layout->addMultiCellWidget( mManagerEdit, 0, 0, 4, 5 ); 584//US layout->addMultiCellWidget( mManagerEdit, 0, 0, 4, 5 );
584 layout->addWidget( mManagerEdit, 3, 2 ); 585 layout->addWidget( mManagerEdit, 3, 2 );
585 586
586 label = new QLabel( i18n( "Assistant's name:" ), tab2 ); 587 label = new QLabel( i18n( "Assistant's name:" ), tab2 );
587//US layout->addWidget( label, 1, 3 ); 588//US layout->addWidget( label, 1, 3 );
588 layout->addWidget( label, 4, 1 ); 589 layout->addWidget( label, 4, 1 );
589 mAssistantEdit = new KLineEdit( tab2 ); 590 mAssistantEdit = new KLineEdit( tab2 );
590 connect( mAssistantEdit, SIGNAL( textChanged( const QString& ) ), 591 connect( mAssistantEdit, SIGNAL( textChanged( const QString& ) ),
591 SLOT( textChanged( const QString& ) ) ); 592 SLOT( textChanged( const QString& ) ) );
592 label->setBuddy( mAssistantEdit ); 593 label->setBuddy( mAssistantEdit );
593//US layout->addMultiCellWidget( mAssistantEdit, 1, 1, 4, 5 ); 594//US layout->addMultiCellWidget( mAssistantEdit, 1, 1, 4, 5 );
594 layout->addWidget( mAssistantEdit, 4, 2 ); 595 layout->addWidget( mAssistantEdit, 4, 2 );
595 596
596 bar = new KSeparator( KSeparator::HLine, tab2 ); 597 bar = new KSeparator( KSeparator::HLine, tab2 );
597//US layout->addMultiCellWidget( bar, 3, 3, 0, 5 ); 598//US layout->addMultiCellWidget( bar, 3, 3, 0, 5 );
598 layout->addMultiCellWidget( bar, 5, 5, 0, 2 ); 599 layout->addMultiCellWidget( bar, 5, 5, 0, 2 );
599 600
600 ///////////////////////////////////////////////// 601 /////////////////////////////////////////////////
601 // Personal info 602 // Personal info
602 603
603 //label = new QLabel( tab2 ); 604 //label = new QLabel( tab2 );
604//US loadIcon call is ambiguous. Add one more parameter 605//US loadIcon call is ambiguous. Add one more parameter
605//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) ); 606//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) );
606 //label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) ); 607 //label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) );
607//US layout->addMultiCellWidget( label, 4, 5, 0, 0 ); 608//US layout->addMultiCellWidget( label, 4, 5, 0, 0 );
608 //layout->addMultiCellWidget( label, 6, 7, 0, 0 ); 609 //layout->addMultiCellWidget( label, 6, 7, 0, 0 );
609 610
610 611
611 int iii = 6; 612 int iii = 6;
612 613
613 if ( QApplication::desktop()->width() == 640 ) { 614 if ( QApplication::desktop()->width() == 640 ) {
614 QHBox * nbox = new QHBox ( tab2 ); 615 QHBox * nbox = new QHBox ( tab2 );
615 label = new QLabel( i18n( "Nick name:" )+" ", nbox ); 616 label = new QLabel( i18n( "Nick name:" )+" ", nbox );
616 layout->addWidget( label, iii, 1 ); 617 layout->addWidget( label, iii, 1 );
617 mNicknameEdit = new KLineEdit( nbox ); 618 mNicknameEdit = new KLineEdit( nbox );
618 connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ), 619 connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ),
619 SLOT( textChanged( const QString& ) ) ); 620 SLOT( textChanged( const QString& ) ) );
620 label->setBuddy( mNicknameEdit ); 621 label->setBuddy( mNicknameEdit );
621 622
622 label = new QLabel( " "+i18n( "Spouse's name:" )+" ", nbox ); 623 label = new QLabel( " "+i18n( "Spouse's name:" )+" ", nbox );
623 layout->addWidget( label, iii, 1 ); 624 layout->addWidget( label, iii, 1 );
624 mSpouseEdit = new KLineEdit( nbox ); 625 mSpouseEdit = new KLineEdit( nbox );
625 connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ), 626 connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ),
626 SLOT( textChanged( const QString& ) ) ); 627 SLOT( textChanged( const QString& ) ) );
627 label->setBuddy( mSpouseEdit ); 628 label->setBuddy( mSpouseEdit );
628 layout->addWidget( mSpouseEdit, iii, 2 ); 629 layout->addWidget( mSpouseEdit, iii, 2 );
629 layout->addMultiCellWidget( nbox, iii, iii, 1, 2 ); 630 layout->addMultiCellWidget( nbox, iii, iii, 1, 2 );
630 ++iii; 631 ++iii;
631 632
632 } else { 633 } else {
633 label = new QLabel( i18n( "Nick name:" ), tab2 ); 634 label = new QLabel( i18n( "Nick name:" ), tab2 );
634 layout->addWidget( label, iii, 1 ); 635 layout->addWidget( label, iii, 1 );
635 mNicknameEdit = new KLineEdit( tab2 ); 636 mNicknameEdit = new KLineEdit( tab2 );
636 connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ), 637 connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ),
637 SLOT( textChanged( const QString& ) ) ); 638 SLOT( textChanged( const QString& ) ) );
638 label->setBuddy( mNicknameEdit ); 639 label->setBuddy( mNicknameEdit );
639 layout->addWidget( mNicknameEdit, iii, 2 ); 640 layout->addWidget( mNicknameEdit, iii, 2 );
640 ++iii; 641 ++iii;
641 642
642 label = new QLabel( i18n( "Spouse's name:" ), tab2 ); 643 label = new QLabel( i18n( "Spouse's name:" ), tab2 );
643 layout->addWidget( label, iii, 1 ); 644 layout->addWidget( label, iii, 1 );
644 mSpouseEdit = new KLineEdit( tab2 ); 645 mSpouseEdit = new KLineEdit( tab2 );
645 connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ), 646 connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ),
646 SLOT( textChanged( const QString& ) ) ); 647 SLOT( textChanged( const QString& ) ) );
647 label->setBuddy( mSpouseEdit ); 648 label->setBuddy( mSpouseEdit );
648 layout->addWidget( mSpouseEdit, iii, 2 ); 649 layout->addWidget( mSpouseEdit, iii, 2 );
649 ++iii; 650 ++iii;
650 } 651 }
651 652
652 label = new QLabel( i18n( "Children's names:" ), tab2 ); 653 label = new QLabel( i18n( "Children's names:" ), tab2 );
653 layout->addWidget( label, iii, 1 ); 654 layout->addWidget( label, iii, 1 );
654 mChildEdit = new KLineEdit( tab2 ); 655 mChildEdit = new KLineEdit( tab2 );
655 connect( mChildEdit, SIGNAL( textChanged( const QString& ) ), 656 connect( mChildEdit, SIGNAL( textChanged( const QString& ) ),
656 SLOT( textChanged( const QString& ) ) ); 657 SLOT( textChanged( const QString& ) ) );
657 label->setBuddy( mChildEdit ); 658 label->setBuddy( mChildEdit );
658 layout->addWidget( mChildEdit, iii, 2 ); 659 layout->addWidget( mChildEdit, iii, 2 );
659 ++iii; 660 ++iii;
660 if ( QApplication::desktop()->width() == 640 ) { 661 if ( QApplication::desktop()->width() == 640 ) {
661 QHBox * nbox = new QHBox ( tab2 ); 662 QHBox * nbox = new QHBox ( tab2 );
662 label = new QLabel( i18n( "Birthday:" )+" ", nbox ); 663 label = new QLabel( i18n( "Birthday:" )+" ", nbox );
663 layout->addWidget( label, iii, 1 ); 664 layout->addWidget( label, iii, 1 );
664 mBirthdayPicker = new KDateEdit( nbox ); 665 mBirthdayPicker = new KDateEdit( nbox );
665 mBirthdayPicker->toggleDateFormat(); 666 mBirthdayPicker->toggleDateFormat();
666 mBirthdayPicker->setHandleInvalid( true ); 667 mBirthdayPicker->setHandleInvalid( true );
667 connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ), 668 connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ),
668 SLOT( dateChanged( QDate ) ) ); 669 SLOT( dateChanged( QDate ) ) );
669 670
670 label->setBuddy( mBirthdayPicker ); 671 label->setBuddy( mBirthdayPicker );
671 672
672 label = new QLabel( " "+i18n( "Anniversary:" )+" ", nbox ); 673 label = new QLabel( " "+i18n( "Anniversary:" )+" ", nbox );
673 layout->addWidget( label, iii, 1 ); 674 layout->addWidget( label, iii, 1 );
674 mAnniversaryPicker = new KDateEdit( nbox ); 675 mAnniversaryPicker = new KDateEdit( nbox );
675 mAnniversaryPicker->setHandleInvalid( true ); 676 mAnniversaryPicker->setHandleInvalid( true );
676 connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ), 677 connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ),
677 SLOT( dateChanged( QDate ) ) ); 678 SLOT( dateChanged( QDate ) ) );
678 679
679 label->setBuddy( mAnniversaryPicker ); 680 label->setBuddy( mAnniversaryPicker );
680 layout->addMultiCellWidget( nbox, iii, iii, 1, 2 ); 681 layout->addMultiCellWidget( nbox, iii, iii, 1, 2 );
681 ++iii; 682 ++iii;
682 683
683 } else { 684 } else {
684 685
685 label = new QLabel( i18n( "Birthday:" ), tab2 ); 686 label = new QLabel( i18n( "Birthday:" ), tab2 );
686 layout->addWidget( label, iii, 1 ); 687 layout->addWidget( label, iii, 1 );
687 mBirthdayPicker = new KDateEdit( tab2 ); 688 mBirthdayPicker = new KDateEdit( tab2 );
688 mBirthdayPicker->toggleDateFormat(); 689 mBirthdayPicker->toggleDateFormat();
689 mBirthdayPicker->setHandleInvalid( true ); 690 mBirthdayPicker->setHandleInvalid( true );
690 connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ), 691 connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ),
691 SLOT( dateChanged( QDate ) ) ); 692 SLOT( dateChanged( QDate ) ) );
692 693
693 label->setBuddy( mBirthdayPicker ); 694 label->setBuddy( mBirthdayPicker );
694 layout->addWidget( mBirthdayPicker, iii, 2 ); 695 layout->addWidget( mBirthdayPicker, iii, 2 );
695 ++iii; 696 ++iii;
696 697
697 label = new QLabel( i18n( "Anniversary:" ), tab2 ); 698 label = new QLabel( i18n( "Anniversary:" ), tab2 );
698 layout->addWidget( label, iii, 1 ); 699 layout->addWidget( label, iii, 1 );
699 mAnniversaryPicker = new KDateEdit( tab2 ); 700 mAnniversaryPicker = new KDateEdit( tab2 );
700 mAnniversaryPicker->setHandleInvalid( true ); 701 mAnniversaryPicker->setHandleInvalid( true );
701 connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ), 702 connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ),
702 SLOT( dateChanged( QDate ) ) ); 703 SLOT( dateChanged( QDate ) ) );
703 704
704 label->setBuddy( mAnniversaryPicker ); 705 label->setBuddy( mAnniversaryPicker );
705 layout->addWidget( mAnniversaryPicker, iii, 2 ); 706 layout->addWidget( mAnniversaryPicker, iii, 2 );
706 ++iii; 707 ++iii;
707 708
708 } 709 }
709 710
710 label = new QLabel( i18n( "Gender:" ), tab2 ); 711 label = new QLabel( i18n( "Gender:" ), tab2 );
711 layout->addWidget( label, iii, 1 ); 712 layout->addWidget( label, iii, 1 );
712 mGenderBox = new QComboBox ( tab2 ); 713 mGenderBox = new QComboBox ( tab2 );
713 mGenderBox->insertItem ( i18n( "ALIEN (gender undefined)" )); 714 mGenderBox->insertItem ( i18n( "ALIEN (gender undefined)" ));
714 mGenderBox->insertItem ( i18n( "female" )); 715 mGenderBox->insertItem ( i18n( "female" ));
715 mGenderBox->insertItem ( i18n( "male" )); 716 mGenderBox->insertItem ( i18n( "male" ));
716 connect( mGenderBox, SIGNAL( activated ( const QString & ) ), 717 connect( mGenderBox, SIGNAL( activated ( const QString & ) ),
717 SLOT( textChanged( const QString& ) ) ); 718 SLOT( textChanged( const QString& ) ) );
718 label->setBuddy( mGenderBox ); 719 label->setBuddy( mGenderBox );
719 layout->addWidget( mGenderBox, iii, 2 ); 720 layout->addWidget( mGenderBox, iii, 2 );
720 ++iii; 721 ++iii;
721 // Build the layout and add to the tab widget 722 // Build the layout and add to the tab widget
722 layout->activate(); // required 723 layout->activate(); // required
723 724
724 mTabWidget->addTab( tab2, i18n( "&Details" ) ); 725 mTabWidget->addTab( tab2, i18n( "&Details" ) );
725} 726}
726 727
727void AddresseeEditorWidget::setupTab2_1() 728void AddresseeEditorWidget::setupTab2_1()
728{ 729{
729 // This is the Details tab 730 // This is the Details tab
730 QWidget *tab2_2 = new QWidget( mTabWidget ); 731 QWidget *tab2_2 = new QWidget( mTabWidget );
731 732
732 QGridLayout *layout = new QGridLayout( tab2_2, 1, 2 ); 733 QGridLayout *layout = new QGridLayout( tab2_2, 1, 2 );
733 layout->setMargin( KDialogBase::marginHintSmall() ); 734 layout->setMargin( KDialogBase::marginHintSmall() );
734 layout->setSpacing( KDialogBase::spacingHintSmall() ); 735 layout->setSpacing( KDialogBase::spacingHintSmall() );
735 736
736 QLabel *label; 737 QLabel *label;
737 KSeparator* bar; 738 KSeparator* bar;
738 739
739/*US 740/*US
740 /////////////////////// 741 ///////////////////////
741 // Office info 742 // Office info
742 743
743 // Department 744 // Department
744 label = new QLabel( tab2 ); 745 label = new QLabel( tab2 );
745//US loadIcon call is ambiguous. Add one more parameter 746//US loadIcon call is ambiguous. Add one more parameter
746//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop ) ); 747//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop ) );
747 label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, 0 ) ); 748 label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, 0 ) );
748 layout->addMultiCellWidget( label, 0, 1, 0, 0 ); 749 layout->addMultiCellWidget( label, 0, 1, 0, 0 );
749 750
750 label = new QLabel( i18n( "Department:" ), tab2 ); 751 label = new QLabel( i18n( "Department:" ), tab2 );
751 layout->addWidget( label, 0, 1 ); 752 layout->addWidget( label, 0, 1 );
752 mDepartmentEdit = new KLineEdit( tab2 ); 753 mDepartmentEdit = new KLineEdit( tab2 );
753 connect( mDepartmentEdit, SIGNAL( textChanged( const QString& ) ), 754 connect( mDepartmentEdit, SIGNAL( textChanged( const QString& ) ),
754 SLOT( textChanged( const QString& ) ) ); 755 SLOT( textChanged( const QString& ) ) );
755 label->setBuddy( mDepartmentEdit ); 756 label->setBuddy( mDepartmentEdit );
756 layout->addWidget( mDepartmentEdit, 0, 2 ); 757 layout->addWidget( mDepartmentEdit, 0, 2 );
757 758
758 label = new QLabel( i18n( "Office:" ), tab2 ); 759 label = new QLabel( i18n( "Office:" ), tab2 );
759 layout->addWidget( label, 1, 1 ); 760 layout->addWidget( label, 1, 1 );
760 mOfficeEdit = new KLineEdit( tab2 ); 761 mOfficeEdit = new KLineEdit( tab2 );
761 connect( mOfficeEdit, SIGNAL( textChanged( const QString& ) ), 762 connect( mOfficeEdit, SIGNAL( textChanged( const QString& ) ),
762 SLOT( textChanged( const QString& ) ) ); 763 SLOT( textChanged( const QString& ) ) );
763 label->setBuddy( mOfficeEdit ); 764 label->setBuddy( mOfficeEdit );
764 layout->addWidget( mOfficeEdit, 1, 2 ); 765 layout->addWidget( mOfficeEdit, 1, 2 );
765 766
766 label = new QLabel( i18n( "Profession:" ), tab2 ); 767 label = new QLabel( i18n( "Profession:" ), tab2 );
767 layout->addWidget( label, 2, 1 ); 768 layout->addWidget( label, 2, 1 );
768 mProfessionEdit = new KLineEdit( tab2 ); 769 mProfessionEdit = new KLineEdit( tab2 );
769 connect( mProfessionEdit, SIGNAL( textChanged( const QString& ) ), 770 connect( mProfessionEdit, SIGNAL( textChanged( const QString& ) ),
770 SLOT( textChanged( const QString& ) ) ); 771 SLOT( textChanged( const QString& ) ) );
771 label->setBuddy( mProfessionEdit ); 772 label->setBuddy( mProfessionEdit );
772 layout->addWidget( mProfessionEdit, 2, 2 ); 773 layout->addWidget( mProfessionEdit, 2, 2 );
773 774
774 label = new QLabel( i18n( "Manager\'s name:" ), tab2 ); 775 label = new QLabel( i18n( "Manager\'s name:" ), tab2 );
775 layout->addWidget( label, 0, 3 ); 776 layout->addWidget( label, 0, 3 );
776 mManagerEdit = new KLineEdit( tab2 ); 777 mManagerEdit = new KLineEdit( tab2 );
777 connect( mManagerEdit, SIGNAL( textChanged( const QString& ) ), 778 connect( mManagerEdit, SIGNAL( textChanged( const QString& ) ),
778 SLOT( textChanged( const QString& ) ) ); 779 SLOT( textChanged( const QString& ) ) );
779 label->setBuddy( mManagerEdit ); 780 label->setBuddy( mManagerEdit );
780 layout->addMultiCellWidget( mManagerEdit, 0, 0, 4, 5 ); 781 layout->addMultiCellWidget( mManagerEdit, 0, 0, 4, 5 );
781 782
782 label = new QLabel( i18n( "Assistant's name:" ), tab2 ); 783 label = new QLabel( i18n( "Assistant's name:" ), tab2 );
783 layout->addWidget( label, 1, 3 ); 784 layout->addWidget( label, 1, 3 );
784 mAssistantEdit = new KLineEdit( tab2 ); 785 mAssistantEdit = new KLineEdit( tab2 );
785 connect( mAssistantEdit, SIGNAL( textChanged( const QString& ) ), 786 connect( mAssistantEdit, SIGNAL( textChanged( const QString& ) ),
786 SLOT( textChanged( const QString& ) ) ); 787 SLOT( textChanged( const QString& ) ) );
787 label->setBuddy( mAssistantEdit ); 788 label->setBuddy( mAssistantEdit );
788 layout->addMultiCellWidget( mAssistantEdit, 1, 1, 4, 5 ); 789 layout->addMultiCellWidget( mAssistantEdit, 1, 1, 4, 5 );
789 790
790 bar = new KSeparator( KSeparator::HLine, tab2 ); 791 bar = new KSeparator( KSeparator::HLine, tab2 );
791 layout->addMultiCellWidget( bar, 3, 3, 0, 5 ); 792 layout->addMultiCellWidget( bar, 3, 3, 0, 5 );
792 793
793 ///////////////////////////////////////////////// 794 /////////////////////////////////////////////////
794 // Personal info 795 // Personal info
795 796
796 label = new QLabel( tab2 ); 797 label = new QLabel( tab2 );
797//US loadIcon call is ambiguous. Add one more parameter 798//US loadIcon call is ambiguous. Add one more parameter
798//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) ); 799//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) );