radioapp/radiowidgetsplugin/main.cpp
changeset 28 075425b8d9a4
parent 24 6df133bd92e1
child 37 451b2e1545b2
--- a/radioapp/radiowidgetsplugin/main.cpp	Fri Jun 04 10:21:36 2010 +0100
+++ b/radioapp/radiowidgetsplugin/main.cpp	Fri Jun 11 13:38:32 2010 +0300
@@ -20,12 +20,8 @@
 #include <hbdocumentloaderplugin>
 
 // User includes
-#include "radiostationsview.h"
-#include "radiomainview.h"
-#include "radiohistoryview.h"
 #include "radiostationcarousel.h"
 #include "radiofrequencystrip.h"
-#include "radiobannerlabel.h"
 #include "radiofadinglabel.h"
 
 // Class declaration
@@ -47,18 +43,10 @@
 {
     QObject* object = 0;
 
-    if ( type == RadioMainView::staticMetaObject.className() ) {
-        object = new RadioMainView();
-    } else if ( type == RadioStationsView::staticMetaObject.className() ) {
-        object = new RadioStationsView();
-    } else if ( type == RadioHistoryView::staticMetaObject.className() ) {
-        object = new RadioHistoryView();
-    } else if ( type == RadioStationCarousel::staticMetaObject.className() ) {
+    if ( type == RadioStationCarousel::staticMetaObject.className() ) {
         object = new RadioStationCarousel();
     } else if ( type == RadioFrequencyStrip::staticMetaObject.className() ) {
         object = new RadioFrequencyStrip();
-    } else if ( type == RadioBannerLabel::staticMetaObject.className() ) {
-        object = new RadioBannerLabel();
     } else if ( type == RadioFadingLabel::staticMetaObject.className() ) {
         object = new RadioFadingLabel();
     }
@@ -76,10 +64,6 @@
 QList<const QMetaObject *> RadioWidgetsPlugin::supportedObjects()
 {
     QList<const QMetaObject *> result;
-    result.append( &RadioMainView::staticMetaObject );
-    result.append( &RadioStationsView::staticMetaObject );
-    result.append( &RadioHistoryView::staticMetaObject );
-    result.append( &RadioBannerLabel::staticMetaObject );
     result.append( &RadioFadingLabel::staticMetaObject );
     result.append( &RadioFrequencyStrip::staticMetaObject );
     result.append( &RadioStationCarousel::staticMetaObject );