Marble
MapViewItemDelegate.cpp
32void MapViewItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
62 bookmarkRect.translate(QPoint(-bookmarkSize.width() - padding, -bookmarkSize.height() - padding));
71 QRect textRect = QRect(iconRect.topRight(), QSize(document.textWidth() - padding, rect.height() - padding));
77 QPalette::ColorRole const role = selected && active ? QPalette::HighlightedText : QPalette::Text;
83QSize MapViewItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
QString name(GameStandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
virtual void draw(QPainter *painter, const PaintContext &context)=0
QStyle * style()
Mode
int column() const const
QVariant data(int role) const const
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
void fillRect(const QRect &rectangle, QGradient::Preset preset)
void restore()
void save()
void setClipRect(const QRect &rectangle, Qt::ClipOperation operation)
void translate(const QPoint &offset)
ColorGroup
ColorRole
int height() const const
QPoint topLeft() const const
QRect translated(const QPoint &offset) const const
int width() const const
bool contains(QAnyStringView key) const const
int height() const const
int width() const const
QString arg(Args &&... args) const const
CE_ItemViewItem
State_Selected
virtual void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const const=0
DecorationRole
QAbstractTextDocumentLayout * documentLayout() const const
void setDefaultFont(const QFont &font)
void setHtml(const QString &html)
void setTextWidth(qreal width)
QString toString() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.