mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
a7ddf5ef56
commit
da9366c70d
|
@ -23,7 +23,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p>Are you sure you want to remove <span style=" font-weight:600;">&lt;name&gt;</span> from your contacts list?</p></body></html></string>
|
<string notr="true">{Text message}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||||
|
|
|
@ -8,7 +8,11 @@ RemoveFriendDialog::RemoveFriendDialog(QWidget *parent, const Friend *f)
|
||||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||||
setAttribute(Qt::WA_QuitOnClose, false);
|
setAttribute(Qt::WA_QuitOnClose, false);
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
ui.label->setText(ui.label->text().replace("<name>", f->getDisplayedName().toHtmlEscaped()));
|
QString name = f->getDisplayedName().toHtmlEscaped();
|
||||||
|
QString text = tr("Are you sure you want to remove %1 from your contacts list?")
|
||||||
|
.arg(QString("<b>%1</b>").arg(name));
|
||||||
|
|
||||||
|
ui.label->setText(text);
|
||||||
auto removeButton = ui.buttonBox->button(QDialogButtonBox::Ok);
|
auto removeButton = ui.buttonBox->button(QDialogButtonBox::Ok);
|
||||||
auto cancelButton = ui.buttonBox->button(QDialogButtonBox::Cancel);
|
auto cancelButton = ui.buttonBox->button(QDialogButtonBox::Cancel);
|
||||||
removeButton->setText(tr("Remove"));
|
removeButton->setText(tr("Remove"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user