Signals | Public Member Functions | Protected Slots | Protected Attributes | List of all members
pqExpressionChooserButton Class Reference

Custom QToolButton that adds a menu to select expression. More...

#include <pqExpressionChooserButton.h>

Inherits QToolButton.

Signals

void expressionSelected (const QString &expr) const
 

Public Member Functions

 pqExpressionChooserButton (QWidget *parent, const QString &group="")
 
 ~pqExpressionChooserButton () override
 
void setGroup (const QString &group)
 

Protected Slots

void updateMenu ()
 

Protected Attributes

QString Group
 

Detailed Description

Custom QToolButton that adds a menu to select expression.

This is simply a QToolButton with a menu. The menu has actions which correspond to expressions. When user clicks any of those actions, pqExpressionChooserButton::expressionSelected signal is fired with the expression as argument.

Definition at line 19 of file pqExpressionChooserButton.h.

Constructor & Destructor Documentation

◆ pqExpressionChooserButton()

pqExpressionChooserButton::pqExpressionChooserButton ( QWidget *  parent,
const QString &  group = "" 
)

◆ ~pqExpressionChooserButton()

pqExpressionChooserButton::~pqExpressionChooserButton ( )
override

Member Function Documentation

◆ setGroup()

void pqExpressionChooserButton::setGroup ( const QString &  group)

◆ expressionSelected

void pqExpressionChooserButton::expressionSelected ( const QString &  expr) const
signal

◆ updateMenu

void pqExpressionChooserButton::updateMenu ( )
protectedslot

Member Data Documentation

◆ Group

QString pqExpressionChooserButton::Group
protected

Definition at line 37 of file pqExpressionChooserButton.h.


The documentation for this class was generated from the following file: