kblackbox
kbbgraphicsitemrayresult.cpp
Go to the documentation of this file.
50 KBBGraphicsItemRayResult::KBBGraphicsItemRayResult( KBBScalableGraphicWidget* parent, KBBThemeManager* themeManager, QGraphicsScene* scene, const int borderPosition, const int columns, const int rows, const int rayNumber) : KBBGraphicsItemBorder( borderPosition, columns, rows, KBBScalableGraphicWidget::BORDER_SIZE/2), KBBGraphicsItem(KBBScalableGraphicWidget::resultBackground, scene, themeManager), KBBItemWithPosition()
54 m_elementIdResultBackground = themeManager->elementId(KBBScalableGraphicWidget::resultBackground);
55 m_elementIdResultBackgroundHighlight = themeManager->elementId(KBBScalableGraphicWidget::resultBackgroundHighlight);
70 m_notNumber = new KBBGraphicsItem(KBBScalableGraphicWidget::resultReflection, m_scene, themeManager);
void translate(qreal dx, qreal dy)
void highlightBoth(bool state)
Highlight the item and the opposite one.
Definition: kbbgraphicsitemrayresult.cpp:123
Scalable graphic central widget for KBlackBox.
Definition: kbbscalablegraphicwidget.h:62
int zValue(const KBBScalableGraphicWidget::itemType itemType)
Get the relative height of the item.
Definition: kbbthememanager.cpp:197
void setWeight(int weight)
QGraphicsScene * scene() const
void setPixelSize(int pixelSize)
void drawRay(const int borderPosition)
Definition: kbbscalablegraphicwidget.cpp:191
void setPos(const QPointF &pos)
static int const BORDER_SIZE
Distance between the black box and the widget border.
Definition: kbbscalablegraphicwidget.h:74
void setFont(const QFont &font)
void setStyleHint(StyleHint hint, StyleStrategy strategy)
Result of a laser ray shoot in the black box.
Definition: kbbgraphicsitemrayresult.h:55
void setAcceptsHoverEvents(bool enabled)
QString elementId(const KBBScalableGraphicWidget::itemType itemType)
Get the XML "id" value of the item.
Definition: kbbthememanager.cpp:81
void setElementId(const QString &id)
void setOpposite(KBBGraphicsItemRayResult *opposite)
Define the opposite "ray result" item.
Definition: kbbgraphicsitemrayresult.cpp:136
QString & setNum(short n, int base)
void cleanDelete()
Destructor of the class and dependent object Call this methode to destroy simultaneously this QGraphi...
Definition: kbbgraphicsitemrayresult.cpp:106
static int const RATIO
Width and height of a single square on the black box.
Definition: kbbscalablegraphicwidget.h:81
KBBGraphicsItem(KBBScalableGraphicWidget::itemType itemType, QGraphicsScene *scene, KBBThemeManager *themeManager)
Constructor.
Definition: kbbgraphicsitem.cpp:43
Any border element of the scalable graphic widget.
Definition: kbbgraphicsitemborder.h:40
void setVisible(bool visible)
KBBGraphicsItemRayResult(KBBScalableGraphicWidget *parent, KBBThemeManager *themeManager, QGraphicsScene *scene, const int borderPosition, const int columns, const int rows, const int rayNumber)
Definition: kbbgraphicsitemrayresult.cpp:50
QObject * parent() const
void setZValue(qreal z)
void rotate(qreal angle)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.