25 #ifndef DIGIKAM_RATING_WIDGET_H
26 #define DIGIKAM_RATING_WIDGET_H
31 #include <QPaintEvent>
32 #include <QMouseEvent>
54 void setRating(
int val);
57 void setTracking(
bool tracking);
58 bool hasTracking()
const;
60 void setFading(
bool fading);
61 bool hasFading()
const;
65 void setVisibleImmediately();
67 void setVisible(
bool visible)
override;
68 int maximumVisibleWidth()
const;
73 static QPolygon starPolygon();
74 static QIcon buildIcon(
int rate,
int size);
83 int regPixmapWidth()
const;
85 QPixmap starPixmap()
const;
86 QPixmap starPixmapFilled()
const;
87 QPixmap starPixmapDisabled()
const;
89 void regeneratePixmaps();
91 void applyFading(QPixmap& pix);
93 void mousePressEvent(QMouseEvent*)
override;
94 void mouseMoveEvent(QMouseEvent*)
override;
95 void mouseReleaseEvent(QMouseEvent*)
override;
96 void paintEvent(QPaintEvent*)
override;
100 void setFadingValue(
int value);
104 void slotThemeChanged();
120 explicit RatingBox(QWidget*
const parent);
129 void slotUpdateDescription(
int);
Definition: dlayoutbox.h:75
Definition: ratingwidget.h:115
void signalRatingChanged(int)
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43