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:
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
Definition: GlobalRegisterTable.cpp:150
Definition: GlobalRegisterTableTreeModel.h:35
Definition: GlobalRegisterTable.h:43
Definition: Event.cpp:33