X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/bcb9028a5fa4fc5894e8bba6821c019bde1cdf75..20a3032cff6ae0cd944c2c2cf98179425e02eb38:/src/selectiontoggle.cpp diff --git a/src/selectiontoggle.cpp b/src/selectiontoggle.cpp index a2abc49c2..14ec04840 100644 --- a/src/selectiontoggle.cpp +++ b/src/selectiontoggle.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -103,6 +104,8 @@ void SelectionToggle::enterEvent(QEvent* event) m_fadingTimeLine->stop(); } m_fadingValue = 255; + setToolTip(isChecked() ? i18nc("@info:tooltip", "Deselect Item") : + i18nc("@info:tooltip", "Select Item")); update(); } @@ -179,7 +182,7 @@ void SelectionToggle::startFading() Q_ASSERT(m_fadingTimeLine == 0); const bool animate = KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects; - const int duration = animate ? 1500 : 1; + const int duration = animate ? 600 : 1; m_fadingTimeLine = new QTimeLine(duration, this); connect(m_fadingTimeLine, SIGNAL(frameChanged(int)),