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

List:       kde-commits
Subject:    branches/work/kde4/playground/base/systemsettings
From:       Benjamin Meyer <ben () meyerhome ! net>
Date:       2005-09-20 16:36:20
Message-ID: 1127234180.299924.16240.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 462303 by bmeyer:

Created indexitemdeletege... let the eye candy begin


 M  +2 -2      Makefile.am  
 A             indexitemdelegate.cpp   [License: GPL (v2+)]
 A             indexitemdelegate.h   [License: GPL (v2+)]
 M  +31 -17    main.cpp  


--- branches/work/kde4/playground/base/systemsettings/Makefile.am #462302:462303
@@ -23,9 +23,9 @@
 
 bin_PROGRAMS = systemsettings
 
-systemsettings_SOURCES = kcmodulemenu.cpp kcmsearch.cpp kcmultiwidget.cpp main.cpp \
mainwindow.cpp moduleiconitem.cpp modulesview.cpp +systemsettings_SOURCES = \
indexitemdelegate.cpp kcmodulemenu.cpp kcmsearch.cpp kcmultiwidget.cpp main.cpp \
mainwindow.cpp moduleiconitem.cpp modulesview.cpp  
-EXTRA_DIST = kcmodulemenu.h kcmultiwidget.h moduleiconitem.h version.h kcmsearch.h \
mainwindow.h modulesview.h +EXTRA_DIST = kcmodulemenu.h kcmultiwidget.h \
moduleiconitem.h version.h kcmsearch.h mainwindow.h modulesview.h indexitemdelegate.h \
  systemsettings_LDADD  = $(LIB_KDEUI) $(LIB_KUTILS)
 systemsettings_LDFLAGS = $(all_libraries) -module -avoid-version
--- branches/work/kde4/playground/base/systemsettings/main.cpp #462302:462303
@@ -34,28 +34,42 @@
 	KCmdLineLastOption
 };
 
+#include <qlistview.h>
+#include "indexitemdelegate.h"
+#include <qdirmodel.h>
 int main( int argc, char *argv[] )
 {
-	// About data
-  KAboutData aboutData("systemsettings", I18N_NOOP("System Settings"),
-	  SYSTEM_SETTINGS_VERSION, I18N_NOOP("System Settings"),
-	  KAboutData::License_LGPL, "(c) 2005, Benjamin C. Meyer", 0, 0);
-  aboutData.addAuthor("Benjamin C. Meyer", I18N_NOOP("Author & Maintainer"),
+    // About data
+    KAboutData aboutData("systemsettings", I18N_NOOP("System Settings"),
+      SYSTEM_SETTINGS_VERSION, I18N_NOOP("System Settings"),
+      KAboutData::License_LGPL, "(c) 2005, Benjamin C. Meyer", 0, 0);
+    aboutData.addAuthor("Benjamin C. Meyer", I18N_NOOP("Author & Maintainer"),
 	  "ben+systempreferences@meyerhome.net");
-  KCmdLineArgs::init(argc, argv, &aboutData);
+    KCmdLineArgs::init(argc, argv, &aboutData);
 
-	// Tell which options are supported
-  KCmdLineArgs::addCmdLineOptions( options );
+    // Tell which options are supported
+    KCmdLineArgs::addCmdLineOptions( options );
 
-	KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+    KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
 
-	// Launch
-  KApplication application(argc, argv);
-
-	MainWindow *mainWindow = new MainWindow(args->isSet("embed"), \
                args->getOption("menu"));
-	application.setMainWidget( mainWindow );
-	mainWindow->show();
-
-	return application.exec();
+    // Launch
+    KApplication application(argc, argv);
+    
+    /*
+    QDirModel *model = new QDirModel;
+    QListView view;
+    view.setModel(model);
+    view.setRootIndex(model->index("/home/"));
+    IndexItemDelegate *delegate = new IndexItemDelegate(Qt::WhatsThisRole);
+    view.setItemDelegate(delegate);
+    view.setViewMode(QListView::IconMode);
+    application.setMainWidget(&view);
+    view.show();
+    */
+    MainWindow *mainWindow = new MainWindow(args->isSet("embed"), \
args->getOption("menu")); +    application.setMainWidget( mainWindow );
+    mainWindow->show();
+    
+    return application.exec();
 }
 


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

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