Fonctions membres publiques | |
IconShape (const QString &icon) | |
virtual void | visit (KoShapeController *tool)=0 |
virtual QString | toolTip ()=0 |
void | paint (QPainter &painter, const KoViewConverter &converter) |
Paint the shape The class extending this one is responsible for painting itself. Since we do not assume the shape is square the paint must also clear its background if it will draw something transparent on top. This can be done with a method like: painter.fillRect(converter.normalToView(QRectF(QPointF(0.0,0.0), size())), background()); Or equavalent for non-square objects. | |
Attributs privés | |
QPixmap | m_icon |
Définition à la ligne 49 du fichier KoShapeSelector.cpp.
IconShape::IconShape | ( | const QString & | icon | ) | [inline] |
Définition à la ligne 51 du fichier KoShapeSelector.cpp.
Références m_icon, et KoShape::resize().
Voici le graphe d'appel pour cette fonction :
virtual void IconShape::visit | ( | KoShapeController * | tool | ) | [pure virtual] |
virtual QString IconShape::toolTip | ( | ) | [pure virtual] |
Implémenté dans TemplateShape, et GroupShape.
Référencé par KoShapeSelector::Canvas::event().
Voici le graphe d'appel pour cette fonction :
void IconShape::paint | ( | QPainter & | painter, | |
const KoViewConverter & | converter | |||
) | [inline, virtual] |
Paint the shape The class extending this one is responsible for painting itself. Since we do not assume the shape is square the paint must also clear its background if it will draw something transparent on top. This can be done with a method like: painter.fillRect(converter.normalToView(QRectF(QPointF(0.0,0.0), size())), background());
Or equavalent for non-square objects.
painter | used for painting the shape | |
converter | to convert between internal and view coordinates. |
Implémente KoShape.
Définition à la ligne 59 du fichier KoShapeSelector.cpp.
Références m_icon.
QPixmap IconShape::m_icon [private] |