Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes
mapviz::ColorButton Class Reference

#include <color_button.h>

List of all members.

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 ( ) [private, slot]

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 Thu Aug 24 2017 02:45:59