Computer Assited Medical Intervention Tool Kit  version 4.1
Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QtBoolEdit Class Reference

#include <qtpropertybrowserutils_p.h>

Inherits QWidget.

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)

◆ checkState()

Qt::CheckState QtBoolEdit::checkState ( ) const

References m_checkBox.

◆ isChecked()

bool QtBoolEdit::isChecked ( ) const

References m_checkBox.

Referenced by setChecked(), and setTextVisible().

◆ mousePressEvent()

void QtBoolEdit::mousePressEvent ( QMouseEvent *  event)
overrideprotected

References m_checkBox.

◆ paintEvent()

void QtBoolEdit::paintEvent ( QPaintEvent *  )
overrideprotected

◆ setChecked()

void QtBoolEdit::setChecked ( bool  c)

◆ setCheckState()

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

References m_checkBox.

◆ setTextVisible()

void QtBoolEdit::setTextVisible ( bool  textVisible)

◆ textVisible()

bool QtBoolEdit::textVisible ( ) const
inline

Referenced by setTextVisible().

◆ toggled

void QtBoolEdit::toggled ( bool  )
signal

Referenced by QtBoolEdit().

Member Data Documentation

◆ m_checkBox

QCheckBox* QtBoolEdit::m_checkBox
private

◆ m_textVisible

bool QtBoolEdit::m_textVisible {true}
private

Referenced by setChecked(), and setTextVisible().


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