Help: Do not use specific model where abstract model is enough

Change-Id: I1cbdd5d3ce1cf4735cff8bdfa71ea336a507c28a
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2019-09-02 14:03:05 +02:00
parent 758986ea0e
commit 142fa65ce1
4 changed files with 9 additions and 11 deletions

View File

@@ -26,7 +26,6 @@
#include "openpagesswitcher.h"
#include "centralwidget.h"
#include "openpagesmodel.h"
#include "openpageswidget.h"
#include <utils/hostosinfo.h>
@@ -41,7 +40,7 @@ using namespace Help::Internal;
const int gWidth = 300;
const int gHeight = 200;
OpenPagesSwitcher::OpenPagesSwitcher(OpenPagesModel *model)
OpenPagesSwitcher::OpenPagesSwitcher(QAbstractItemModel *model)
: QFrame(nullptr, Qt::Popup)
, m_openPagesModel(model)
{