summaryrefslogtreecommitdiffabout
path: root/kaddressbook
authorzautrix <zautrix>2004-10-11 09:49:14 (UTC)
committer zautrix <zautrix>2004-10-11 09:49:14 (UTC)
commit504f6b2a8732d980a88234cdef0a80c201b9c4da (patch) (unidiff)
tree6aa81a390f51ecb91446a0b637707777146d3d25 /kaddressbook
parentff475669e0cb65677168d4a29928a6c1d984aa10 (diff)
downloadkdepimpi-504f6b2a8732d980a88234cdef0a80c201b9c4da.zip
kdepimpi-504f6b2a8732d980a88234cdef0a80c201b9c4da.tar.gz
kdepimpi-504f6b2a8732d980a88234cdef0a80c201b9c4da.tar.bz2
compile fix
Diffstat (limited to 'kaddressbook') (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,542 +1,543 @@
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 ///////////////////////