mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
UI Nits: Fix Mac button icons weirdness
The Mac button icons would go a bit odd, this seems to be caused by not setting an alternate image for buttons (they have two images one for each state).
This commit is contained in:
@@ -243,8 +243,10 @@ void QtMacButton::setText(const QString &text)
|
||||
void QtMacButton::setImage(const QPixmap &image)
|
||||
{
|
||||
Q_ASSERT(qtw);
|
||||
if (qtw)
|
||||
if (qtw) {
|
||||
[qtw->nsButton setImage:fromQPixmap(image)];
|
||||
[qtw->nsButton setAlternateImage:fromQPixmap(image)];
|
||||
}
|
||||
}
|
||||
|
||||
void QtMacButton::setChecked(bool checked)
|
||||
|
||||
@@ -217,8 +217,10 @@ void QtMacPopUpButton::setText(const QString &text)
|
||||
void QtMacPopUpButton::setImage(const QPixmap &image)
|
||||
{
|
||||
Q_ASSERT(qtw);
|
||||
if (qtw)
|
||||
if (qtw) {
|
||||
[qtw->nsPopUpButton setImage:fromQPixmap(image)];
|
||||
[qtw->nsPopUpButton setAlternateImage:fromQPixmap(image)];
|
||||
}
|
||||
}
|
||||
|
||||
void QtMacPopUpButton::setChecked(bool checked)
|
||||
|
||||
Reference in New Issue
Block a user