본문으로 건너뛰기
GDK
메뉴
API 가이드
API 레퍼런스
UI API 가이드
UI API 레퍼런스
테마
밝게
어둡게
자동
목차
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
DialogButtonText.h
1
#pragma once
2
3
#include <QCoreApplication>
4
#include <QDialogButtonBox>
5
#include <QPushButton>
6
#include <QString>
7
8
namespace
GdkQt
{
9
14
inline
QString
dialogButtonText
(
const
char
* sourceText)
15
{
16
return
QCoreApplication::translate(
"DialogButtonText"
, sourceText);
17
}
18
24
inline
void
setDialogButtonText
(QDialogButtonBox* buttons,
25
QDialogButtonBox::StandardButton button,
26
const
char
* sourceText)
27
{
28
if
(!buttons) {
29
return
;
30
}
31
if
(QPushButton* pushButton = buttons->button(button)) {
32
pushButton->setText(
dialogButtonText
(sourceText));
33
}
34
}
35
41
inline
void
localizeDialogButtonBox
(QDialogButtonBox* buttons)
42
{
43
setDialogButtonText
(buttons, QDialogButtonBox::Ok,
"OK"
);
44
setDialogButtonText
(buttons, QDialogButtonBox::Cancel,
"Cancel"
);
45
setDialogButtonText
(buttons, QDialogButtonBox::Apply,
"Apply"
);
46
setDialogButtonText
(buttons, QDialogButtonBox::Close,
"Close"
);
47
}
48
49
}
// namespace GdkQt
GdkQt::dialogButtonText
QString dialogButtonText(const char *sourceText)
대화상자 단추 문구를 번역 문맥 "DialogButtonText"로 번역합니다.
정의
DialogButtonText.h:14
GdkQt::setDialogButtonText
void setDialogButtonText(QDialogButtonBox *buttons, QDialogButtonBox::StandardButton button, const char *sourceText)
단추 상자의 표준 단추 하나에 번역한 문구를 설정합니다.
정의
DialogButtonText.h:24
GdkQt::localizeDialogButtonBox
void localizeDialogButtonBox(QDialogButtonBox *buttons)
단추 상자의 OK, Cancel, Apply, Close 단추 문구를 번역한 문구로 바꿉니다.
정의
DialogButtonText.h:41
GdkQt
glsGdkQt의 공개 형식과 함수가 있는 네임스페이스입니다.
정의
AppSettings.h:15
ui
DialogButtonText.h
다음에 의해 생성됨 :
1.18.0