Utils::Action Class
class Utils::ActionKlasa Action jest przeznaczona dla akcji, które działają na „bieżącym” parametrze typu string (zazwyczaj nazwie pliku), na przykład „Zapisz plik %1”. Więcej...
| Header: | #include <Action> |
Funkcje publiczne
| 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 &) |
Szczegółowy opis
Akcja ma 2 stany:
- <brak bieżącego parametru> — wyświetla komunikat „Wykonaj XX” (pusty tekst)
- <parametr obecny> wyświetla „Wykonaj XX z %1”.
Udostępnia pole do ustawienia parametru, odpowiednio zmieniając wyświetlany tekst i stan aktywacji. Przekazany tekst powinien być już przetłumaczony; parameterText powinien zawierać %1 w miejscu, gdzie ma zostać wstawiony parametr.
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.