Skip to content

Commit

Permalink
MythUIScrollBar: make the scrollbar hide itself after fading out
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Harrison committed Mar 28, 2013
1 parent d18c38d commit 77737e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mythtv/libs/libmythui/mythuiscrollbar.cpp
Expand Up @@ -180,4 +180,11 @@ void MythUIScrollBar::timerEvent(QTimerEvent *)
killTimer(m_timerId);
m_timerId = 0;
AdjustAlpha(1, -10, 0, 255);
connect(this, SIGNAL(FinishedFading()), this, SLOT(DoneFading()));
}

void MythUIScrollBar::DoneFading(void)
{
disconnect(this, SIGNAL(FinishedFading()), 0, 0);
Hide();
}
3 changes: 3 additions & 0 deletions mythtv/libs/libmythui/mythuiscrollbar.h
Expand Up @@ -27,6 +27,9 @@ class MUI_PUBLIC MythUIScrollBar : public MythUIType
void SetSliderPosition(int);
void SetMaximum(int);

protected slots:
void DoneFading(void);

protected:
virtual bool ParseElement(
const QString &filename, QDomElement &element, bool showWarnings);
Expand Down

0 comments on commit 77737e1

Please sign in to comment.