aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/model/GpgKeyTableProxyModel.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-01-21 20:25:28 +0000
committersaturneric <[email protected]>2025-01-21 20:25:28 +0000
commit348102421a436bf64f10bbfa721696992ef6bfc4 (patch)
tree31b8a8eb5b69a2db98280e5f30e3035e0d5df330 /src/ui/model/GpgKeyTableProxyModel.h
parentrefactor: using qt containers instead of std containers (diff)
parentts: correct Italian translation (diff)
downloadGpgFrontend-348102421a436bf64f10bbfa721696992ef6bfc4.tar.gz
GpgFrontend-348102421a436bf64f10bbfa721696992ef6bfc4.zip
Merge branch 'develop' into dev/2.1.6/main
Diffstat (limited to '')
-rw-r--r--src/ui/model/GpgKeyTableProxyModel.h (renamed from src/core/model/GpgKeyTableProxyModel.h)13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/model/GpgKeyTableProxyModel.h b/src/ui/model/GpgKeyTableProxyModel.h
index 573d938b..dd086ba9 100644
--- a/src/core/model/GpgKeyTableProxyModel.h
+++ b/src/ui/model/GpgKeyTableProxyModel.h
@@ -28,14 +28,14 @@
#pragma once
-#include <utility>
+#include <QFont>
+#include <QFontMetrics>
#include "core/model/GpgKeyTableModel.h"
-namespace GpgFrontend {
+namespace GpgFrontend::UI {
-class GPGFRONTEND_CORE_EXPORT GpgKeyTableProxyModel
- : public QSortFilterProxyModel {
+class GpgKeyTableProxyModel : public QSortFilterProxyModel {
Q_OBJECT
public:
using KeyFilter = std::function<bool(const GpgKey &)>;
@@ -97,6 +97,9 @@ class GPGFRONTEND_CORE_EXPORT GpgKeyTableProxyModel
QString filter_keywords_;
QList<QString> favorite_key_ids_;
KeyFilter custom_filter_;
+
+ QFont default_font_;
+ QFontMetrics default_metrics_;
};
-} // namespace GpgFrontend \ No newline at end of file
+} // namespace GpgFrontend::UI \ No newline at end of file