author | tux_mike <tux_mike> | 2002-03-28 23:35:14 (UTC) |
---|---|---|
committer | tux_mike <tux_mike> | 2002-03-28 23:35:14 (UTC) |
commit | 092eafd03031a770819a42a3dd31f7e197ce1974 (patch) (unidiff) | |
tree | 3a94e822f767ba780cbbf3b3d554342e8f6e0a10 | |
parent | 6c6f578fa5ef1f83cf1ba4978015663360ac2e7e (diff) | |
download | opie-092eafd03031a770819a42a3dd31f7e197ce1974.zip opie-092eafd03031a770819a42a3dd31f7e197ce1974.tar.gz opie-092eafd03031a770819a42a3dd31f7e197ce1974.tar.bz2 |
Made a minor spacing change, makes editing a little more comfortable
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index 0c90510..66e94ef 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -251,33 +251,33 @@ void ContactEditor::init() { | |||
251 | 251 | ||
252 | tabMain = new QTabWidget( this ); | 252 | tabMain = new QTabWidget( this ); |
253 | vb->addWidget( tabMain ); | 253 | vb->addWidget( tabMain ); |
254 | 254 | ||
255 | QWidget *tabViewport = new QWidget ( tabMain ); | 255 | QWidget *tabViewport = new QWidget ( tabMain ); |
256 | 256 | ||
257 | vb = new QVBoxLayout( tabViewport ); | 257 | vb = new QVBoxLayout( tabViewport ); |
258 | 258 | ||
259 | svGeneral = new QScrollView( tabViewport ); | 259 | svGeneral = new QScrollView( tabViewport ); |
260 | vb->addWidget( svGeneral, 0, 0 ); | 260 | vb->addWidget( svGeneral, 0, 0 ); |
261 | svGeneral->setResizePolicy( QScrollView::AutoOneFit ); | 261 | svGeneral->setResizePolicy( QScrollView::AutoOneFit ); |
262 | svGeneral->setFrameStyle( QFrame::NoFrame ); | 262 | svGeneral->setFrameStyle( QFrame::NoFrame ); |
263 | 263 | ||
264 | QWidget *container = new QWidget( svGeneral->viewport() ); | 264 | QWidget *container = new QWidget( svGeneral->viewport() ); |
265 | svGeneral->addChild( container ); | 265 | svGeneral->addChild( container ); |
266 | 266 | ||
267 | QGridLayout *gl = new QGridLayout( container ); | 267 | QGridLayout *gl = new QGridLayout( container, 1, 1, 2, 3 ); |
268 | gl->setResizeMode( QLayout::FreeResize ); | 268 | gl->setResizeMode( QLayout::FreeResize ); |
269 | 269 | ||
270 | btnFullName = new QPushButton( tr( "Full Name..." ), container ); | 270 | btnFullName = new QPushButton( tr( "Full Name..." ), container ); |
271 | gl->addWidget( btnFullName, 0, 0 ); | 271 | gl->addWidget( btnFullName, 0, 0 ); |
272 | txtFullName = new QLineEdit( container ); | 272 | txtFullName = new QLineEdit( container ); |
273 | gl->addWidget( txtFullName, 0, 1 ); | 273 | gl->addWidget( txtFullName, 0, 1 ); |
274 | 274 | ||
275 | QLabel *l = new QLabel( tr( "Job Title" ), container ); | 275 | QLabel *l = new QLabel( tr( "Job Title" ), container ); |
276 | gl->addWidget( l, 1, 0 ); | 276 | gl->addWidget( l, 1, 0 ); |
277 | txtJobTitle = new QLineEdit( container ); | 277 | txtJobTitle = new QLineEdit( container ); |
278 | gl->addWidget( txtJobTitle, 1, 1 ); | 278 | gl->addWidget( txtJobTitle, 1, 1 ); |
279 | 279 | ||
280 | l = new QLabel( tr( "Organization" ), container ); | 280 | l = new QLabel( tr( "Organization" ), container ); |
281 | gl->addWidget( l, 2, 0 ); | 281 | gl->addWidget( l, 2, 0 ); |
282 | txtOrganization = new QLineEdit( container ); | 282 | txtOrganization = new QLineEdit( container ); |
283 | gl->addWidget( txtOrganization, 2, 1 ); | 283 | gl->addWidget( txtOrganization, 2, 1 ); |
@@ -314,33 +314,33 @@ void ContactEditor::init() { | |||
314 | gl->addWidget( btnNote, 8, 1 ); | 314 | gl->addWidget( btnNote, 8, 1 ); |
315 | 315 | ||
316 | tabMain->insertTab( tabViewport, tr( "General" ) ); | 316 | tabMain->insertTab( tabViewport, tr( "General" ) ); |
317 | 317 | ||
318 | tabViewport = new QWidget ( tabMain ); | 318 | tabViewport = new QWidget ( tabMain ); |
319 | 319 | ||
320 | vb = new QVBoxLayout( tabViewport ); | 320 | vb = new QVBoxLayout( tabViewport ); |
321 | 321 | ||
322 | svAddress = new QScrollView( tabViewport ); | 322 | svAddress = new QScrollView( tabViewport ); |
323 | vb->addWidget( svAddress, 0, 0 ); | 323 | vb->addWidget( svAddress, 0, 0 ); |
324 | svAddress->setResizePolicy( QScrollView::AutoOneFit ); | 324 | svAddress->setResizePolicy( QScrollView::AutoOneFit ); |
325 | svAddress->setFrameStyle( QFrame::NoFrame ); | 325 | svAddress->setFrameStyle( QFrame::NoFrame ); |
326 | 326 | ||
327 | container = new QWidget( svAddress->viewport() ); | 327 | container = new QWidget( svAddress->viewport() ); |
328 | svAddress->addChild( container ); | 328 | svAddress->addChild( container ); |
329 | 329 | ||
330 | gl = new QGridLayout( container, 5, 3, 0, 1 ); | 330 | gl = new QGridLayout( container, 5, 3, 2, 3 ); |
331 | 331 | ||
332 | cmbAddress = new QComboBox( FALSE, container ); | 332 | cmbAddress = new QComboBox( FALSE, container ); |
333 | cmbAddress->insertItem( tr( "Business" ) ); | 333 | cmbAddress->insertItem( tr( "Business" ) ); |
334 | cmbAddress->insertItem( tr( "Home" ) ); | 334 | cmbAddress->insertItem( tr( "Home" ) ); |
335 | gl->addMultiCellWidget( cmbAddress, 0, 0, 0, 1 ); | 335 | gl->addMultiCellWidget( cmbAddress, 0, 0, 0, 1 ); |
336 | 336 | ||
337 | l = new QLabel( tr( "Address" ), container ); | 337 | l = new QLabel( tr( "Address" ), container ); |
338 | gl->addWidget( l, 1, 0 ); | 338 | gl->addWidget( l, 1, 0 ); |
339 | txtAddress = new QLineEdit( container ); | 339 | txtAddress = new QLineEdit( container ); |
340 | gl->addMultiCellWidget( txtAddress, 1, 1, 1, 2 ); | 340 | gl->addMultiCellWidget( txtAddress, 1, 1, 1, 2 ); |
341 | /* | 341 | /* |
342 | l = new QLabel( tr( "Address 2" ), container ); | 342 | l = new QLabel( tr( "Address 2" ), container ); |
343 | gl->addWidget( l, 2, 0 ); | 343 | gl->addWidget( l, 2, 0 ); |
344 | txtAddress2 = new QLineEdit( container ); | 344 | txtAddress2 = new QLineEdit( container ); |
345 | gl->addMultiCellWidget( txtAddress2, 2, 2, 1, 2 ); | 345 | gl->addMultiCellWidget( txtAddress2, 2, 2, 1, 2 ); |
346 | 346 | ||
@@ -379,64 +379,64 @@ void ContactEditor::init() { | |||
379 | gl->addMultiCellWidget( cmbCountry, 5, 5, 1, 2 ); | 379 | gl->addMultiCellWidget( cmbCountry, 5, 5, 1, 2 ); |
380 | 380 | ||
381 | tabMain->insertTab( tabViewport, tr( "Address" ) ); | 381 | tabMain->insertTab( tabViewport, tr( "Address" ) ); |
382 | 382 | ||
383 | tabViewport = new QWidget ( tabMain ); | 383 | tabViewport = new QWidget ( tabMain ); |
384 | 384 | ||
385 | vb = new QVBoxLayout( tabViewport ); | 385 | vb = new QVBoxLayout( tabViewport ); |
386 | 386 | ||
387 | svDetails = new QScrollView( tabViewport ); | 387 | svDetails = new QScrollView( tabViewport ); |
388 | vb->addWidget( svDetails, 0, 0 ); | 388 | vb->addWidget( svDetails, 0, 0 ); |
389 | svDetails->setResizePolicy( QScrollView::AutoOneFit ); | 389 | svDetails->setResizePolicy( QScrollView::AutoOneFit ); |
390 | svDetails->setFrameStyle( QFrame::NoFrame ); | 390 | svDetails->setFrameStyle( QFrame::NoFrame ); |
391 | 391 | ||
392 | container = new QWidget( svDetails->viewport() ); | 392 | container = new QWidget( svDetails->viewport() ); |
393 | svDetails->addChild( container ); | 393 | svDetails->addChild( container ); |
394 | 394 | ||
395 | gl = new QGridLayout( container, 1, 2, 0, 1 ); | 395 | gl = new QGridLayout( container, 1, 2, 2, 3 ); |
396 | 396 | ||
397 | QStringList::ConstIterator it = slDynamicEntries->begin(); | 397 | QStringList::ConstIterator it = slDynamicEntries->begin(); |
398 | for (i = 0; it != slDynamicEntries->end(); i++, ++it) { | 398 | for (i = 0; it != slDynamicEntries->end(); i++, ++it) { |
399 | l = new QLabel( *it, container ); | 399 | l = new QLabel( *it, container ); |
400 | listName.append( l ); | 400 | listName.append( l ); |
401 | gl->addWidget( l, i, 0 ); | 401 | gl->addWidget( l, i, 0 ); |
402 | QLineEdit *e = new QLineEdit( container ); | 402 | QLineEdit *e = new QLineEdit( container ); |
403 | listValue.append( e ); | 403 | listValue.append( e ); |
404 | gl->addWidget( e, i, 1); | 404 | gl->addWidget( e, i, 1); |
405 | } | 405 | } |
406 | 406 | ||
407 | l = new QLabel( tr("Gender"), container ); | 407 | l = new QLabel( tr("Gender"), container ); |
408 | gl->addWidget( l, slDynamicEntries->count(), 0 ); | 408 | gl->addWidget( l, slDynamicEntries->count(), 0 ); |
409 | cmbGender = new QComboBox( container ); | 409 | cmbGender = new QComboBox( container ); |
410 | cmbGender->insertItem( "", 0 ); | 410 | cmbGender->insertItem( "", 0 ); |
411 | cmbGender->insertItem( tr("Male"), 1); | 411 | cmbGender->insertItem( tr("Male"), 1); |
412 | cmbGender->insertItem( tr("Female"), 2); | 412 | cmbGender->insertItem( tr("Female"), 2); |
413 | gl->addWidget( cmbGender, slDynamicEntries->count(), 1 ); | 413 | gl->addWidget( cmbGender, slDynamicEntries->count(), 1 ); |
414 | 414 | ||
415 | tabMain->insertTab( tabViewport, tr( "Details" ) ); | 415 | tabMain->insertTab( tabViewport, tr( "Details" ) ); |
416 | 416 | ||
417 | dlgNote = new QDialog( this, "Note Dialog", TRUE ); | 417 | dlgNote = new QDialog( this, "Note Dialog", TRUE ); |
418 | dlgNote->setCaption( tr("Enter Note") ); | 418 | dlgNote->setCaption( tr("Enter Note") ); |
419 | QVBoxLayout *vbNote = new QVBoxLayout( dlgNote ); | 419 | QVBoxLayout *vbNote = new QVBoxLayout( dlgNote ); |
420 | txtNote = new QMultiLineEdit( dlgNote ); | 420 | txtNote = new QMultiLineEdit( dlgNote ); |
421 | vbNote->addWidget( txtNote ); | 421 | vbNote->addWidget( txtNote ); |
422 | connect( btnNote, SIGNAL(clicked()), this, SLOT(slotNote()) ); | 422 | connect( btnNote, SIGNAL(clicked()), this, SLOT(slotNote()) ); |
423 | 423 | ||
424 | dlgName = new QDialog( this, "Name Dialog", TRUE ); | 424 | dlgName = new QDialog( this, "Name Dialog", TRUE ); |
425 | dlgName->setCaption( tr("Edit Name") ); | 425 | dlgName->setCaption( tr("Edit Name") ); |
426 | gl = new QGridLayout( dlgName, 4, 2, 0, 1 ); | 426 | gl = new QGridLayout( dlgName, 4, 2, 2, 3 ); |
427 | 427 | ||
428 | l = new QLabel( tr("First Name"), dlgName ); | 428 | l = new QLabel( tr("First Name"), dlgName ); |
429 | gl->addWidget( l, 0, 0 ); | 429 | gl->addWidget( l, 0, 0 ); |
430 | txtFirstName = new QLineEdit( dlgName ); | 430 | txtFirstName = new QLineEdit( dlgName ); |
431 | gl->addWidget( txtFirstName, 0, 1 ); | 431 | gl->addWidget( txtFirstName, 0, 1 ); |
432 | 432 | ||
433 | l = new QLabel( tr("Middle Name"), dlgName ); | 433 | l = new QLabel( tr("Middle Name"), dlgName ); |
434 | gl->addWidget( l, 1, 0 ); | 434 | gl->addWidget( l, 1, 0 ); |
435 | txtMiddleName = new QLineEdit( dlgName ); | 435 | txtMiddleName = new QLineEdit( dlgName ); |
436 | gl->addWidget( txtMiddleName, 1, 1 ); | 436 | gl->addWidget( txtMiddleName, 1, 1 ); |
437 | 437 | ||
438 | l = new QLabel( tr("Last Name"), dlgName ); | 438 | l = new QLabel( tr("Last Name"), dlgName ); |
439 | gl->addWidget( l, 2, 0 ); | 439 | gl->addWidget( l, 2, 0 ); |
440 | txtLastName = new QLineEdit( dlgName ); | 440 | txtLastName = new QLineEdit( dlgName ); |
441 | gl->addWidget( txtLastName, 2, 1 ); | 441 | gl->addWidget( txtLastName, 2, 1 ); |
442 | 442 | ||