diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-17 09:54:48 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-17 09:59:02 (GMT) |
commit | eda6ef48f7a1c5f93e09fd85fa54123569bb0a5f (patch) | |
tree | 459fbdb6238bc0756719a4c2a395de31a4aa1adf /src | |
parent | fa8030a935acaacee570eee320e7510a4cfdc853 (diff) | |
download | Qt-eda6ef48f7a1c5f93e09fd85fa54123569bb0a5f.zip Qt-eda6ef48f7a1c5f93e09fd85fa54123569bb0a5f.tar.gz Qt-eda6ef48f7a1c5f93e09fd85fa54123569bb0a5f.tar.bz2 |
Phonon::VolumeSlider: Fixed the isMuteVisiblefunction
The problem is that it was relying on button->isVisible whereas
it should rely on isHidden. isVisible returns false initially when the
whole widget is not yet shown.
I also added an autotest for it.
Task-number: 256331
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/phonon/phonon/volumeslider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/phonon/volumeslider.cpp b/src/3rdparty/phonon/phonon/volumeslider.cpp index b59f689..1888cb6 100644 --- a/src/3rdparty/phonon/phonon/volumeslider.cpp +++ b/src/3rdparty/phonon/phonon/volumeslider.cpp @@ -85,7 +85,7 @@ VolumeSlider::~VolumeSlider() bool VolumeSlider::isMuteVisible() const { - return k_ptr->muteButton.isVisible(); + return !k_ptr->muteButton.isHidden(); } void VolumeSlider::setMuteVisible(bool visible) |