forked from qt-creator/qt-creator
Help: De-duplicate management of help viewer pages
For the help mode, the help viewer pages were managed both by the OpenPagesModel and the HelpWidget, and needed manual keeping in sync. Instead make the model just an aspect of the HelpWidget, manage creation/deletion of pages via the HelpWidget, and use the model only for the pure MVC API purposes. Task-number: QTCREATORBUG-20558 Change-Id: Ib7d6f2561239b0d5f3328dfd30c84718f81af0a1 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
#include "helpviewer.h"
|
||||
#include "localhelpmanager.h"
|
||||
#include "openpagesmanager.h"
|
||||
#include "openpagesmodel.h"
|
||||
#include "remotehelpfilter.h"
|
||||
#include "searchwidget.h"
|
||||
#include "searchtaskhandler.h"
|
||||
@@ -166,7 +165,6 @@ public:
|
||||
|
||||
bool m_setupNeeded = true;
|
||||
LocalHelpManager m_localHelpManager;
|
||||
OpenPagesManager m_openPagesManager;
|
||||
|
||||
QPointer<HelpWidget> m_externalWindow;
|
||||
QRect m_externalWindowState;
|
||||
|
||||
Reference in New Issue
Block a user