summaryrefslogtreecommitdiff
path: root/core/pim
authorharlekin <harlekin>2003-04-06 16:36:49 (UTC)
committer harlekin <harlekin>2003-04-06 16:36:49 (UTC)
commit71d093f94b031e2c14c7051a2db998e14e3c747c (patch) (side-by-side diff)
tree5acc9ca6c20026f2338b82672b2210fba25f006e /core/pim
parent053eab1afe69f91e591cc43f01f3c155096d3a30 (diff)
downloadopie-71d093f94b031e2c14c7051a2db998e14e3c747c.zip
opie-71d093f94b031e2c14c7051a2db998e14e3c747c.tar.gz
opie-71d093f94b031e2c14c7051a2db998e14e3c747c.tar.bz2
status has an icon again .-), closes #806
Diffstat (limited to 'core/pim') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/otaskeditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/todo/otaskeditor.cpp b/core/pim/todo/otaskeditor.cpp
index 68b315d..e26d5e4 100644
--- a/core/pim/todo/otaskeditor.cpp
+++ b/core/pim/todo/otaskeditor.cpp
@@ -19,75 +19,75 @@ OTaskEditor::OTaskEditor(int cur)
OTaskEditor::OTaskEditor( const OTodo& to)
: QDialog( 0, 0, TRUE, WStyle_ContextHelp ) {
init();
init( to );
}
OTaskEditor::~OTaskEditor() {
}
void OTaskEditor::init( int cur ) {
OTodo to;
if ( cur != 0 )
to.setCategories( cur );
load(to);
m_uid = 1; // generate a new one
}
void OTaskEditor::init( const OTodo& to ) {
load( to );
m_uid = to.uid();
}
OTodo OTaskEditor::todo()const{
qWarning("saving!");
OTodo to;
to.setUid(m_uid );
m_overView->save( to );
m_stat->save( to );
to.setRecurrence( m_rec->recurrence() );
return to;
}
void OTaskEditor::load(const OTodo& to) {
m_overView->load( to );
m_stat->load( to );
m_rec->setRecurrence( to.recurrence(), to.hasDueDate() ? to.dueDate() : QDate::currentDate() );
}
void OTaskEditor::init() {
setCaption("Task Editor");
QVBoxLayout* layo = new QVBoxLayout( this );
m_tab = new OTabWidget( this );
layo->addWidget( m_tab );
/*
* Add the Widgets
*/
m_overView = new TaskEditorOverView( m_tab );
m_tab->addTab( m_overView, "todo/info", tr("Information") );
m_stat = new TaskEditorStatus( m_tab );
- m_tab->addTab( m_stat, "TodoList", tr("Status") );
+ m_tab->addTab( m_stat, "todo/TodoList", tr("Status") );
m_alarm = new TaskEditorAlarms( m_tab );
m_tab->addTab( m_alarm, "todo/alarm", tr("Alarms") );
m_remind = new TaskEditorAlarms( m_tab );
m_tab->addTab( m_remind, "todo/reminder", tr("Reminders") );
QLabel* lbl = new QLabel( m_tab );
lbl->setText( tr("X-Ref") );
m_tab->addTab( lbl, "todo/xref", tr("X-Ref") );
m_rec = new ORecurranceWidget( true, QDate::currentDate(), this );
m_tab->addTab( m_rec, "repeat", tr("Recurrence") );
/* signal and slots */
connect(m_overView, SIGNAL(recurranceEnabled(bool) ),
m_rec, SLOT(setEnabled(bool) ) );
/* connect due date changed to the recurrence tab */
connect(m_stat, SIGNAL(dueDateChanged(const QDate&) ),
m_rec, SLOT(setStartDate(const QDate& ) ) );
m_tab->setCurrentTab( m_overView );
}