Add several phrases for webview popups.
This commit is contained in:
parent
d7318d849e
commit
a7074136b4
3 changed files with 21 additions and 0 deletions
|
|
@ -154,8 +154,24 @@ QString Integration::phraseButtonOk() {
|
|||
return "OK";
|
||||
}
|
||||
|
||||
QString Integration::phraseButtonClose() {
|
||||
return "Close";
|
||||
}
|
||||
|
||||
QString Integration::phraseButtonCancel() {
|
||||
return "Cancel";
|
||||
}
|
||||
|
||||
QString Integration::phrasePanelCloseWarning() {
|
||||
return "Warning";
|
||||
}
|
||||
|
||||
QString Integration::phrasePanelCloseUnsaved() {
|
||||
return "Changes that you made may not be saved.";
|
||||
}
|
||||
|
||||
QString Integration::phrasePanelCloseAnyway() {
|
||||
return "Close anyway";
|
||||
}
|
||||
|
||||
} // namespace Ui
|
||||
|
|
|
|||
|
|
@ -81,7 +81,11 @@ public:
|
|||
[[nodiscard]] virtual QString phraseFormattingMonospace();
|
||||
[[nodiscard]] virtual QString phraseFormattingSpoiler();
|
||||
[[nodiscard]] virtual QString phraseButtonOk();
|
||||
[[nodiscard]] virtual QString phraseButtonClose();
|
||||
[[nodiscard]] virtual QString phraseButtonCancel();
|
||||
[[nodiscard]] virtual QString phrasePanelCloseWarning();
|
||||
[[nodiscard]] virtual QString phrasePanelCloseUnsaved();
|
||||
[[nodiscard]] virtual QString phrasePanelCloseAnyway();
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@ separatePanelBack: IconButton(separatePanelClose) {
|
|||
separatePanelDuration: 150;
|
||||
|
||||
webviewDialogButton: defaultBoxButton;
|
||||
webviewDialogDestructiveButton: attentionBoxButton;
|
||||
webviewDialogSubmit: RoundButton(defaultActiveButton) {
|
||||
width: -48px;
|
||||
height: 34px;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue