summaryrefslogtreecommitdiffstats
path: root/korganizer/searchdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/searchdialog.cpp')
-rw-r--r--korganizer/searchdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp
index 8b79bda1c..03079cc90 100644
--- a/korganizer/searchdialog.cpp
+++ b/korganizer/searchdialog.cpp
@@ -76,7 +76,7 @@ SearchDialog::SearchDialog(Calendar *calendar,TQWidget *tqparent)
mTodosCheck->setChecked( true );
// Date range
- TQGroupBox *rangeGroup = new TQGroupBox( 1, Horizontal, i18n( "Date Range" ),
+ TQGroupBox *rangeGroup = new TQGroupBox( 1, Qt::Horizontal, i18n( "Date Range" ),
topFrame );
tqlayout->addWidget( rangeGroup );
@@ -197,9 +197,9 @@ void SearchDialog::search( const TQRegExp &re )
for (it=alltodos.begin(); it!=alltodos.end(); ++it) {
todo = *it;
if ( (!todo->hasStartDate() && !todo->hasDueDate() ) || // undated
- ( todo->hasStartDate() && (todo->dtStart()>=startDt) && (todo->dtStart()<=endDt) ) || // start dt in range
- ( todo->hasDueDate() && (todo->dtDue().date()>=startDt) && (todo->dtDue()<=endDt) ) || // due dt in range
- ( todo->hasCompletedDate() && (todo->completed().date()>=startDt) && (todo->completed()<=endDt) ) ) { // completed dt in range
+ ( todo->hasStartDate() && (todo->dtStart()>=TQDateTime(startDt)) && (todo->dtStart()<=TQDateTime(endDt)) ) || // start dt in range
+ ( todo->hasDueDate() && (todo->dtDue().date()>=startDt) && (todo->dtDue()<=TQDateTime(endDt)) ) || // due dt in range
+ ( todo->hasCompletedDate() && (todo->completed().date()>=startDt) && (todo->completed()<=TQDateTime(endDt)) ) ) { // completed dt in range
todos.append( todo );
}
}