Utils::Action Class
class Utils::ActionLa classe Action è destinata alle azioni che agiscono su un parametro "corrente" di tipo stringa (in genere un nome di file), ad esempio "Salva file %1". Per saperne di più...
| Header: | #include <Action> |
Funzioni pubbliche
| 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 &) |
Descrizione dettagliata
L'azione presenta 2 stati:
- <nessun parametro corrente> con il messaggio "Esegui XX" (testo vuoto)
- <parametro presente> visualizza "Esegui XX con %1".
Fornisce uno slot per impostare il parametro, modificando di conseguenza la visualizzazione e lo stato di abilitazione. Il testo passato dovrebbe essere già tradotto; parameterText dovrebbe contenere un %1 nel punto in cui deve essere inserito il parametro.
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.