LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
unhidelistviewbase.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <functional>
12#include <QList>
13#include <QQuickWidget>
15#include "qmlconfig.h"
16
17class QStandardItem;
18
19namespace LC::Util
20{
21 class UnhideListModel;
22
36 class UTIL_QML_API UnhideListViewBase : public QQuickWidget
37 {
38 Q_OBJECT
39 protected:
41 public:
60 const std::function<void (UnhideListModel*)>& modelFiller,
61 QWidget *parent = nullptr);
62
78 void SetItems (const QList<QStandardItem*>& items);
79 signals:
88 void itemUnhideRequested (const QString& itemId);
89 };
90}
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.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition icoreproxy.h:181
#define UTIL_QML_API
Definition qmlconfig.h:16