LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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 
17 class QStandardItem;
18 
19 namespace LC::Util
20 {
21  class UnhideListModel;
22 
36  class UTIL_QML_API UnhideListViewBase : public QQuickWidget
37  {
38  Q_OBJECT
39  protected:
41  public:
59  UnhideListViewBase (const ICoreProxy_ptr& proxy,
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 }
QList
Definition: ianrulesstorage.h:14
icoreproxy.h
LC::Util
Definition: icoreproxy.h:33
qmlconfig.h
ICoreProxy_ptr
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition: icoreproxy.h:181
LC::Util::UnhideListViewBase::Model_
UnhideListModel *const Model_
Definition: unhidelistviewbase.h:40
UTIL_QML_API
#define UTIL_QML_API
Definition: qmlconfig.h:16
LC::Util::UnhideListViewBase
Base class for a view of a list of items to be unclosed.
Definition: unhidelistviewbase.h:36
LC::Util::UnhideListModel
A model to be used with UnhideListViewBase.
Definition: unhidelistmodel.h:32