From kde-commits Sun Jan 27 22:13:49 2008 From: Allen Winter Date: Sun, 27 Jan 2008 22:13:49 +0000 To: kde-commits Subject: KDE/kdepim/kontact/plugins/planner Message-Id: <1201472029.969641.19063.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120147204410824 SVN commit 767379 by winterz: make a working kcm. but I want to replace the hand-crafted code with designer generated code. M +5 -5 kcmplanner.cpp M +1 -1 kcmplanner.h --- trunk/KDE/kdepim/kontact/plugins/planner/kcmplanner.cpp #767378:767379 @@ -30,8 +30,8 @@ #include #include #include -#include +#include #include #include #include @@ -54,7 +54,7 @@ : KCModule( inst, parent ) { QWidget *widget = new QWidget( parent ); - initGUI( widget ); + initGUI(); customDaysChanged( 1 ); @@ -230,10 +230,10 @@ Initialization of Config Gui */ -void KCMPlanner::initGUI( QWidget *widget ) +void KCMPlanner::initGUI() { - Q3VBoxLayout *topLayout = new Q3VBoxLayout( widget, 0, KDialog::spacingHint() ); - KTabWidget *tabWidget = new KTabWidget( widget ); + Q3VBoxLayout *topLayout = new Q3VBoxLayout( this, 0, KDialog::spacingHint() ); + QTabWidget *tabWidget = new QTabWidget( this ); topLayout->addWidget( tabWidget ); //Build Calendar Page --- trunk/KDE/kdepim/kontact/plugins/planner/kcmplanner.h #767378:767379 @@ -51,7 +51,7 @@ void setSd( bool ); private: - void initGUI( QWidget *w ); + void initGUI(); void initCalendarPage(); void initTodoPage(); void initSdPage();