4 files changed, 10 insertions, 12 deletions
diff --git a/core/pim/today/plugins/todolist/todoplugin.cpp b/core/pim/today/plugins/todolist/todoplugin.cpp index f5f6ed6..7ab27a0 100644 --- a/core/pim/today/plugins/todolist/todoplugin.cpp +++ b/core/pim/today/plugins/todolist/todoplugin.cpp @@ -34,3 +34,3 @@ QString TodolistPlugin::pluginName() const { double TodolistPlugin::versionNumber() const { - return 0.1; + return 0.7; } @@ -54,3 +54,3 @@ ConfigWidget* TodolistPlugin::configWidget( QWidget* wid ) { QString TodolistPlugin::appName() const { - return "Todolist"; + return QObject::tr( "Todolist" ); } @@ -65,7 +65 @@ int TodolistPlugin::maxHeight() const { - - - - int main() { -} - diff --git a/core/pim/today/plugins/todolist/todopluginconfig.cpp b/core/pim/today/plugins/todolist/todopluginconfig.cpp index da81600..2d8f1b6 100644 --- a/core/pim/today/plugins/todolist/todopluginconfig.cpp +++ b/core/pim/today/plugins/todolist/todopluginconfig.cpp @@ -52,3 +52,3 @@ TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name) void TodolistPluginConfig::readConfig() { - Config cfg( "todaydatebookplugin" ); + Config cfg( "todaytodoplugin" ); cfg.setGroup( "config" ); @@ -60,4 +60,5 @@ void TodolistPluginConfig::readConfig() { void TodolistPluginConfig::writeConfig() { - Config cfg( "todaydatebookplugin" ); + Config cfg( "todaytodoplugin" ); cfg.setGroup( "config" ); + m_max_lines_task = SpinBox2->value(); cfg.writeEntry( "maxlinestask", m_max_lines_task ); diff --git a/core/pim/today/plugins/todolist/todopluginwidget.cpp b/core/pim/today/plugins/todolist/todopluginwidget.cpp index 2a0e5a3..4731b43 100644 --- a/core/pim/today/plugins/todolist/todopluginwidget.cpp +++ b/core/pim/today/plugins/todolist/todopluginwidget.cpp @@ -33,4 +33,4 @@ TodolistPluginWidget::TodolistPluginWidget( QWidget *parent, const char* name) todoLabel= 0l; - todo = 0l; + if ( todo ) { @@ -49,4 +49,5 @@ TodolistPluginWidget::~TodolistPluginWidget() { + void TodolistPluginWidget::readConfig() { - Config cfg( "todaytodolistplugin" ); + Config cfg( "todaytodoplugin" ); cfg.setGroup( "config" ); @@ -70,2 +71,3 @@ void TodolistPluginWidget::getTodo() { connect( todoLabel, SIGNAL( clicked() ), this, SLOT( startTodolist() ) ); + QString output; diff --git a/core/pim/today/plugins/todolist/todopluginwidget.h b/core/pim/today/plugins/todolist/todopluginwidget.h index ccc312a..970f430 100644 --- a/core/pim/today/plugins/todolist/todopluginwidget.h +++ b/core/pim/today/plugins/todolist/todopluginwidget.h @@ -40,2 +40,3 @@ private: ToDoDB *todo; + void readConfig(); |