[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/akregator/src
From:       George Staikos <staikos () kde ! org>
Date:       2004-12-06 10:56:17
Message-ID: 20041206105617.1F1CD17AC4 () office ! kde ! org
[Download RAW message or body]

CVS commit by staikos: 

play nicer in kontact


  M +17 -1     akregator_part.cpp   1.112


--- kdenonbeta/akregator/src/akregator_part.cpp  #1.111:1.112
@@ -724,5 +724,21 @@ void aKregatorPart::showOptions()
 KParts::Part *aKregatorPart::hitTest(QWidget *widget, const QPoint &globalPos)
 {
+    bool child = false;
+    QWidget *me = this->widget();
+    while (widget) {
+        if (widget == me) {
+            child = true;
+            break;
+        }
+        if (!widget) {
+            break;
+        }
+        widget = widget->parentWidget();
+    }
+    if (m_view && m_view->currentFrame() && child) {
     return m_view->currentFrame()->part();
+    } else {
+        return MyBasePart::hitTest(widget, globalPos);
+    }
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic