Utils::Action Class
class Utils::ActionКлас Action призначений для дій, які виконуються над «поточним» параметром типу string (зазвичай це ім’я файлу), наприклад «Зберегти файл %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 &) |
Детальний опис
Дія має 2 стани:
- <немає поточного параметра> — відображається «Виконати XX» (порожній текст)
- <параметр присутній> — відображається «Виконати XX з %1».
Надає слот для встановлення параметра, відповідно змінюючи текст на екрані та стан активності. Переданий текст повинен бути вже перекладений; 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.