]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tooltips/ktooltip.cpp
Using the "document-properties" icon for the Properties entry of the RMB context...
[dolphin.git] / src / tooltips / ktooltip.cpp
index a0126fbffecdcc976660dd64b266aebcd3ab14ef..d5aa0f7b77202ddece8ed16944197a1eb65375a8 100644 (file)
@@ -242,7 +242,7 @@ KToolTipDelegate *KAbstractToolTipLabel::delegate() const
 class QWidgetLabel : public QWidget, public KAbstractToolTipLabel
 {
 public:
-    QWidgetLabel() : QWidget(0, Qt::ToolTip) {}
+    QWidgetLabel();
     void showTip(const QPoint &pos, const KToolTipItem *item);
     void moveTip(const QPoint &pos);
     void hideTip();
@@ -255,6 +255,13 @@ private:
     const KToolTipItem *currentItem;
 };
 
+QWidgetLabel::QWidgetLabel() : QWidget(0, Qt::ToolTip)
+{
+    if (KToolTipManager::instance()->haveAlphaChannel()) {
+        setAttribute(Qt::WA_TranslucentBackground);
+    }
+}
+
 void QWidgetLabel::showTip(const QPoint &pos, const KToolTipItem *item)
 {
     currentItem = item;