QtiPlot  0.9.8.2
Public Member Functions | Static Public Member Functions | Static Private Attributes
PenStyleBox Class Reference

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

#include <PenStyleBox.h>

List of all members.

Public Member Functions

 PenStyleBox (QWidget *parent=0)
 Constructor.
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 ( QWidget *  parent = 0)

Constructor.

Parameters:
parentparent widget (only affects placement of the widget)

Member Function Documentation

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

Member Data Documentation

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: