QtiPlot  0.9.8.2
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
PenStyleBox Class Reference

A modified QComboBox allowing to choose a Qt::PenStyle. More...

#include <PenStyleBox.h>

Inheritance diagram for PenStyleBox:

Public Member Functions

 PenStyleBox (QWidget *parent=0)
 Constructor. More...
 
void setStyle (const Qt::PenStyle &style)
 
Qt::PenStyle style () const
 

Static Public Member Functions

static Qt::PenStyle penStyle (int index)
 
static int styleIndex (const Qt::PenStyle &style)
 

Static Private Attributes

static const Qt::PenStyle patterns []
 

Detailed Description

A modified QComboBox allowing to choose a Qt::PenStyle.

This is a simple hack on top of the QComboBox class.

Constructor & Destructor Documentation

§ PenStyleBox()

PenStyleBox::PenStyleBox ( QWidget *  parent = 0)

Constructor.

Parameters
parentparent widget (only affects placement of the widget)

Member Function Documentation

§ penStyle()

Qt::PenStyle PenStyleBox::penStyle ( int  index)
static

§ setStyle()

void PenStyleBox::setStyle ( const Qt::PenStyle &  style)

§ style()

Qt::PenStyle PenStyleBox::style ( ) const

§ styleIndex()

int PenStyleBox::styleIndex ( const Qt::PenStyle &  style)
static

Member Data Documentation

§ patterns

const Qt::PenStyle PenStyleBox::patterns
staticprivate
Initial value:
= {
Qt::SolidLine,
Qt::DashLine,
Qt::DotLine,
Qt::DashDotLine,
Qt::DashDotDotLine
}

Referenced by penStyle(), setStyle(), style(), and styleIndex().


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