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 &) |
詳細な説明
このアクションには 2 つの状態があります:
- <現在のパラメータなし>:「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.