24 : QQuickWidget (parent)
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 (),
65 Model_->invisibleRootItem ()->appendRows (items);
Proxy for QML files to use colors from current color theme.
Provides icons from the current theme by their FDO name.
A model to be used with UnhideListViewBase.
UnhideListViewBase(const ICoreProxy_ptr &proxy, const std::function< void(UnhideListModel *)> &modelFiller, QWidget *parent=nullptr)
Initializes the view and fills it with the items.
void itemUnhideRequested(const QString &itemId)
Emitted when an item with the given itemId is activated.
UnhideListModel *const Model_
void SetItems(const QList< QStandardItem * > &items)
Sets the items of the view model to items.
Allows to hide a widget or popup after mouse leave.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
QString GetSysPath(SysPath path, const QString &suffix, const QString &filename)
Returns path to the file in the given root path and subfolder.
QStringList GetPathCandidates(SysPath path, QString suffix)
Returns possible full paths for the path and subfolder.
void EnableTransparency(QQuickWidget *widget)
@ QML
Root path for QML files.