31 #if QT_VERSION < 0x050000 32 #include <QDeclarativeContext> 33 #include <QDeclarativeEngine> 34 #include <QGraphicsObject> 36 #include <QQmlContext> 53 #if QT_VERSION < 0x050000 54 : QDeclarativeView (parent)
56 : QQuickWidget (parent)
68 qWarning () << Q_FUNC_INFO
74 setStyleSheet (
"background: transparent");
75 setWindowFlags (Qt::ToolTip);
76 setAttribute (Qt::WA_TranslucentBackground);
79 engine ()->addImportPath (cand);
81 rootContext ()->setContextProperty (
"unhideListModel", Model_);
82 rootContext ()->setContextProperty (
"colorProxy",
85 setSource (QUrl::fromLocalFile (file));
87 connect (rootObject (),
88 SIGNAL (closeRequested ()),
90 SLOT (deleteLater ()));
91 connect (rootObject (),
92 SIGNAL (itemUnhideRequested (QString)),
94 SIGNAL (itemUnhideRequested (QString)));
99 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.
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 * > &items)
Sets the items of the view model to items.
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.