31 #include <QQmlContext> 48 : QQuickWidget (parent)
59 qWarning () << Q_FUNC_INFO
65 setWindowFlags (Qt::ToolTip);
69 engine ()->addImportPath (cand);
71 rootContext ()->setContextProperty (
"unhideListModel",
Model_);
72 rootContext ()->setContextProperty (
"colorProxy",
75 setSource (QUrl::fromLocalFile (file));
77 connect (rootObject (),
78 SIGNAL (closeRequested ()),
80 SLOT (deleteLater ()));
81 connect (rootObject (),
89 Model_->invisibleRootItem ()->appendRows (items);
void itemUnhideRequested(const QString &itemId)
Emitted when an item with the given itemId is activated.
QString GetSysPath(SysPath path, const QString &suffix, const QString &filename)
Returns path to the file in the given root path and subfolder.
Allows to hide a widget or popup after mouse leave.
QStringList GetPathCandidates(SysPath path, QString suffix)
Returns possible full paths for the path and subfolder.
Provides icons from the current theme by their FDO name.
void SetItems(const QList< QStandardItem * > &items)
Sets the items of the view model to items.
void EnableTransparency(QQuickWidget *widget)
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
UnhideListModel *const Model_
Proxy for QML files to use colors from current color theme.
UnhideListViewBase(ICoreProxy_ptr proxy, const std::function< void(UnhideListModel *)> &modelFiller, QWidget *parent=nullptr)
Initializes the view and fills it with the items.
A model to be used with UnhideListViewBase.