Removing unused delegate from placefile settings widget

This commit is contained in:
Dan Paulat 2023-10-16 22:30:00 -05:00
parent 5d06f6bc21
commit b3d75b10ca

View file

@ -4,7 +4,6 @@
#include <scwx/qt/manager/placefile_manager.hpp>
#include <scwx/qt/model/placefile_model.hpp>
#include <scwx/qt/types/qt_types.hpp>
#include <scwx/qt/ui/left_elided_item_delegate.hpp>
#include <scwx/qt/ui/open_url_dialog.hpp>
#include <scwx/util/logger.hpp>
@ -27,8 +26,7 @@ public:
self_ {self},
openUrlDialog_ {new OpenUrlDialog(QObject::tr("Add Placefile"), self_)},
placefileModel_ {new model::PlacefileModel(self_)},
placefileProxyModel_ {new QSortFilterProxyModel(self_)},
leftElidedItemDelegate_ {new LeftElidedItemDelegate(self_)}
placefileProxyModel_ {new QSortFilterProxyModel(self_)}
{
placefileProxyModel_->setSourceModel(placefileModel_);
placefileProxyModel_->setSortRole(types::ItemDataRole::SortRole);
@ -46,9 +44,8 @@ public:
std::shared_ptr<manager::PlacefileManager> placefileManager_ {
manager::PlacefileManager::Instance()};
model::PlacefileModel* placefileModel_;
QSortFilterProxyModel* placefileProxyModel_;
LeftElidedItemDelegate* leftElidedItemDelegate_;
model::PlacefileModel* placefileModel_;
QSortFilterProxyModel* placefileProxyModel_;
};
PlacefileSettingsWidget::PlacefileSettingsWidget(QWidget* parent) :