Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/assistant/lib/qhelpengine.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    7676    QHelpEngineCorePrivate::init(collectionFile, helpEngineCore);
    7777
    78     contentModel = new QHelpContentModel(this);
    79     indexModel = new QHelpIndexModel(this);
    80 
    81     connect(helpEngineCore, SIGNAL(setupFinished()),
    82         this, SLOT(applyCurrentFilter()));
    83     connect(helpEngineCore, SIGNAL(currentFilterChanged(QString)),
    84         this, SLOT(applyCurrentFilter()));
    85 
     78    if (!contentModel)
     79        contentModel = new QHelpContentModel(this);
     80    if (!indexModel)
     81        indexModel = new QHelpIndexModel(this);
     82
     83    connect(helpEngineCore, SIGNAL(setupFinished()), this,
     84        SLOT(applyCurrentFilter()));
     85    connect(helpEngineCore, SIGNAL(currentFilterChanged(QString)), this,
     86        SLOT(applyCurrentFilter()));
    8687}
    8788
Note: See TracChangeset for help on using the changeset viewer.