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

List:       kde-commits
Subject:    branches/work/attica/plasma/opendesktop
From:       Eckhart Wörner <ewoerner () kde ! org>
Date:       2009-11-09 18:27:36
Message-ID: 1257791256.225290.15313.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1046791 by ewoerner:

Switch to the details when you click anywhere on the widget (except on the buttons, of course)


 M  +7 -0      contactwidget.cpp  
 M  +2 -0      contactwidget.h  


--- branches/work/attica/plasma/opendesktop/contactwidget.cpp #1046790:1046791
@@ -329,4 +329,11 @@
     updateActions();
 }
 
+
+void ContactWidget::mousePressEvent(QGraphicsSceneMouseEvent* event)
+{
+    emit showDetails();
+}
+
+
 #include "contactwidget.moc"
--- branches/work/attica/plasma/opendesktop/contactwidget.h #1046790:1046791
@@ -70,6 +70,8 @@
     protected Q_SLOTS:
         void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
         void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
+        void mousePressEvent(QGraphicsSceneMouseEvent* event);
+
         void slotShowDetails();
         void dataUpdated(const QString& source, const Plasma::DataEngine::Data& data);
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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