translate standard buttons
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
1f8ce9eb92
commit
bd82737efb
24 changed files with 70 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "ScrollMessageBox.h"
|
||||
#include <QPushButton>
|
||||
#include "ui_ScrollMessageBox.h"
|
||||
|
||||
ScrollMessageBox::ScrollMessageBox(QWidget* parent, const QString& title, const QString& text, const QString& body)
|
||||
|
@ -8,6 +9,9 @@ ScrollMessageBox::ScrollMessageBox(QWidget* parent, const QString& title, const
|
|||
this->setWindowTitle(title);
|
||||
ui->label->setText(text);
|
||||
ui->textBrowser->setText(body);
|
||||
|
||||
ui->buttonBox->button(QDialogButtonBox::Cancel)->setText(tr("Cancel"));
|
||||
ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("OK"));
|
||||
}
|
||||
|
||||
ScrollMessageBox::~ScrollMessageBox()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue