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

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

Definition at line 36 of file color_button.cpp.

Member Function Documentation

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

Definition at line 58 of file color_button.h.

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

Definition at line 64 of file color_button.cpp.

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

Definition at line 45 of file color_button.cpp.

Member Data Documentation

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 Sun Sep 13 2020 03:40:30