summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-17 09:54:48 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-17 09:59:02 (GMT)
commiteda6ef48f7a1c5f93e09fd85fa54123569bb0a5f (patch)
tree459fbdb6238bc0756719a4c2a395de31a4aa1adf /src
parentfa8030a935acaacee570eee320e7510a4cfdc853 (diff)
downloadQt-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.cpp2
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)