Cppcheck
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
SelectFontWeightCombo Class Reference

#include <codeeditstylecontrols.h>

Inheritance diagram for SelectFontWeightCombo:

Public Slots

void updateWeight ()
 
void changeWeight (int index)
 

Signals

void weightChanged (QFont::Weight newWeight)
 

Public Member Functions

 SelectFontWeightCombo (QWidget *parent)
 
void setWeight (QFont::Weight weight)
 
const QFont::Weight & getWeight ()
 

Private Attributes

QFont::Weight mWeight = QFont::Normal
 

Detailed Description

Definition at line 55 of file codeeditstylecontrols.h.

Constructor & Destructor Documentation

◆ SelectFontWeightCombo()

SelectFontWeightCombo::SelectFontWeightCombo ( QWidget *  parent)
explicit

Definition at line 71 of file codeeditstylecontrols.cpp.

References addItem(), changeWeight(), and updateWeight().

Member Function Documentation

◆ changeWeight

void SelectFontWeightCombo::changeWeight ( int  index)
slot

Definition at line 108 of file codeeditstylecontrols.cpp.

References mWeight, setWeight(), and weightChanged().

Referenced by SelectFontWeightCombo().

◆ getWeight()

const QFont::Weight & SelectFontWeightCombo::getWeight ( )

Definition at line 123 of file codeeditstylecontrols.cpp.

References mWeight.

◆ setWeight()

void SelectFontWeightCombo::setWeight ( QFont::Weight  weight)

Definition at line 116 of file codeeditstylecontrols.cpp.

References mWeight, and updateWeight().

Referenced by changeWeight(), and StyleEditDialog::updateControls().

◆ updateWeight

void SelectFontWeightCombo::updateWeight ( )
slot

Definition at line 97 of file codeeditstylecontrols.cpp.

References mWeight.

Referenced by SelectFontWeightCombo(), and setWeight().

◆ weightChanged

void SelectFontWeightCombo::weightChanged ( QFont::Weight  newWeight)
signal

Referenced by changeWeight().

Member Data Documentation

◆ mWeight

QFont::Weight SelectFontWeightCombo::mWeight = QFont::Normal
private

Definition at line 72 of file codeeditstylecontrols.h.

Referenced by changeWeight(), getWeight(), setWeight(), and updateWeight().


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