GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
color_picker Class Reference

#include "color-picker.h"

Inheritance diagram for color_picker:
Collaboration diagram for color_picker:

Public Member Functions

 color_picker (QColor color=QColor(0, 0, 0), QWidget *parent=nullptr)
 
QColor color (void) const
 
void set_color (QColor new_color)
 

Private Slots

void select_color (void)
 

Private Member Functions

virtual void update_button (void)
 

Private Attributes

QColor m_color
 

Detailed Description

Definition at line 37 of file color-picker.h.

Constructor & Destructor Documentation

◆ color_picker()

color_picker::color_picker ( QColor  color = QColor (0, 0, 0),
QWidget parent = nullptr 
)

Definition at line 38 of file color-picker.cc.

References select_color().

Member Function Documentation

◆ color()

◆ select_color

void color_picker::select_color ( void  )
privateslot

Definition at line 49 of file color-picker.cc.

References m_color, and update_button().

Referenced by color_picker().

◆ set_color()

◆ update_button()

void color_picker::update_button ( void  )
privatevirtual

Definition at line 68 of file color-picker.cc.

References m_color.

Referenced by select_color(), and set_color().

Member Data Documentation

◆ m_color

QColor color_picker::m_color
private

Definition at line 57 of file color-picker.h.

Referenced by select_color(), set_color(), and update_button().


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