@@ -40,7 +40,7 @@ FavoriteWidget::FavoriteWidget(const int tab_index, const bool favorite, QWidget
|
||||
off_(":/icons/64x64/star-grey.png"),
|
||||
rect_(0, 0, kStarSize, kStarSize) {}
|
||||
|
||||
void FavoriteWidget::SetFavorite(bool favorite) {
|
||||
void FavoriteWidget::SetFavorite(const bool favorite) {
|
||||
|
||||
if (favorite_ != favorite) {
|
||||
favorite_ = favorite;
|
||||
|
||||
@@ -40,7 +40,8 @@ class FavoriteWidget : public QWidget {
|
||||
explicit FavoriteWidget(const int tab_index, const bool favorite = false, QWidget *parent = nullptr);
|
||||
|
||||
// Change the value if different from the current one and then update display and emit FavoriteStateChanged signal
|
||||
void SetFavorite(bool favorite);
|
||||
bool IsFavorite() const { return favorite_; }
|
||||
void SetFavorite(const bool favorite);
|
||||
|
||||
QSize sizeHint() const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user