KDEUI
kratingwidget.cpp
Go to the documentation of this file.
int width() const
void setAlignment(Qt::Alignment align)
The alignment of the stars in the drawing rect.
Definition: kratingwidget.cpp:116
void updateGeometry()
QRect contentsRect() const
unsigned int rating() const
void setPixmapSize(int size)
Set the recommended size of the pixmaps.
Definition: kratingwidget.cpp:84
void setHalfStepsEnabled(bool enabled)
If half steps are enabled (the default) then one rating step corresponds to half a star...
Definition: kratingwidget.cpp:189
typedef Alignment
void update()
QSize size() const
bool isEnabled() const
virtual void paintEvent(QPaintEvent *)
Qt::MouseButton button() const
Utility class that draws a row of stars for a rating value.
Definition: kratingpainter.h:50
void ratingChanged(unsigned int rating)
This signal is emitted when the rating is changed.
int frameWidth() const
bool halfStepsEnabled() const
If half steps are enabled one star equals to 2 rating points and uneven rating values result in half-...
int height() const
int maxRating() const
void setMouseTracking(bool enable)
void setOnlyPaintFullSteps(bool)
Definition: kratingwidget.cpp:197
const QPoint & pos() const
virtual void resizeEvent(QResizeEvent *event)
void setPixmap(const QPixmap &)
Set the pixap to be used to display a rating step.
Definition: kratingwidget.cpp:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 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:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.