diff options
author | saturneric <[email protected]> | 2025-04-16 18:05:00 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-16 18:05:00 +0000 |
commit | 272cf34f21ab1741d24673a7e3b7c95567a74cec (patch) | |
tree | 4497435e41a8bbdd7560cee57b2c8c4171099951 /src/ui/widgets/KeyTreeView.cpp | |
parent | fix: found bugs (diff) | |
download | GpgFrontend-272cf34f21ab1741d24673a7e3b7c95567a74cec.tar.gz GpgFrontend-272cf34f21ab1741d24673a7e3b7c95567a74cec.zip |
fix: testing and solve bugs found
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/KeyTreeView.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ui/widgets/KeyTreeView.cpp b/src/ui/widgets/KeyTreeView.cpp index 46cfa2db..a6fb23bf 100644 --- a/src/ui/widgets/KeyTreeView.cpp +++ b/src/ui/widgets/KeyTreeView.cpp @@ -28,9 +28,7 @@ #include "ui/widgets/KeyTreeView.h" -#include <utility> - -#include "core/function/gpg/GpgKeyGetter.h" +#include "core/function/gpg/GpgAbstractKeyGetter.h" #include "ui/UISignalStation.h" #include "ui/UserInterfaceUtils.h" #include "ui/model/GpgKeyTreeProxyModel.h" @@ -41,7 +39,7 @@ KeyTreeView::KeyTreeView(QWidget* parent) : QTreeView(parent), channel_(kGpgFrontendDefaultChannel), model_(QSharedPointer<GpgKeyTreeModel>::create( - channel_, GpgKeyGetter::GetInstance(channel_).FetchKey(), + channel_, GpgAbstractKeyGetter::GetInstance(channel_).Fetch(), [](auto) { return false; }, this)), proxy_model_( model_, GpgKeyTreeDisplayMode::kALL, [](auto) { return false; }, @@ -56,7 +54,7 @@ KeyTreeView::KeyTreeView(int channel, : QTreeView(parent), channel_(channel), model_(QSharedPointer<GpgKeyTreeModel>::create( - channel_, GpgKeyGetter::GetInstance(channel_).FetchKey(), + channel_, GpgAbstractKeyGetter::GetInstance(channel_).Fetch(), checkable_detector, this)), proxy_model_(model_, GpgKeyTreeDisplayMode::kALL, std::move(filter), this) { @@ -120,7 +118,7 @@ void KeyTreeView::init() { connect(UISignalStation::GetInstance(), &UISignalStation::SignalKeyDatabaseRefresh, this, [=] { model_ = QSharedPointer<GpgKeyTreeModel>::create( - channel_, GpgKeyGetter::GetInstance(channel_).FetchKey(), + channel_, GpgAbstractKeyGetter::GetInstance(channel_).Fetch(), [](auto) { return false; }, this); proxy_model_.setSourceModel(model_.get()); proxy_model_.invalidate(); @@ -138,7 +136,7 @@ void KeyTreeView::SetChannel(int channel) { channel_ = channel; init_ = false; model_ = QSharedPointer<GpgKeyTreeModel>::create( - channel_, GpgKeyGetter::GetInstance(channel_).FetchKey(), + channel_, GpgAbstractKeyGetter::GetInstance(channel_).Fetch(), [](auto) { return false; }, this); proxy_model_.setSourceModel(model_.get()); proxy_model_.invalidate(); |