labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

WorksheetElementContainerPrivate Class Reference

#include <WorksheetElementContainerPrivate.h>

Inheritance diagram for WorksheetElementContainerPrivate:
Collaboration diagram for WorksheetElementContainerPrivate:


void selectedChange (QGraphicsItem *)

Public Member Functions

 WorksheetElementContainerPrivate (WorksheetElementContainer *)
 ~WorksheetElementContainerPrivate () override=default
QString name () const
QRectF boundingRect () const override
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=nullptr) override
void hoverEnterEvent (QGraphicsSceneHoverEvent *) override
void hoverLeaveEvent (QGraphicsSceneHoverEvent *) override
bool swapVisible (bool on)
void prepareGeometryChangeRequested ()
void recalcShapeAndBoundingRect ()
void contextMenuEvent (QGraphicsSceneContextMenuEvent *) override

Public Attributes

QRectF boundingRectangle
QPainterPath containerShape
QRectF rect
bool m_hovered {false}
bool m_printing {false}

Detailed Description

Definition at line 38 of file WorksheetElementContainerPrivate.h.

Constructor & Destructor Documentation

◆ WorksheetElementContainerPrivate()

WorksheetElementContainerPrivate::WorksheetElementContainerPrivate ( WorksheetElementContainer owner)

Definition at line 208 of file WorksheetElementContainer.cpp.

◆ ~WorksheetElementContainerPrivate()

WorksheetElementContainerPrivate::~WorksheetElementContainerPrivate ( )

Member Function Documentation

◆ boundingRect()

QRectF WorksheetElementContainerPrivate::boundingRect ( ) const

◆ contextMenuEvent()

void WorksheetElementContainerPrivate::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)

Definition at line 216 of file WorksheetElementContainer.cpp.

References WorksheetElement::createContextMenu(), and q.

◆ hoverEnterEvent()

void WorksheetElementContainerPrivate::hoverEnterEvent ( QGraphicsSceneHoverEvent *  )

Definition at line 223 of file WorksheetElementContainer.cpp.

References m_hovered.

◆ hoverLeaveEvent()

void WorksheetElementContainerPrivate::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  )

Definition at line 230 of file WorksheetElementContainer.cpp.

References m_hovered.

◆ name()

QString WorksheetElementContainerPrivate::name ( ) const

Definition at line 212 of file WorksheetElementContainer.cpp.

References AbstractAspect::name(), and q.

◆ paint()

void WorksheetElementContainerPrivate::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = nullptr 

Definition at line 287 of file WorksheetElementContainer.cpp.

References containerShape, m_hovered, m_printing, and Origin::Shadow.

◆ prepareGeometryChangeRequested()

void WorksheetElementContainerPrivate::prepareGeometryChangeRequested ( )

Definition at line 252 of file WorksheetElementContainer.cpp.

References recalcShapeAndBoundingRect().

◆ recalcShapeAndBoundingRect()

void WorksheetElementContainerPrivate::recalcShapeAndBoundingRect ( )

◆ selectedChange

void WorksheetElementContainerPrivate::selectedChange ( QGraphicsItem *  )

◆ swapVisible()

bool WorksheetElementContainerPrivate::swapVisible ( bool  on)

Member Data Documentation

◆ boundingRectangle

QRectF WorksheetElementContainerPrivate::boundingRectangle

Definition at line 56 of file WorksheetElementContainerPrivate.h.

Referenced by boundingRect(), and recalcShapeAndBoundingRect().

◆ containerShape

QPainterPath WorksheetElementContainerPrivate::containerShape

Definition at line 57 of file WorksheetElementContainerPrivate.h.

Referenced by paint(), and recalcShapeAndBoundingRect().

◆ m_hovered

bool WorksheetElementContainerPrivate::m_hovered {false}

◆ m_printing

bool WorksheetElementContainerPrivate::m_printing {false}

Definition at line 60 of file WorksheetElementContainerPrivate.h.

Referenced by CartesianPlotPrivate::paint(), and paint().

◆ q

◆ rect

The documentation for this class was generated from the following files: