73 void QHelpEnginePrivate::init(const QString &collectionFile, |
73 void QHelpEnginePrivate::init(const QString &collectionFile, |
74 QHelpEngineCore *helpEngineCore) |
74 QHelpEngineCore *helpEngineCore) |
75 { |
75 { |
76 QHelpEngineCorePrivate::init(collectionFile, helpEngineCore); |
76 QHelpEngineCorePrivate::init(collectionFile, helpEngineCore); |
77 |
77 |
78 contentModel = new QHelpContentModel(this); |
78 if (!contentModel) |
79 indexModel = new QHelpIndexModel(this); |
79 contentModel = new QHelpContentModel(this); |
80 |
80 if (!indexModel) |
81 connect(helpEngineCore, SIGNAL(setupFinished()), |
81 indexModel = new QHelpIndexModel(this); |
82 this, SLOT(applyCurrentFilter())); |
82 |
83 connect(helpEngineCore, SIGNAL(currentFilterChanged(QString)), |
83 connect(helpEngineCore, SIGNAL(setupFinished()), this, |
84 this, SLOT(applyCurrentFilter())); |
84 SLOT(applyCurrentFilter())); |
85 |
85 connect(helpEngineCore, SIGNAL(currentFilterChanged(QString)), this, |
|
86 SLOT(applyCurrentFilter())); |
86 } |
87 } |
87 |
88 |
88 void QHelpEnginePrivate::applyCurrentFilter() |
89 void QHelpEnginePrivate::applyCurrentFilter() |
89 { |
90 { |
90 if (!error.isEmpty()) |
91 if (!error.isEmpty()) |