summaryrefslogtreecommitdiffstats
path: root/korganizer/searchdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/searchdialog.cpp')
-rw-r--r--korganizer/searchdialog.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp
index b8b6ea1ea..8b79bda1c 100644
--- a/korganizer/searchdialog.cpp
+++ b/korganizer/searchdialog.cpp
@@ -20,8 +20,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include <tqlayout.h>
@@ -45,9 +45,9 @@
#include "searchdialog.h"
#include "searchdialog.moc"
-SearchDialog::SearchDialog(Calendar *calendar,TQWidget *parent)
- : KDialogBase(Plain,i18n("Find Events"),User1|Close,User1,parent,0,false,false,
- KGuiItem( i18n("&Find"), "find") )
+SearchDialog::SearchDialog(Calendar *calendar,TQWidget *tqparent)
+ : KDialogBase(Plain,i18n("Find Events"),User1|Close,User1,tqparent,0,false,false,
+ KGuiItem( i18n("&Find"), "tqfind") )
{
mCalendar = calendar;
@@ -228,31 +228,19 @@ void SearchDialog::search( const TQRegExp &re )
for( it = allIncidences.begin(); it != allIncidences.end(); ++it ) {
Incidence *ev = *it;
if ( mSummaryCheck->isChecked() ) {
-#if QT_VERSION >= 300
if ( re.search( ev->summary() ) != -1 ) {
-#else
- if ( re.match( ev->summary() ) != -1 ) {
-#endif
mMatchedEvents.append( ev );
continue;
}
}
if ( mDescriptionCheck->isChecked() ) {
-#if QT_VERSION >= 300
if ( re.search( ev->description() ) != -1 ) {
-#else
- if ( re.match( ev->description() ) != -1 ) {
-#endif
mMatchedEvents.append( ev );
continue;
}
}
if ( mCategoryCheck->isChecked() ) {
-#if QT_VERSION >= 300
if ( re.search( ev->categoriesStr() ) != -1 ) {
-#else
- if ( re.match( ev->categoriesStr() ) != -1 ) {
-#endif
mMatchedEvents.append( ev );
continue;
}