31 #if QT_VERSION < 0x050000
32 #include <QDeclarativeContext>
33 #include <QDeclarativeEngine>
34 #include <QGraphicsObject>
36 #include <QQmlContext>
52 const std::function<
void (QStandardItemModel*)>& filler, QWidget *
parent)
53 #if QT_VERSION < 0x050000
54 : QDeclarativeView (parent)
56 : QQuickWidget (parent)
67 qWarning () << Q_FUNC_INFO
73 setStyleSheet (
"background: transparent");
74 setWindowFlags (Qt::ToolTip);
75 setAttribute (Qt::WA_TranslucentBackground);
78 engine ()->addImportPath (cand);
80 rootContext ()->setContextProperty (
"unhideListModel", Model_);
81 rootContext ()->setContextProperty (
"colorProxy",
84 setSource (QUrl::fromLocalFile (file));
86 connect (rootObject (),
87 SIGNAL (closeRequested ()),
89 SLOT (deleteLater ()));
90 connect (rootObject (),
91 SIGNAL (itemUnhideRequested (QString)),
93 SIGNAL (itemUnhideRequested (QString)));
98 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 * > &)
Proxy for QML files to use colors from current color theme.
UnhideListViewBase(ICoreProxy_ptr, const std::function< void(QStandardItemModel *)> &modelFiller, QWidget *=0)
A model suitable to be used with UnhideListViewBase.
QStandardItemModel * Model_