ParaView
Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
pqExpanderButton Class Reference

pqExpanderButton provides a frame with a toggle mode. More...

#include <pqExpanderButton.h>

Inherits QFrame.

Public Slots

void toggle ()
 Toggles the state of the checkable button. More...
 
void setChecked (bool)
 This property holds whether the button is checked. More...
 
bool checked () const
 
void setText (const QString &text)
 This property holds the text shown on the button. More...
 
QString text () const
 

Signals

void toggled (bool checked)
 This signal is emitted whenever a button changes its state. More...
 

Public Member Functions

 pqExpanderButton (QWidget *parent=0)
 
virtual ~pqExpanderButton ()
 

Protected Member Functions

void mousePressEvent (QMouseEvent *evt)
 
void mouseReleaseEvent (QMouseEvent *evt)
 

Properties

QString text
 
bool checked
 

Detailed Description

pqExpanderButton provides a frame with a toggle mode.

This can be used to simulate a toggle button used to expand frames in an accordion style, for example.

Definition at line 41 of file pqExpanderButton.h.

Constructor & Destructor Documentation

§ pqExpanderButton()

pqExpanderButton::pqExpanderButton ( QWidget *  parent = 0)

§ ~pqExpanderButton()

virtual pqExpanderButton::~pqExpanderButton ( )
virtual

Member Function Documentation

§ toggle

void pqExpanderButton::toggle ( )
slot

Toggles the state of the checkable button.

§ setChecked

void pqExpanderButton::setChecked ( bool  )
slot

This property holds whether the button is checked.

By default, the button is unchecked.

§ checked

bool pqExpanderButton::checked ( ) const
inlineslot

Definition at line 59 of file pqExpanderButton.h.

§ setText

void pqExpanderButton::setText ( const QString &  text)
slot

This property holds the text shown on the button.

§ text

QString pqExpanderButton::text ( ) const
slot

§ toggled

void pqExpanderButton::toggled ( bool  checked)
signal

This signal is emitted whenever a button changes its state.

checked is true if the button is checked, or false if the button is unchecked.

§ mousePressEvent()

void pqExpanderButton::mousePressEvent ( QMouseEvent *  evt)
protected

§ mouseReleaseEvent()

void pqExpanderButton::mouseReleaseEvent ( QMouseEvent *  evt)
protected

Property Documentation

§ text

QString pqExpanderButton::text
readwrite

Definition at line 46 of file pqExpanderButton.h.

§ checked

bool pqExpanderButton::checked
readwrite

Definition at line 47 of file pqExpanderButton.h.


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