Utils::Action Class
class Utils::ActionLa clase «Action» está pensada para acciones que actúan sobre un parámetro «actual» de tipo cadena (normalmente un nombre de archivo), por ejemplo, «Guardar archivo %1». Más información...
| Header: | #include <Action> |
Funciones públicas
| 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 &) |
Descripción detallada
La acción tiene dos estados:
- <sin parámetro actual>: muestra «Hacer XX» (texto vacío)
- <parámetro presente> muestra «Haz XX con %1».
Proporciona un campo para establecer el parámetro, cambiando la visualización y el estado de activación en consecuencia. El texto que se pase ya debe estar traducido; parameterText debe contener un %1 donde se vaya a insertar el parámetro.
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.