21 #include <QPushButton> 
   27     setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
 
   28     setAttribute(Qt::WA_QuitOnClose, 
false);
 
   31     QString text = tr(
"Are you sure you want to remove %1 from your contacts list?")
 
   32                        .arg(QString(
"<b>%1</b>").arg(name));
 
   34     ui.label->setText(text);
 
   35     auto removeButton = 
ui.buttonBox->button(QDialogButtonBox::Ok);
 
   36     auto cancelButton = 
ui.buttonBox->button(QDialogButtonBox::Cancel);
 
   37     removeButton->setText(tr(
"Remove"));
 
   38     cancelButton->setDefault(
true);
 
   41     connect(
ui.buttonBox, &QDialogButtonBox::rejected, 
this, &RemoveFriendDialog::close);