diff options
author | saturneric <[email protected]> | 2025-01-21 20:25:28 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-01-21 20:25:28 +0000 |
commit | 348102421a436bf64f10bbfa721696992ef6bfc4 (patch) | |
tree | 31b8a8eb5b69a2db98280e5f30e3035e0d5df330 /src/ui/model/GpgKeyTableProxyModel.cpp | |
parent | refactor: using qt containers instead of std containers (diff) | |
parent | ts: correct Italian translation (diff) | |
download | GpgFrontend-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.cpp (renamed from src/core/model/GpgKeyTableProxyModel.cpp) | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/model/GpgKeyTableProxyModel.cpp b/src/ui/model/GpgKeyTableProxyModel.cpp index 9e23b707..9dc98bcd 100644 --- a/src/core/model/GpgKeyTableProxyModel.cpp +++ b/src/ui/model/GpgKeyTableProxyModel.cpp @@ -28,15 +28,13 @@ #include "GpgKeyTableProxyModel.h" -#include <utility> - #include "core/function/gpg/GpgKeyGetter.h" #include "core/model/CacheObject.h" #include "core/model/GpgKey.h" #include "core/struct/cache_object/AllFavoriteKeyPairsCO.h" #include "core/utils/GpgUtils.h" -namespace GpgFrontend { +namespace GpgFrontend::UI { GpgKeyTableProxyModel::GpgKeyTableProxyModel( QSharedPointer<GpgKeyTableModel> model, GpgKeyTableDisplayMode display_mode, @@ -45,7 +43,9 @@ GpgKeyTableProxyModel::GpgKeyTableProxyModel( model_(std::move(model)), display_mode_(display_mode), filter_columns_(columns), - custom_filter_(std::move(filter)) { + custom_filter_(std::move(filter)), + default_font_("Arial", 14), + default_metrics_(default_font_) { setSourceModel(model_.get()); connect(this, &GpgKeyTableProxyModel::SignalFavoritesChanged, this, @@ -197,4 +197,5 @@ void GpgKeyTableProxyModel::slot_update_favorites_cache() { favorite_key_ids_ = cache_obj.key_dbs[key_db_name].key_ids; } } -} // namespace GpgFrontend
\ No newline at end of file + +} // namespace GpgFrontend::UI
\ No newline at end of file |