Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
mapviz::ColorButton Class Reference

#include <color_button.h>

Inheritance diagram for mapviz::ColorButton:
Inheritance graph
[legend]

Public Slots

void setColor (const QColor &color)
 

Signals

void colorChanged (const QColor &color)
 
void colorEdited (const QColor &color)
 

Public Member Functions

const QColor & color () const
 
 ColorButton (QWidget *parent=0)
 

Private Slots

void handleClicked ()
 

Private Attributes

QColor color_
 

Detailed Description

The ColorButton widget provides a color display that the user can click on to select a new color. You can use this widget in Qt Designer by placing a QPushButton and promoting it to a custom widget. You have to setup the promoted widget once in each .ui file:

Base class name: QPushButton Promoted class name: mapviz::ColorButton Include file name: mapviz/color_button.h Global Include: True

Definition at line 49 of file color_button.h.

Constructor & Destructor Documentation

◆ ColorButton()

mapviz::ColorButton::ColorButton ( QWidget *  parent = 0)

Definition at line 36 of file color_button.cpp.

Member Function Documentation

◆ color()

const QColor& mapviz::ColorButton::color ( ) const
inline

Definition at line 58 of file color_button.h.

◆ colorChanged

void mapviz::ColorButton::colorChanged ( const QColor &  color)
signal

◆ colorEdited

void mapviz::ColorButton::colorEdited ( const QColor &  color)
signal

◆ handleClicked

void mapviz::ColorButton::handleClicked ( )
privateslot

Definition at line 64 of file color_button.cpp.

◆ setColor

void mapviz::ColorButton::setColor ( const QColor &  color)
slot

Definition at line 45 of file color_button.cpp.

Member Data Documentation

◆ color_

QColor mapviz::ColorButton::color_
private

Definition at line 51 of file color_button.h.


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


mapviz
Author(s): Marc Alban
autogenerated on Fri Dec 16 2022 03:59:30