conflicting packages
QwtLegendItem(3) | Qwt User's Guide | QwtLegendItem(3) |
NAME¶
QwtLegendItem - A legend label.SYNOPSIS¶
#include <qwt_legend_item.h> Inherits QwtTextLabel.Public Types¶
enum IdentifierMode { NoIdentifier = 0, ShowLine = 1, ShowSymbol = 2, ShowText = 4 }
Public Slots¶
void clear ()
Signals¶
void checked (bool)
Public Member Functions¶
const QPen & curvePen () const
Protected Member Functions¶
virtual void drawContents (QPainter *)
Detailed Description¶
A legend label.QwtLegend, QwtPlotCurve
Member Enumeration Documentation¶
enum QwtLegendItem::IdentifierMode¶
Identifier mode. Default is ShowLine | ShowText See also:identifierMode(),
setIdentifierMode()
Constructor & Destructor Documentation¶
QwtLegendItem::QwtLegendItem (QWidget *parent = 0) [explicit] Parameters:¶
parent Parent widget
QwtLegendItem::QwtLegendItem (const QwtSymbol &symbol, const QPen &curvePen, const QwtText &text, QWidget *parent = 0) [explicit] Parameters:¶
symbol Curve symbol
curvePen Curve pen
text Label text
parent Parent widget
QwtLegendItem::~QwtLegendItem () [virtual]¶
Destructor.Member Function Documentation¶
void QwtLegendItem::checked (bool) [signal]¶
Signal, when the legend item has been toggled.void QwtTextLabel::clear () [slot, inherited]¶
Clear the text and all QwtText attributes.void QwtLegendItem::clicked () [signal]¶
Signal, when the legend item has been clicked.const QPen & QwtLegendItem::curvePen () const Returns:¶
The curve pen.
See also:
setCurvePen()
void QwtTextLabel::drawContents (QPainter *painter) [protected, virtual, inherited]¶
Redraw the text and focus indicator.void QwtLegendItem::drawIdentifier (QPainter *painter, const QRect &rect) const [virtual] Paint the identifier to a given rect.¶
Parameters:painter Painter
rect Rect where to paint
void QwtLegendItem::drawItem (QPainter *painter, const QRect &rect) const [virtual] Draw the legend item to a given rect.¶
Parameters:painter Painter
rect Rect where to paint the button
void QwtLegendItem::drawText (QPainter *painter, const QRect &textRect) [protected, virtual]¶
Redraw the text. Reimplemented from QwtTextLabel.int QwtTextLabel::heightForWidth (intwidth) const [virtual, inherited] Returns the preferred height for this widget, given the width.¶
Parameters:width Width
int QwtLegendItem::identifierMode () const Or'd values of IdentifierMode.¶
See also:setIdentifierMode(),
IdentifierMode
int QwtLegendItem::identifierWidth () const Return the width of the identifier¶
See also:setIdentifierWidth()
int QwtTextLabel::indent () const [inherited]¶
Return label's text indent in pixels.bool QwtLegendItem::isChecked () const¶
Return true, if the item is checked.bool QwtLegendItem::isDown () const [protected]¶
Return true, if the item is down.QwtLegend::LegendItemMode QwtLegendItem::itemMode () const Return the item mode¶
See also:setItemMode()
void QwtLegendItem::keyPressEvent (QKeyEvent *e) [protected, virtual]¶
Handle key press events.void QwtLegendItem::keyReleaseEvent (QKeyEvent *e) [protected, virtual]¶
Handle key release events.int QwtTextLabel::margin () const [inherited]¶
Return label's text indent in pixels.QSize QwtTextLabel::minimumSizeHint () const [virtual, inherited]¶
Return a minimum size hint.void QwtLegendItem::mousePressEvent (QMouseEvent *e) [protected, virtual]¶
Handle mouse press events.void QwtLegendItem::mouseReleaseEvent (QMouseEvent *e) [protected, virtual]¶
Handle mouse release events.void QwtLegendItem::paintEvent (QPaintEvent *e) [protected, virtual]¶
Paint event. Reimplemented from QwtTextLabel.void QwtLegendItem::pressed () [signal]¶
Signal, when the legend item has been pressed.void QwtLegendItem::released () [signal]¶
Signal, when the legend item has been relased.void QwtLegendItem::setChecked (boolon) [slot] Check/Uncheck a the item¶
Parameters:on check/uncheck
See also:
setItemMode()
void QwtLegendItem::setCurvePen (const QPen &pen) Set curve pen.¶
Parameters:pen Curve pen
See also:
curvePen()
void QwtLegendItem::setDown (booldown) [protected]¶
Set the item being down.void QwtLegendItem::setIdentifierMode (intmode) Set identifier mode. Default is ShowLine | ShowText.¶
Parameters:mode Or'd values of
IdentifierMode
See also:
identifierMode()
void QwtLegendItem::setIdentifierWidth (intwidth) Set the width for the identifier Default is 8 pixels¶
Parameters:width New width
See also:
identifierMode(),
identifierWidth()
void QwtTextLabel::setIndent (intindent) [inherited] Set label's text indent in pixels¶
Parameters:indent Indentation in pixels
void QwtLegendItem::setItemMode (QwtLegend::LegendItemModemode) Set the item mode The default is QwtLegend::ReadOnlyItem¶
Parameters:mode Item mode
See also:
itemMode()
void QwtTextLabel::setMargin (intmargin) [inherited] Set label's margin in pixels¶
Parameters:margin Margin in pixels
void QwtLegendItem::setSpacing (intspacing) Change the spacing¶
Parameters:spacing Spacing
See also:
spacing(), identifierWidth(),
QwtTextLabel::margin()
void QwtLegendItem::setSymbol (const QwtSymbol &symbol) Set curve symbol.¶
Parameters:symbol Symbol
See also:
symbol()
void QwtLegendItem::setText (const QwtText &text) [virtual] Set the text to the legend item¶
Parameters:text Text label
See also:
QwtTextLabel::text()
void QwtTextLabel::setText (const QString &text, QwtText::TextFormattextFormat = QwtText::AutoText) [slot, inherited] Change the label's text, keeping all other QwtText attributes¶
Parameters:text New text
textFormat Format of text
See also:
QwtText
QSize QwtLegendItem::sizeHint () const [virtual]¶
Return a size hint. Reimplemented from QwtTextLabel.int QwtLegendItem::spacing () const Return the spacing¶
See also:setSpacing(), identifierWidth(),
QwtTextLabel::margin()
const QwtSymbol & QwtLegendItem::symbol () const Returns:¶
The curve symbol.
See also:
setSymbol()
const QwtText & QwtTextLabel::text () const [inherited]¶
Return the text.QRect QwtTextLabel::textRect () const [inherited] Calculate the rect for the text in widget coordinates¶
Returns:Text rect
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.Mon Aug 1 2011 | Version 5.2.2 |