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

List:       kde-commits
Subject:    koffice/kexi/formeditor
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2009-04-16 19:11:51
Message-ID: 1239909111.061942.21190.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 955024 by staniek:

Forms
- added undo/redo actions for moving widgets



 M  +13 -1     container.cpp  


--- trunk/koffice/kexi/formeditor/container.cpp #955023:955024
@@ -1410,9 +1410,21 @@
         }
 
         if ((tmpx != w->x()) || (tmpy != w->y())) {
-            w->move(tmpx, tmpy);
+            if (d->form->selectedWidget()) {
+                // single widget
+                QRect g(w->geometry());
+                g.moveTo(tmpx, tmpy);
+                d->form->addPropertyCommand(w->objectName().toLatin1(), w->geometry(),
+                                            g, "geometry", true /*execute*/);
+                w->move(tmpx, tmpy);
+            }
+            else {
+                //todo
+                w->move(tmpx, tmpy);
+            }
         }
     }
+
 }
 
 void Container::stopInlineEditing()
[prev in list] [next in list] [prev in thread] [next in thread] 

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