void KNMainWindowStatusBar::leaveEvent(QEvent *event) { //Start the animation to range start. startAnime(MinimumOpacity); //Do the original leave event. QWidget::leaveEvent(event); }
void KNMainWindowStatusBar::enterEvent(QEvent *event) { //Start the animation to range end. startAnime(MaximumOpacity); //Do the original enter event. QWidget::enterEvent(event); }
void KMMailComponentContactArea::enterEvent(QEvent *event) { //Enter the widget. QScrollArea::enterEvent(event); //Start mouse in anime. startAnime(MaxOpacity); }
void KNMusicStoreAlbumTreeView::enterEvent(QEvent *event) { //Do original enter event. QTreeView::enterEvent(event); //Start mouse in anime. startAnime(MaxOpacity); }
void KNLinearSenseWidget::leaveEvent(QEvent *event) { //Start mouse out animation. startAnime(m_mouseOut); //Do original leave event. QWidget::leaveEvent(event); }
void KNCategoryTabBar::leaveEvent(QEvent *event) { //Start mouse out anime. startAnime(OutBrightness); //Do original leave event. KNAbstractTabGroup::enterEvent(event); }
void KNLinearSenseWidget::enterEvent(QEvent *event) { //Start mouse in animation. startAnime(m_mouseIn); //Do original enter event. QWidget::enterEvent(event); }
void KMMailComponentContactArea::leaveEvent(QEvent *event) { //Enter the widget. QScrollArea::leaveEvent(event); //Start mouse in anime. startAnime(0); }
void KNCategoryTabBar::enterEvent(QEvent *event) { //Start mouse in anime. startAnime(InBrightness); //Do original enter event. KNAbstractTabGroup::enterEvent(event); }
void KNMusicStoreAlbumTreeView::leaveEvent(QEvent *event) { //Do original leave event. QTreeView::leaveEvent(event); //Start mouse leave anime. startAnime(0); }
void KNMouseSenseWidget::leaveEvent(QEvent *event) { //Start the animation to range start. startAnime(m_rangeStart); //Do the original leave event. QWidget::leaveEvent(event); }
void KNMouseSenseWidget::enterEvent(QEvent *event) { //Start the animation to range end. startAnime(m_rangeEnd); //Do the original enter event. QWidget::enterEvent(event); }
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(); }
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(); }
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); }
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(); }
void KNMusicHeaderPlayer::activate() { //Start mouse in and show animations. startAnime(m_mouseIn, m_showVolume, m_showControl, m_showAppend); }