[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kontact/plugins/planner
From: Allen Winter <winter () kde ! org>
Date: 2008-01-27 22:13:49
Message-ID: 1201472029.969641.19063.nullmailer () svn ! kde ! org
[Download RAW message or body]
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 <kdebug.h>
#include <kdialog.h>
#include <klocale.h>
-#include <ktabwidget.h>
+#include <QTabWidget>
#include <q3buttongroup.h>
#include <qlabel.h>
#include <qlayout.h>
@@ -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();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic