Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/assistant/lib/fulltextsearch/qsearchable.cpp

    r2 r561  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
    5 **
    6 ** This file is part of the QCLucene library and is distributable under
    7 ** the terms of the LGPL license as specified in the license.txt file.
     3** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team.
     4** All rights reserved.
     5**
     6** Portion Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     7** All rights reserved.
     8**
     9** This file may be used under the terms of the GNU Lesser General Public
     10** License version 2.1 as published by the Free Software Foundation and
     11** appearing in the file LICENSE.LGPL included in the packaging of this file.
     12** Please review the following information to ensure the GNU Lesser General
     13** Public License version 2.1 requirements will be met:
     14** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    815**
    916****************************************************************************/
     
    2734{
    2835    searchable = _CL_POINTER(other.searchable);
     36    deleteCLuceneSearchable = other.deleteCLuceneSearchable;
    2937}
    3038
     
    6472}
    6573
    66 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 
     74QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query,
    6775                                      const QCLuceneFilter &filter)
    6876{
     
    7078}
    7179
    72 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 
     80QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query,
    7381                                      const QCLuceneSort &sort)
    7482{
     
    7684}
    7785
    78 QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query, 
     86QCLuceneHits QCLuceneSearcher::search(const QCLuceneQuery &query,
    7987                                      const QCLuceneFilter &filter,
    8088                                      const QCLuceneSort &sort)
     
    8795    : QCLuceneSearcher()
    8896{
    89     lucene::search::IndexSearcher *searcher = 
     97    lucene::search::IndexSearcher *searcher =
    9098        new lucene::search::IndexSearcher(path);
    9199
     
    132140: QCLuceneSearcher()
    133141{
    134     lucene::search::Searchable** list= 
     142    lucene::search::Searchable** list=
    135143        _CL_NEWARRAY(lucene::search::Searchable*, searchables.count());
    136144
     
    162170    if (searcher == 0)
    163171        return 0;
    164    
     172
    165173    return qint32(searcher->subDoc(int32_t(index)));
    166174}
     
    173181    if (searcher == 0)
    174182        return 0;
    175    
     183
    176184    return qint32(searcher->subSearcher(int32_t(index)));
    177185}
     
    184192    if (searcher == 0)
    185193        return 0;
    186    
     194
    187195    return qint32(searcher->searcherIndex(int32_t(index)));
    188196}
Note: See TracChangeset for help on using the changeset viewer.