filelight
labels.cpp
Go to the documentation of this file.
39 Label(const RadialMap::Segment *s, int l) : segment(s), lvl(l), angle(segment->start() + (segment->length() / 2)) { }
85 if (m_focus && m_focus->file() != m_tree) //separate behavior for selected vs unselected segments
151 int *sizes = new int [ m_map.m_visibleDepth + 1 ]; //**** make sizes an array of floats I think instead (or doubles)
208 int fullStrutLength = (m_map.width() - m_map.MAP_2MARGIN) / 2 + LABEL_MAP_SPACER; //full length of a strut from map center
257 list.erase(it); //will delete the label and set it to list.current() which _should_ be the next ptr
278 list.erase(it); //will delete the label and set it to list.current() which _should_ be the next ptr
327 paint.drawEllipse(label->x1 - 3, label->y1 - 3, 6, 6); //**** CPU intensive! better to use a pixmap
void setPointSize(int pointSize)
const QFont & font() const
iterator erase(iterator pos)
T takeAt(int i)
void drawLine(const QLineF &line)
int size() const
void setFont(const QFont &font)
void append(const T &value)
int compareAndSortLabels(Label *item1, Label *item2)
Definition: labels.cpp:55
Definition: fileTree.h:271
void drawEllipse(const QRectF &rectangle)
void drawText(const QPointF &position, const QString &text)
iterator end()
Definition: fileTree.h:38
void sincos(double angleRadians, double *Sin, double *Cos)
Definition: radialMap.h:31
#define ring
#define segment
iterator begin()
int pointSize() const
http QObject const QList< QVariant > m_map(0)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:32 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:42:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.