Source-highlight Qt Library
srchiliteqt::MainColorForm Class Reference

A form that can be used to select the color of the main font of the editor. More...

#include <MainColorForm.h>

Inheritance diagram for srchiliteqt::MainColorForm:
Collaboration diagram for srchiliteqt::MainColorForm:

Public Member Functions

 MainColorForm (QWidget *parent=0)
 
void setColor (const QColor &color)
 Sets the color of the foreground button (if valid) More...
 
void setBackgroundColor (const QColor &color)
 Sets the color of the background button (if valid) More...
 
const QColor & getColor () const
 
const QColor & getBackgroundColor () const
 

Protected Member Functions

virtual void changeEvent (QEvent *e)
 

Private Slots

void selectBackground ()
 
void selectForeground ()
 

Private Attributes

Ui::MainColorFormm_ui
 
QColor foreground
 
QColor background
 

Detailed Description

A form that can be used to select the color of the main font of the editor.

Member Function Documentation

const QColor& srchiliteqt::MainColorForm::getBackgroundColor ( ) const
inline
Returns
the color of the background (might be invalid)
const QColor& srchiliteqt::MainColorForm::getColor ( ) const
inline
Returns
the color of the foreground (might be invalid)
void srchiliteqt::MainColorForm::setBackgroundColor ( const QColor &  color)

Sets the color of the background button (if valid)

Parameters
colorthe color of the button
void srchiliteqt::MainColorForm::setColor ( const QColor &  color)

Sets the color of the foreground button (if valid)

Parameters
colorthe color of the button

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