kblackbox
kbbgraphicsitemcursor.cpp
Go to the documentation of this file.
35 KBBGraphicsItemCursor::KBBGraphicsItemCursor(KBBScalableGraphicWidget* parent, KBBThemeManager* themeManager) : KBBGraphicsItem(KBBScalableGraphicWidget::cursor, parent->scene(), themeManager)
199 setPos(KBBScalableGraphicWidget::BORDER_SIZE + KBBScalableGraphicWidget::RATIO*(m_boxPosition % m_columns), KBBScalableGraphicWidget::BORDER_SIZE + KBBScalableGraphicWidget::RATIO*(m_boxPosition / m_columns));
qreal x() const
qreal y() const
Scalable graphic central widget for KBlackBox.
Definition: kbbscalablegraphicwidget.h:62
void hide()
void setBoardSize(const int columns, const int rows)
Definition: kbbgraphicsitemcursor.cpp:151
void setPos(const QPointF &pos)
static int const BORDER_SIZE
Distance between the black box and the widget border.
Definition: kbbscalablegraphicwidget.h:74
KBBGraphicsItemCursor(KBBScalableGraphicWidget *parent, KBBThemeManager *themeManager)
Definition: kbbgraphicsitemcursor.cpp:35
static int const RATIO
Width and height of a single square on the black box.
Definition: kbbscalablegraphicwidget.h:81
void setBorderPosition(const int borderPosition)
Definition: kbbgraphicsitemcursor.cpp:164
void setBoxPosition(const int boxPosition)
Definition: kbbgraphicsitemcursor.cpp:193
void cursorAtNewPosition(const int borderPosition)
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.