LeechCraft
0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
Toggle main menu visibility
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>
14
#include <
interfaces/core/icoreproxy.h
>
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
:
40
UnhideListModel
*
const
Model_
;
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
}
LC::Util::UnhideListModel
A model to be used with UnhideListViewBase.
Definition
unhidelistmodel.h:27
LC::Util::UnhideListViewBase::UnhideListViewBase
UnhideListViewBase(const ICoreProxy_ptr &proxy, const std::function< void(UnhideListModel *)> &modelFiller, QWidget *parent=nullptr)
Initializes the view and fills it with the items.
Definition
unhidelistviewbase.cpp:22
LC::Util::UnhideListViewBase::itemUnhideRequested
void itemUnhideRequested(const QString &itemId)
Emitted when an item with the given itemId is activated.
LC::Util::UnhideListViewBase::Model_
UnhideListModel *const Model_
Definition
unhidelistviewbase.h:40
LC::Util::UnhideListViewBase::SetItems
void SetItems(const QList< QStandardItem * > &items)
Sets the items of the view model to items.
Definition
unhidelistviewbase.cpp:63
QList
Definition
ianrulesstorage.h:14
icoreproxy.h
ICoreProxy_ptr
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition
icoreproxy.h:177
LC::Util
Definition
icoreproxy.h:34
qmlconfig.h
UTIL_QML_API
#define UTIL_QML_API
Definition
qmlconfig.h:16
src
util
qml
unhidelistviewbase.h
Generated by
1.17.0