Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 8806963

Browse files
committed
Fix typo after refactoring
1 parent 56a0aea commit 8806963

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

qtaskbarcontrol_win.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ void QWinTaskbarControl::setProgress(bool visible, double progress)
8080
_button->progress()->setVisible(visible);
8181
}
8282

83-
void QWinTaskbarControl::setCounter(bool visible, int visible)
83+
void QWinTaskbarControl::setCounter(bool visible, int value)
8484
{
8585
if(visible) {
8686
QIcon currentBadge;
87-
auto text = QLocale{}.toString(visible);
87+
auto text = QLocale{}.toString(value);
8888

8989
foreach(auto size, _badgeIcon.availableSizes()) {
9090
auto pm = _badgeIcon.pixmap(size);

qtaskbarcontrol_win.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class QWinTaskbarControl : public QTaskbarControlPrivate
1919
void setWindowsBadgeTextColor(const QColor &color) override;
2020
QColor windowsBadgeTextColor() const override;
2121
void setProgress(bool visible, double progress) override;
22-
void setCounter(bool visible, int counter) override;
22+
void setCounter(bool visible, int value) override;
2323

2424
private:
2525
QTaskbarControl *_q_ptr;

0 commit comments

Comments
 (0)