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

List:       kde-commits
Subject:    KDE/kdepim/mobile
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2010-11-29 12:03:12
Message-ID: 20101129120312.E97B8AC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1202016 by tokoe:

Add visual indicator for actions that support the
'long pressed' action.
Using the 'mail-important' icon for the moment until
Nuno provides a nice icon for it :)


 M  +9 -0      lib/ActionListItem.qml  
 M  +1 -0      lib/ApplicationGeneralActions.qml  
 M  +5 -0      mail/KMailActions.qml  


--- trunk/KDE/kdepim/mobile/lib/ActionListItem.qml #1202015:1202016
@@ -24,11 +24,13 @@
 
 
 QML.Item {
+  id : _top
   height : parent.height
   width : parent.width
   property string name
   property string argument : ""
   property string title : ""
+  property bool reactsOnLongPressed : false
 
   property string category
 
@@ -65,5 +67,12 @@
       parent.doCollapse()
       parent.triggered(name)
     }
+
+    QML.Image {
+      anchors.right: parent.right
+      anchors.verticalCenter: parent.verticalCenter
+      source: KDE.locate( "data", "libmessageviewer/pics/mobile_status_important.png" )
+      visible: _top.reactsOnLongPressed
   }
 }
+}
--- trunk/KDE/kdepim/mobile/lib/ApplicationGeneralActions.qml #1202015:1202016
@@ -29,6 +29,7 @@
   property alias configureActionVisible: configureAction.visible
   property string type
   property alias addNewActionName: addNewAction.name
+  property alias addNewActionReactsOnLongPressed: addNewAction.reactsOnLongPressed
   signal longPressed(string actionName)
 
   KPIM.ActionListItem {
--- trunk/KDE/kdepim/mobile/mail/KMailActions.qml #1202015:1202016
@@ -41,6 +41,7 @@
           application.getAction("send_queued_emails_via", "").trigger();
           actionPanel.collapse()
       }
+      reactsOnLongPressed : true
     }
     ScriptActionItem { name : "to_selection_screen"; title: KDE.i18n( "Select Multiple Folders" ) }
     ActionListItem { name : "akonadi_empty_all_trash" }
@@ -118,6 +119,7 @@
           newMailPage.visible = true
           actionPanel.collapse()
       }
+      reactsOnLongPressed : true
   }
 
   ActionList {
@@ -154,6 +156,7 @@
           replyOptionsPage.visible = true
           actionPanel.collapse()
       }
+      reactsOnLongPressed : true
     }
 
     ActionListItem {
@@ -162,6 +165,7 @@
           forwardOptionsPage.visible = true
           actionPanel.collapse()
       }
+      reactsOnLongPressed : true
     }
 
     ScriptActionItem { name : "mark_as_dialog"; title : KDE.i18n( "Mark As..." ) }
@@ -209,6 +213,7 @@
     type : "mail"
 
     addNewActionName: "add_new_mail"
+    addNewActionReactsOnLongPressed: true
 
     onLongPressed : {
       if ( actionName == "add_new_mail" ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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