[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/nepomuk-kde/scribo/plugins/datetime
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2009-06-19 7:28:50
Message-ID: 1245396530.974908.32027.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 983782 by trueg:

emit the finished signal

 M  +6 -4      datetimetextmatchplugin.cpp  


--- trunk/playground/base/nepomuk-kde/scribo/plugins/datetime/datetimetextmatchplugin.cpp \
#983781:983782 @@ -190,12 +190,14 @@
         s2.addOccurrence( oc2 );
         addNewMatch( s2 );
     }
+
+    emitFinished();
 }
 
 
 void DateTimeTextMatchPlugin::lookForYears( const QRegExp& regExp )
 {
-    kDebug() << regExp.pattern();
+//    kDebug() << regExp.pattern();
     int pos = 0;
     while ( ( pos = regExp.indexIn( m_text, pos ) ) != -1 ) {
         int year = regExp.cap( 0 ).toInt();
@@ -212,7 +214,7 @@
 
 void DateTimeTextMatchPlugin::lookForDates( const QRegExp& regExp, const QString& \
format, bool forceCurrentYear )  {
-    kDebug() << regExp.pattern() << format << forceCurrentYear;
+//    kDebug() << regExp.pattern() << format << forceCurrentYear;
     int pos = 0;
     while ( ( pos = regExp.indexIn( m_text, pos ) ) != -1 ) {
         QDate date = m_enLocale.toDate( regExp.cap( 0 ), format );
@@ -233,7 +235,7 @@
 
 void DateTimeTextMatchPlugin::lookForDateRanges( const QRegExp& regExp, const \
QString& format, int dateCap, int rangeEndCap, int yearCap, bool forceCurrentYear )  \
                {
-    kDebug() << regExp.pattern() << format;
+//    kDebug() << regExp.pattern() << format;
     int pos = 0;
     while ( ( pos = regExp.indexIn( m_text, pos ) ) != -1 ) {
         QDate startDate = m_enLocale.toDate( regExp.cap( dateCap ), format );
@@ -261,7 +263,7 @@
 
 void DateTimeTextMatchPlugin::lookForTimes( const QRegExp& regExp, const QString& \
format )  {
-    kDebug() << regExp.pattern() << format;
+//    kDebug() << regExp.pattern() << format;
     int pos = 0;
     while ( ( pos = regExp.indexIn( m_text, pos ) ) != -1 ) {
         QTime time = QTime::fromString( regExp.cap( 0 ), format );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic