summaryrefslogtreecommitdiffstats
path: root/searchdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchdialog.cpp')
-rw-r--r--searchdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/searchdialog.cpp b/searchdialog.cpp
index e30ead6..50109b9 100644
--- a/searchdialog.cpp
+++ b/searchdialog.cpp
@@ -17,6 +17,7 @@
#include "searchdialog.h"
#include "searchview.h"
#include "helper.h"
+#include "globals.h"
SearchDialog::SearchDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f){
//search bar
@@ -42,6 +43,7 @@ SearchDialog::SearchDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent,
QSortFilterProxyModel *resMProxy = new QSortFilterProxyModel;
resMProxy->setSourceModel(mResM);
mResV = new SearchView;
+ Globals::instance()->addView(mResV);
mResV->setModel(resMProxy);
connect(mResV->selectionModel(), &QItemSelectionModel::currentChanged, this, &SearchDialog::doResult);
QHBoxLayout *resGBL = new QHBoxLayout;
@@ -52,6 +54,7 @@ SearchDialog::SearchDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent,
QSortFilterProxyModel *dataMProxy = new QSortFilterProxyModel;
dataMProxy->setSourceModel(mDataM);
mDataV = new SearchView;
+ Globals::instance()->addView(mDataV);
mDataV->setModel(dataMProxy);
QHBoxLayout *dataGBL = new QHBoxLayout;
dataGBL->addWidget(mDataV);