~ubuntu-branches/ubuntu/precise/konsole/precise-proposed

« back to all changes in this revision

Viewing changes to src/Filter.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-16 13:14:43 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111216131443-rhdplbmmuxntat3k
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
FilterChain::~FilterChain()
46
46
{
47
47
    QMutableListIterator<Filter*> iter(*this);
48
 
    
 
48
 
49
49
    while ( iter.hasNext() )
50
50
    {
51
51
        Filter* filter = iter.next();
139
139
 
140
140
    PlainTextDecoder decoder;
141
141
    decoder.setTrailingWhitespace(false);
142
 
    
 
142
 
143
143
    // setup new shared buffers for the filters to process on
144
144
    QString* newBuffer = new QString();
145
145
    QList<int>* newLinePositions = new QList<int>();
225
225
        }
226
226
    }
227
227
}
228
 
    
 
228
 
229
229
 
230
230
/*void Filter::addLine(const QString& text)
231
231
{
265
265
    while (spotIter.hasNext())
266
266
    {
267
267
        HotSpot* spot = spotIter.next();
268
 
        
 
268
 
269
269
        if ( spot->startLine() == line && spot->startColumn() > column )
270
270
            continue;
271
271
        if ( spot->endLine() == line && spot->endColumn() < column )
272
272
            continue;
273
 
       
 
273
 
274
274
        return spot;
275
275
    }
276
276
 
428
428
UrlFilter::HotSpot::UrlType UrlFilter::HotSpot::urlType() const
429
429
{
430
430
    QString url = capturedTexts().first();
431
 
    
 
431
 
432
432
    if ( FullUrlRegExp.exactMatch(url) )
433
433
        return StandardUrl;
434
434
    else if ( EmailAddressRegExp.exactMatch(url) )
466
466
        {
467
467
            url.prepend("mailto:");
468
468
        }
469
 
    
 
469
 
470
470
        new KRun(url,QApplication::activeWindow());
471
471
    }
472
472
}