Utils::Action Class
class Utils::ActionKlasa Action namijenjena je akcijama koje djeluju na 'trenutni' parametar tipa string (obično naziv datoteke), na primjer 'Save file %1'. Više...
| Header: | #include <Action> |
Javne funkcije
| 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 &) |
Detaljan opis
Akcija ima 2 stanja:
- <nema trenutnog parametra> prikazuje "Do XX" (prazan tekst)
- <parametar je prisutan> prikazuje "Učini XX s %1".
Omogućuje polje za postavljanje parametra, mijenjajući prikaz i stanje omogućeno u skladu s tim. Tekst koji se prosljeđuje već bi trebao biti preveden; parameterText bi trebao sadržavati %1 na mjestu gdje se parametar treba umetnuti.
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.