A modified QComboBox allowing to choose a Qt::PenStyle. More...
#include <PenStyleBox.h>
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 [] |
A modified QComboBox allowing to choose a Qt::PenStyle.
This is a simple hack on top of the QComboBox class.
| PenStyleBox::PenStyleBox | ( | QWidget * | parent = 0 |
) |
Constructor.
| parent | parent widget (only affects placement of the widget) |
| Qt::PenStyle PenStyleBox::penStyle | ( | int | index | ) | [static] |
| void PenStyleBox::setStyle | ( | const Qt::PenStyle & | style | ) |
References patterns.
Referenced by LineDialog::LineDialog(), PlotDialog::setActiveCurve(), EnrichmentDialog::setWidget(), AxesDialog::showGridOptions(), and ContourLinesEditor::showPenDialog().
| Qt::PenStyle PenStyleBox::style | ( | ) | const |
| int PenStyleBox::styleIndex | ( | const Qt::PenStyle & | style | ) | [static] |
References patterns.
Referenced by ApplicationWindow::saveSettings(), Spectrogram::saveToString(), and FrameWidget::saveToString().
const Qt::PenStyle PenStyleBox::patterns [static, private] |
{
Qt::SolidLine,
Qt::DashLine,
Qt::DotLine,
Qt::DashDotLine,
Qt::DashDotDotLine
}
Referenced by penStyle(), setStyle(), style(), and styleIndex().
1.7.1