예제 #1
0
void KNMainWindowStatusBar::leaveEvent(QEvent *event)
{
    //Start the animation to range start.
    startAnime(MinimumOpacity);
    //Do the original leave event.
    QWidget::leaveEvent(event);
}
예제 #2
0
void KNMainWindowStatusBar::enterEvent(QEvent *event)
{
    //Start the animation to range end.
    startAnime(MaximumOpacity);
    //Do the original enter event.
    QWidget::enterEvent(event);
}
예제 #3
0
void KMMailComponentContactArea::enterEvent(QEvent *event)
{
    //Enter the widget.
    QScrollArea::enterEvent(event);
    //Start mouse in anime.
    startAnime(MaxOpacity);
}
예제 #4
0
void KNMusicStoreAlbumTreeView::enterEvent(QEvent *event)
{
    //Do original enter event.
    QTreeView::enterEvent(event);
    //Start mouse in anime.
    startAnime(MaxOpacity);
}
예제 #5
0
void KNLinearSenseWidget::leaveEvent(QEvent *event)
{
    //Start mouse out animation.
    startAnime(m_mouseOut);
    //Do original leave event.
    QWidget::leaveEvent(event);
}
예제 #6
0
void KNCategoryTabBar::leaveEvent(QEvent *event)
{
    //Start mouse out anime.
    startAnime(OutBrightness);
    //Do original leave event.
    KNAbstractTabGroup::enterEvent(event);
}
예제 #7
0
void KNLinearSenseWidget::enterEvent(QEvent *event)
{
    //Start mouse in animation.
    startAnime(m_mouseIn);
    //Do original enter event.
    QWidget::enterEvent(event);
}
예제 #8
0
void KMMailComponentContactArea::leaveEvent(QEvent *event)
{
    //Enter the widget.
    QScrollArea::leaveEvent(event);
    //Start mouse in anime.
    startAnime(0);
}
예제 #9
0
void KNCategoryTabBar::enterEvent(QEvent *event)
{
    //Start mouse in anime.
    startAnime(InBrightness);
    //Do original enter event.
    KNAbstractTabGroup::enterEvent(event);
}
예제 #10
0
void KNMusicStoreAlbumTreeView::leaveEvent(QEvent *event)
{
    //Do original leave event.
    QTreeView::leaveEvent(event);
    //Start mouse leave anime.
    startAnime(0);
}
예제 #11
0
void KNMouseSenseWidget::leaveEvent(QEvent *event)
{
    //Start the animation to range start.
    startAnime(m_rangeStart);
    //Do the original leave event.
    QWidget::leaveEvent(event);
}
예제 #12
0
void KNMouseSenseWidget::enterEvent(QEvent *event)
{
    //Start the animation to range end.
    startAnime(m_rangeEnd);
    //Do the original enter event.
    QWidget::enterEvent(event);
}
예제 #13
0
void KNMusicDetailTooltip::focusOutEvent(QFocusEvent *event)
{
    //Do focus out event first.
    QWidget::focusOutEvent(event);
    //Start mouse out animation.
    startAnime(m_mouseOut);
    //Start the fade out counter.
    m_fadeOutCounter->start();
}
예제 #14
0
void KNMusicDetailTooltip::leaveEvent(QEvent *event)
{
    //Do leave event first.
    QWidget::leaveEvent(event);
    //Start mouse out animation.
    startAnime(m_mouseOut);
    //Start the fade out counter.
    m_fadeOutCounter->start();
}
예제 #15
0
void KNMusicHeaderPlayer::inactivate()
{
    //Check the shown status.
    if(m_appendMenuShown)
    {
        return;
    }
    //Start mouse out and hide animations.
    startAnime(m_mouseOut, m_hideVolume, m_hideControl, m_hideAppend);
}
예제 #16
0
void KNMusicDetailTooltip::enterEvent(QEvent *event)
{
    //Do enter event first.
    QWidget::enterEvent(event);
    //Stop the disappear counter.
    m_fadeOutCounter->stop();
    //Magic Interval:
    /*
     * Reduce the disappear timer interval. This is called magic interval, when
     * user move there mouse in and then move mouse out.
     */
    m_fadeOutCounter->setInterval(ShortFadeOutTime);
    //Start mouse in animation.
    startAnime(m_mouseIn);
    //When mouse move in, it means user may want to preview the song, load the
    //music here.
    loadPreview();
    //Set focus.
    setFocus();
}
예제 #17
0
void KNMusicHeaderPlayer::activate()
{
    //Start mouse in and show animations.
    startAnime(m_mouseIn, m_showVolume, m_showControl, m_showAppend);
}