10 #include <QQmlContext>
23 const std::function<
void (UnhideListModel*)>& filler, QWidget *parent)
24 : QQuickWidget (parent)
25 , Model_ (new UnhideListModel (this))
27 new UnhoverDeleteMixin (
this);
32 const auto& file =
GetSysPath (
SysPath::QML, QStringLiteral (
"common"), QStringLiteral (
"UnhideListView.qml"));
35 qWarning () << Q_FUNC_INFO
41 setWindowFlags (Qt::ToolTip);
45 engine ()->addImportPath (cand);
47 rootContext ()->setContextProperty (QStringLiteral (
"unhideListModel"), Model_);
48 rootContext ()->setContextProperty (QStringLiteral (
"colorProxy"),
51 setSource (QUrl::fromLocalFile (file));
53 connect (rootObject (),
54 SIGNAL (closeRequested ()),
56 SLOT (deleteLater ()));
57 connect (rootObject (),
58 SIGNAL (itemUnhideRequested (QString)),
60 SIGNAL (itemUnhideRequested (QString)));
65 Model_->invisibleRootItem ()->appendRows (items);