414 //create the query dialog and attach the radio button to the dialog |
414 //create the query dialog and attach the radio button to the dialog |
415 mDeleteQuery = new HbDialog(); |
415 mDeleteQuery = new HbDialog(); |
416 |
416 |
417 mDeleteQuery->setTimeout(HbDialog::NoTimeout); |
417 mDeleteQuery->setTimeout(HbDialog::NoTimeout); |
418 |
418 |
419 //set the proper layout for the mDeleteQuery dialog |
419 mDeleteQuery->setHeadingText(QString(hbTrId( |
420 qreal lMargin = 0; |
420 "txt_loe_info_select_server_to_delete"))); |
421 qreal rMargin = 0; |
|
422 qreal tMargin = 0; |
|
423 |
|
424 if (mDeleteQuery->style()->parameter("hb-param-margin-gene-left", |
|
425 lMargin) && mDeleteQuery->style()->parameter( |
|
426 "hb-param-margin-gene-right", rMargin) |
|
427 && mDeleteQuery->style()->parameter( |
|
428 "hb-param-margin-gene-top", tMargin)) |
|
429 { |
|
430 HbLabel * heading = new HbLabel(QString(hbTrId( |
|
431 "txt_loe_info_select_server_to_delete"))); |
|
432 heading->setContentsMargins(lMargin, tMargin, rMargin, 0); |
|
433 mDeleteQuery->setHeadingWidget(heading); |
|
434 } |
|
435 |
421 |
436 // delete the mPrimaryAction before creating it,each time the delete |
422 // delete the mPrimaryAction before creating it,each time the delete |
437 // query needs to be popped up |
423 // query needs to be popped up |
438 if (mPrimaryAction != 0) |
424 if (mPrimaryAction != 0) |
439 { |
425 { |