All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
#include <LegendItemWidget.h>
Public Member Functions | |
| LegendItemWidget (QWidget *parent=0) | |
| virtual QSize | sizeHint () |
| ~LegendItemWidget () | |
Protected Member Functions | |
| virtual void | paint (QPainter &p, double dotpercm, int w, int h) |
| virtual void | paintEvent (QPaintEvent *e) |
| SciFigs::LegendItemWidget::LegendItemWidget | ( | QWidget * | parent = 0 | ) |
References TRACE.
:
GraphicObject(parent)
{
TRACE;
}
| SciFigs::LegendItemWidget::~LegendItemWidget | ( | ) | [inline] |
{}
| void SciFigs::LegendItemWidget::paint | ( | QPainter & | p, |
| double | dotpercm, | ||
| int | w, | ||
| int | h | ||
| ) | [protected, virtual] |
References TRACE.
Referenced by paintEvent().
{
TRACE;
p.setFont(font());
LegendItemDisplay::paint(p, dotpercm, 0, 0, w, h);
}
| void SciFigs::LegendItemWidget::paintEvent | ( | QPaintEvent * | e | ) | [protected, virtual] |
Reimplemented from SciFigs::GraphicObject.
References paint(), SciFigs::SciFigsGlobal::screenResolution(), and TRACE.
{
TRACE;
QPainter p(this);
p.setFont(font());
LegendItemDisplay::paint(p, SciFigsGlobal::screenResolution(), 0, 0, width(), height());
}
| virtual QSize SciFigs::LegendItemWidget::sizeHint | ( | ) | [inline, virtual] |
References SciFigs::LegendItemDisplay::sizeHint().
{return LegendItemDisplay::sizeHint(font());}