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

List:       kde-commits
Subject:    playground/base/plasma/shells/mobile/containments/mobilelauncher
From:       Marco Martin <notmart () gmail ! com>
Date:       2010-11-30 22:26:56
Message-ID: 20101130222656.2569FAC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1202447 by mart:

a proxy model to transform continuous items into paged media


 M  +1 -0      CMakeLists.txt  
 M  +3 -0      mobilelauncher.cpp  
 A             models/pagedproxymodel.cpp   [License: LGPL (v2+)]
 A             models/pagedproxymodel.h   [License: LGPL (v2+)]


--- trunk/playground/base/plasma/shells/mobile/containments/mobilelauncher/CMakeLists.txt \
#1202446:1202447 @@ -5,6 +5,7 @@
     mobilelauncher.cpp
     models/krunnermodel.cpp
     models/standarditemfactory.cpp
+    models/pagedproxymodel.cpp
     )
 
 kde4_add_plugin(plasma_containment_mobilelauncher ${mobile_launcher_SRCS})
--- trunk/playground/base/plasma/shells/mobile/containments/mobilelauncher/mobilelauncher.cpp \
#1202446:1202447 @@ -21,6 +21,7 @@
 //own
 #include "mobilelauncher.h"
 #include "models/krunnermodel.h"
+#include "models/pagedproxymodel.h"
 
 
 //Qt
@@ -42,6 +43,7 @@
 #include <Plasma/RunnerManager>
 
 
+QML_DECLARE_TYPE(PagedProxyModel)
 
 MobileLauncher::MobileLauncher(QObject *parent, const QVariantList &args)
     : Containment(parent, args),
@@ -52,6 +54,7 @@
 
     // At some point it has to be a custom constainment
     setContainmentType(Containment::CustomContainment);
+    qmlRegisterType<PagedProxyModel>("MobileLauncher", 1, 0, "PagedProxyModel");
 }
 
 MobileLauncher::~MobileLauncher()


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

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