Utils::Action Class
class Utils::ActionAction 클래스는 'current'와 같은 문자열형 매개변수(일반적으로 파일 이름)를 대상으로 동작하는 액션(예: '파일 %1 저장')을 위해 설계되었습니다. 더 보기...
| Header: | #include <Action> |
공개 함수
| QString | emptyText() const |
| Utils::Action::EnablingMode | enablingMode() const |
| QString | parameterText() const |
| void | setEmptyText(const QString &) |
| void | setEnablingMode(Utils::Action::EnablingMode m) |
| void | setParameterText(const QString &) |
상세 설명
이 액션에는 두 가지 상태가 있습니다:
- <현재 매개변수 없음> "Do XX" (빈 텍스트) 표시
- <매개변수 존재> "%1로 XX 수행"을 표시합니다.
매개변수를 설정할 수 있는 슬롯을 제공하며, 이에 따라 표시 내용과 활성화 상태가 변경됩니다. 전달된 텍스트는 이미 번역된 상태여야 하며, ` parameterText `에는 매개변수가 삽입될 위치에 %1이 포함되어 있어야 합니다.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.