]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/selectiontoggle.cpp
Do not show the 'No Tags' message and properly handle tags with spaces in their URI
[dolphin.git] / src / selectiontoggle.cpp
index a2abc49c26786579350490175bfaab83adac03df..fa10c7559a6bcf4ccf5e84c448b85e7e1d9c4b49 100644 (file)
@@ -23,6 +23,7 @@
 #include <kicon.h>
 #include <kiconloader.h>
 #include <kiconeffect.h>
+#include <klocale.h>
 
 #include <QPainter>
 #include <QPaintEvent>
@@ -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();
 }