On this page

Utils::Action Class

class Utils::Action

The Action class is intended for actions that act on a 'current', string-type parameter (typically a file name), for example 'Save file %1'. More...

Header: #include <action.h>

Public Slots

void setParameter(const QString &)

Detailed Description

The action has 2 states:

  • <no current parameter> displaying "Do XX" (empty text)
  • <parameter present> displaying "Do XX with %1".

Provides a slot to set the parameter, changing display and enabled state accordingly. The text passed in should already be translated; parameterText should contain a %1 where the parameter is to be inserted.

Member Function Documentation

[slot] void Action::setParameter(const QString &)

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.