Computer Assited Medical Intervention Tool Kit  version 5.0
QtBoolEdit Class Reference

#include <qtpropertybrowserutils_p.h>

+ Inheritance diagram for QtBoolEdit:
+ Collaboration diagram for QtBoolEdit:

Signals

void toggled (bool)
 

Public Member Functions

bool blockCheckBoxSignals (bool block)
 
Qt::CheckState checkState () const
 
bool isChecked () const
 
 QtBoolEdit (QWidget *parent=nullptr)
 
void setChecked (bool c)
 
void setCheckState (Qt::CheckState state)
 
void setTextVisible (bool textVisible)
 
bool textVisible () const
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *) override
 

Private Attributes

QCheckBox * m_checkBox
 
bool m_textVisible {true}
 

Constructor & Destructor Documentation

◆ QtBoolEdit()

QtBoolEdit::QtBoolEdit ( QWidget *  parent = nullptr)

References m_checkBox, and toggled().

Member Function Documentation

◆ blockCheckBoxSignals()

bool QtBoolEdit::blockCheckBoxSignals ( bool  block)

References m_checkBox.

Referenced by QtCheckBoxFactoryPrivate::slotPropertyChanged().

+ Here is the caller graph for this function:

◆ checkState()

Qt::CheckState QtBoolEdit::checkState ( ) const

References m_checkBox.

◆ isChecked()

bool QtBoolEdit::isChecked ( ) const

References m_checkBox.

Referenced by setChecked(), and setTextVisible().

+ Here is the caller graph for this function:

◆ mousePressEvent()

void QtBoolEdit::mousePressEvent ( QMouseEvent *  event)
overrideprotected

References m_checkBox, and camitk::mousePressEvent().

+ Here is the call graph for this function:

◆ paintEvent()

void QtBoolEdit::paintEvent ( QPaintEvent *  )
overrideprotected

◆ setChecked()

void QtBoolEdit::setChecked ( bool  c)

References isChecked(), m_checkBox, and m_textVisible.

Referenced by QtCheckBoxFactory::createEditor(), and QtCheckBoxFactoryPrivate::slotPropertyChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCheckState()

void QtBoolEdit::setCheckState ( Qt::CheckState  state)

References m_checkBox.

◆ setTextVisible()

void QtBoolEdit::setTextVisible ( bool  textVisible)

References isChecked(), m_checkBox, m_textVisible, and textVisible().

+ Here is the call graph for this function:

◆ textVisible()

bool QtBoolEdit::textVisible ( ) const
inline

References m_textVisible.

Referenced by setTextVisible().

+ Here is the caller graph for this function:

◆ toggled

void QtBoolEdit::toggled ( bool  )
signal

Referenced by QtBoolEdit().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_checkBox

◆ m_textVisible

bool QtBoolEdit::m_textVisible {true}
private

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