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

List:       kde-commits
Subject:    playground/utils/filelight/src/part
From:       Jakub Stachowski <qbast () go2 ! pl>
Date:       2010-03-14 17:21:11
Message-ID: 1268587271.309396.13717.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1103246 by qbast:

Make left-click anywhere in the disc start scanning.

BUG: 135617



 M  +2 -2      summaryWidget.cpp  


--- trunk/playground/utils/filelight/src/part/summaryWidget.cpp #1103245:1103246
@@ -83,11 +83,11 @@
         const RadialMap::Segment *segment = focusSegment();
 
         //we will allow right clicks to the center circle
-        if (segment == rootSegment())
+        if (segment == rootSegment() && e->button() == Qt::RightButton)
             RadialMap::Widget::mousePressEvent(e);
 
         //and clicks to the used segment
-        else if (segment && segment->file()->name() == "Used") {
+        else if (e->button() == Qt::LeftButton ) {
             const QRect rect(e->x() - 20, e->y() - 20, 40, 40);
 //            KIconEffect::visualActivate(this, rect); TODO: Re-enable
             emit activated(url());
[prev in list] [next in list] [prev in thread] [next in thread] 

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