KDEUI
Go to the documentation of this file.
21 #ifndef KRATINGWIDGET_H
22 #define KRATINGWIDGET_H
24 #include <QtGui/QFrame>
43 Q_PROPERTY(
int rating READ rating WRITE setRating )
44 Q_PROPERTY(
int maxRating READ maxRating WRITE setMaxRating )
45 Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment )
46 Q_PROPERTY(
bool halfStepsEnabled READ halfStepsEnabled WRITE setHalfStepsEnabled )
47 Q_PROPERTY(
int spacing READ spacing WRITE setSpacing )
48 Q_PROPERTY( QIcon icon READ icon WRITE setIcon )
64 unsigned int rating() const;
69 int maxRating() const;
76 Qt::Alignment alignment() const;
85 Qt::LayoutDirection layoutDirection() const;
94 QSize sizeHint() const;
103 bool halfStepsEnabled() const;
117 void ratingChanged(
unsigned int rating );
118 void ratingChanged(
int rating );
125 void setRating(
int rating );
130 #ifndef KDE_NO_DEPRECATED
131 KDE_DEPRECATED
void setRating(
unsigned int rating );
139 void setMaxRating(
int max );
144 #ifndef KDE_NO_DEPRECATED
145 KDE_DEPRECATED
void setMaxRating(
unsigned int max );
152 void setHalfStepsEnabled(
bool enabled );
157 #ifndef KDE_NO_DEPRECATED
158 KDE_DEPRECATED
void setOnlyPaintFullSteps(
bool );
164 void setSpacing(
int );
170 void setAlignment( Qt::Alignment align );
175 void setLayoutDirection( Qt::LayoutDirection direction );
180 void setIcon(
const QIcon& icon );
185 void setCustomPixmap(
const QPixmap& pixmap );
193 #ifndef KDE_NO_DEPRECATED
194 KDE_DEPRECATED
void setPixmap(
const QPixmap& );
202 void setPixmapSize(
int size );
205 void mousePressEvent( QMouseEvent* e );
206 void mouseMoveEvent( QMouseEvent* e );
207 void leaveEvent( QEvent* e );
208 void paintEvent( QPaintEvent* e );
209 void resizeEvent( QResizeEvent* e );
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.