[Kde-pim] KDE/kdelibs/kdeui

Stephen Kelly steveire at gmail.com
Fri Aug 7 15:08:06 BST 2009


SVN commit 1008438 by skelly:

Add the KReparentingProxyModel to kdelibs.

Only initial work has been done, but it's in kdelibs now so it can be used with
proxymodeltestapp and proxymodeltest. It is not built anywhere because it relies on
patches not merged into Qt.

This will probably be used for threading items in pim applications in the future,
using the mail threading agent to create item attributes to determine where they belong.

CCMAIL: kde-pim at kde.org

 M  +3 -0      CMakeLists.txt  
 AM            itemviews/kreparentingproxymodel.cpp   [License: LGPL (v2+)]
 AM            itemviews/kreparentingproxymodel.h   [License: LGPL (v2+)]
 M  +2 -0      tests/proxymodeltestapp/CMakeLists.txt  
 M  +3 -0      tests/proxymodeltestapp/mainwindow.cpp  
 AM            tests/proxymodeltestapp/reparentingpmwidget.cpp   [License: LGPL (v2.1+)]
 AM            tests/proxymodeltestapp/reparentingpmwidget.h   tests/proxymodeltestapp/mainwindow.cpp#1008437 [License: LGPL (v2.1+)]


--- trunk/KDE/kdelibs/kdeui/CMakeLists.txt #1008437:1008438
@@ -114,6 +114,8 @@
  itemviews/kcategorydrawer.cpp
  itemviews/kwidgetitemdelegate.cpp
  itemviews/kwidgetitemdelegatepool.cpp
+ # This requires patches which are not yet in Qt. Disabled for now.
+#  itemviews/kreparentingproxymodel.cpp
  itemviews/kselectionproxymodel.cpp
  itemviews/ksortfilterproxymodel.cpp
  jobs/kdialogjobuidelegate.cpp
@@ -456,6 +458,7 @@
  itemviews/kcategorizedview.h
  itemviews/kcategorydrawer.h
  itemviews/kwidgetitemdelegate.h
+#  itemviews/kreparentingproxymodel.h
  itemviews/kselectionproxymodel.h
  itemviews/ksortfilterproxymodel.h
  jobs/kdialogjobuidelegate.h
** trunk/KDE/kdelibs/kdeui/itemviews/kreparentingproxymodel.cpp #property svn:executable
   + *
** trunk/KDE/kdelibs/kdeui/itemviews/kreparentingproxymodel.h #property svn:executable
   + *
--- trunk/KDE/kdelibs/kdeui/tests/proxymodeltestapp/CMakeLists.txt #1008437:1008438
@@ -14,6 +14,8 @@
     ../dynamictreemodel.cpp
     selectionpmwidget.cpp
     descendantpmwidget.cpp
+#     reparentingpmwidget.cpp
+#     ../../itemviews/kreparentingproxymodel.cpp
     proxymodeltestwidget.cpp
     ../modelcommander.cpp
 )
--- trunk/KDE/kdelibs/kdeui/tests/proxymodeltestapp/mainwindow.cpp #1008437:1008438
@@ -29,6 +29,7 @@
 #include "descendantpmwidget.h"
 #include "selectionpmwidget.h"
 #include "proxymodeltestwidget.h"
+// #include "reparentingpmwidget.h"
 
 MainWindow::MainWindow() : KXmlGuiWindow()
 {
@@ -36,9 +37,11 @@
   QTabWidget *tabWidget = new QTabWidget( this );
   DescendantProxyModelWidget *descPMWidget = new DescendantProxyModelWidget();
   SelectionProxyWidget *selProxyWidget = new SelectionProxyWidget();
+//   ReparentingProxyModelWidget *reparentingProxyModelWidget = new ReparentingProxyModelWidget();
   ProxyModelTestWidget *proxyModelTestWidget = new ProxyModelTestWidget();
   tabWidget->addTab(descPMWidget, "descendant PM");
   tabWidget->addTab(selProxyWidget, "selection PM");
+//   tabWidget->addTab(reparentingProxyModelWidget, "reparenting PM");
   tabWidget->addTab(proxyModelTestWidget, "Proxy Model Test");
 
   setCentralWidget( tabWidget );
** trunk/KDE/kdelibs/kdeui/tests/proxymodeltestapp/reparentingpmwidget.cpp #property svn:executable
   + *
** trunk/KDE/kdelibs/kdeui/tests/proxymodeltestapp/reparentingpmwidget.h #property svn:executable
   + *
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list