[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-27 14:06:40
Message-ID: 20101127140640.C9816AC8A2 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1201367 by tokoe:

Refresh the actions list whenever the ActionFlap
is expanded. This ensures that sub-menu actions are
always shown.

BUG: 250579


 M  +4 -0      calendar/korganizer-mobile.qml  
 M  +4 -0      contacts/kaddressbook-mobile.qml  
 M  +7 -0      lib/ActionMenuContainer.qml  
 M  +5 -0      mail/kmail-mobile.qml  
 M  +4 -0      notes/notes.qml  
 M  +4 -0      tasks/tasks.qml  


--- trunk/KDE/kdepim/mobile/calendar/korganizer-mobile.qml #1201366:1201367
@@ -379,6 +379,10 @@
       handleHeight: 150
       anchors.fill : parent
 
+      Component.onCompleted: {
+        actionPanel.expanded.connect( korganizerActions, korganizerActions.refresh );
+      }
+
       content : [
         KorganizerActions {
           id : korganizerActions
--- trunk/KDE/kdepim/mobile/contacts/kaddressbook-mobile.qml #1201366:1201367
@@ -308,6 +308,10 @@
       handleHeight: 150
       anchors.fill : parent
 
+      QML.Component.onCompleted: {
+        actionPanel.expanded.connect( kaddressbookActions, kaddressbookActions.refresh );
+      }
+
       content : [
         KAddressBookActions {
           id : kaddressbookActions
--- trunk/KDE/kdepim/mobile/lib/ActionMenuContainer.qml #1201366:1201367
@@ -32,6 +32,7 @@
   property bool menuStyle : false
   property int activeCount: 0
   anchors.bottomMargin : bottomMargin
+  property string cachedCategory
 
   property alias scriptActions : myScriptActions.data
 
@@ -41,6 +42,11 @@
 
   signal doCollapse()
 
+  function refresh()
+  {
+    showOnlyCategory( cachedCategory )
+  }
+
   clip: true
 
   Item {
@@ -61,6 +67,7 @@
 
   function showOnlyCategory(category)
   {
+    cachedCategory = category
     itemModel.showOnlyCategory(category)
 
     var firstMenu = -1;
--- trunk/KDE/kdepim/mobile/mail/kmail-mobile.qml #1201366:1201367
@@ -369,6 +369,11 @@
       handlePosition : 125
       handleHeight: 150
       anchors.fill: parent
+
+      QML.Component.onCompleted: {
+        actionPanel.expanded.connect( kmailActions, kmailActions.refresh );
+      }
+
       content: [
           KMailActions {
             id : kmailActions
--- trunk/KDE/kdepim/mobile/notes/notes.qml #1201366:1201367
@@ -258,6 +258,10 @@
       handleHeight: 150
       anchors.fill : parent
 
+      QML.Component.onCompleted: {
+        actionPanel.expanded.connect( noteActions, noteActions.refresh );
+      }
+
       content : [
         NoteActions {
           id : noteActions
--- trunk/KDE/kdepim/mobile/tasks/tasks.qml #1201366:1201367
@@ -264,6 +264,10 @@
       handleHeight: 150
       anchors.fill : parent
 
+      QML.Component.onCompleted: {
+        actionPanel.expanded.connect( taskActions, taskActions.refresh );
+      }
+
       content : [
         TaskActions {
           id : taskActions
[prev in list] [next in list] [prev in thread] [next in thread] 

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