multiple intricate implementations
This commit is contained in:
1 parent
7aa4ea4425
commit
77690cbd96
109 files changed
+2045
-56
No files matched your search
+5
-6
@@ -29,6 +29,7 @@
|
||||
#include "Messg.h"
|
||||
#include "ui_Messg.h"
|
||||
|
||||
#include "Global.h"
|
||||
#include "Cevo/CevoButtonA.h"
|
||||
|
||||
#include <QKeyEvent>
|
||||
@@ -62,14 +63,12 @@ void MessgDlg::showEvent(QShowEvent *event)
|
||||
ui->button2->setVisible(kind != MessageKind::Ok);
|
||||
ui->button1->move(ui->button2->isVisible() ? 101 : 159, ui->button1->y());
|
||||
|
||||
// TODO: needs Phrases[] (StringTables.pas, not ported yet) - plain
|
||||
// English literals until localization is ported.
|
||||
if (kind == MessageKind::YesNo) {
|
||||
ui->button1->setCaption(tr("Yes"));
|
||||
ui->button2->setCaption(tr("No"));
|
||||
ui->button1->setCaption(phrases.lookup(QStringLiteral("BTN_YES")));
|
||||
ui->button2->setCaption(phrases.lookup(QStringLiteral("BTN_NO")));
|
||||
} else {
|
||||
ui->button1->setCaption(tr("OK"));
|
||||
ui->button2->setCaption(tr("Cancel"));
|
||||
ui->button1->setCaption(phrases.lookup(QStringLiteral("BTN_OK")));
|
||||
ui->button2->setCaption(phrases.lookup(QStringLiteral("BTN_CANCEL")));
|
||||
}
|
||||
|
||||
splitText(true);
|
||||
|
||||
Reference in new issue
Block a user