Na této stránce

Utils::Action Class

class Utils::Action

Třída Action je určena pro akce, které pracují s „aktuálním“ parametrem typu řetězec (obvykle název souboru), například „Uložit soubor %1“. Více...

Header: #include <Action>

Veřejné funkce

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 &)

Podrobný popis

Akce má 2 stavy:

  • <žádný aktuální parametr> – zobrazí „Proveď XX“ (prázdný text)
  • <parametr přítomen> zobrazuje „Proveď XX s %1“.

Poskytuje pole pro nastavení parametru, čímž se odpovídajícím způsobem změní zobrazení a stav povolení. Předaný text by již měl být přeložen; parameterText by měl obsahovat %1 na místě, kam má být parametr vložen.

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.