GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GlobalRegisterTableTreeModel.h
1
29
#pragma once
30
31
#include "core/module/GlobalRegisterTable.h"
32
33
namespace
GpgFrontend::Module
{
34
class
GPGFRONTEND_CORE_EXPORT
GlobalRegisterTableTreeModel
35
:
public
QAbstractItemModel {
36
public
:
37
explicit
GlobalRegisterTableTreeModel
(
GlobalRegisterTable
*grt);
38
39
[[nodiscard]]
auto
rowCount(
const
QModelIndex &parent)
const
->
int
override
;
40
41
[[nodiscard]]
auto
columnCount(
const
QModelIndex &parent)
const
42
->
int
override
;
43
44
[[nodiscard]]
auto
data(
const
QModelIndex &index,
int
role)
const
45
-> QVariant
override
;
46
47
[[nodiscard]]
auto
index(
int
row,
int
column,
const
QModelIndex &parent)
const
48
-> QModelIndex
override
;
49
50
[[nodiscard]]
auto
parent(
const
QModelIndex &index)
const
51
-> QModelIndex
override
;
52
53
[[nodiscard]]
auto
headerData(
int
section, Qt::Orientation orientation,
54
int
role)
const
-> QVariant
override
;
55
56
private
:
57
class
Impl
;
58
SecureUniquePtr<Impl> p_;
59
};
60
61
};
// namespace GpgFrontend::Module
GpgFrontend::Module::GlobalRegisterTableTreeModel::Impl
Definition:
GlobalRegisterTable.cpp:150
GpgFrontend::Module::GlobalRegisterTableTreeModel
Definition:
GlobalRegisterTableTreeModel.h:35
GpgFrontend::Module::GlobalRegisterTable
Definition:
GlobalRegisterTable.h:43
GpgFrontend::Module
Definition:
Event.cpp:33
src
core
module
GlobalRegisterTableTreeModel.h
Generated by
1.9.1