31 #include <QDeclarativeContext>
32 #include <QDeclarativeEngine>
33 #include <QGraphicsObject>
46 : QDeclarativeView (parent)
54 qWarning () << Q_FUNC_INFO
60 setStyleSheet (
"background: transparent");
61 setWindowFlags (Qt::ToolTip);
62 setAttribute (Qt::WA_TranslucentBackground);
65 engine ()->addImportPath (cand);
67 rootContext ()->setContextProperty (
"unhideListModel",
Model_);
68 rootContext ()->setContextProperty (
"colorProxy",
71 setSource (QUrl::fromLocalFile (file));
73 connect (rootObject (),
74 SIGNAL (closeRequested ()),
76 SLOT (deleteLater ()));
77 connect (rootObject (),
85 Model_->invisibleRootItem ()->appendRows (items);
QStringList GetPathCandidates(SysPath path, QString suffix)
Returns possible full paths for the path and subfolder.
QString GetSysPath(SysPath path, const QString &suffix, const QString &filename)
Returns path to the file in the given root path and subfolder.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Allows to hide a widget or popup after mouse leave.
Provides icons from the current theme by their FDO name.
void SetItems(const QList< QStandardItem * > &)
UnhideListViewBase(ICoreProxy_ptr, QWidget *=0)
Proxy for QML files to use colors from current color theme.
void itemUnhideRequested(const QString &)
QStandardItemModel * Model_