mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 17:50:04 +00:00
Removing unused delegate from placefile settings widget
This commit is contained in:
parent
5d06f6bc21
commit
b3d75b10ca
1 changed files with 3 additions and 6 deletions
|
|
@ -4,7 +4,6 @@
|
||||||
#include <scwx/qt/manager/placefile_manager.hpp>
|
#include <scwx/qt/manager/placefile_manager.hpp>
|
||||||
#include <scwx/qt/model/placefile_model.hpp>
|
#include <scwx/qt/model/placefile_model.hpp>
|
||||||
#include <scwx/qt/types/qt_types.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/qt/ui/open_url_dialog.hpp>
|
||||||
#include <scwx/util/logger.hpp>
|
#include <scwx/util/logger.hpp>
|
||||||
|
|
||||||
|
|
@ -27,8 +26,7 @@ public:
|
||||||
self_ {self},
|
self_ {self},
|
||||||
openUrlDialog_ {new OpenUrlDialog(QObject::tr("Add Placefile"), self_)},
|
openUrlDialog_ {new OpenUrlDialog(QObject::tr("Add Placefile"), self_)},
|
||||||
placefileModel_ {new model::PlacefileModel(self_)},
|
placefileModel_ {new model::PlacefileModel(self_)},
|
||||||
placefileProxyModel_ {new QSortFilterProxyModel(self_)},
|
placefileProxyModel_ {new QSortFilterProxyModel(self_)}
|
||||||
leftElidedItemDelegate_ {new LeftElidedItemDelegate(self_)}
|
|
||||||
{
|
{
|
||||||
placefileProxyModel_->setSourceModel(placefileModel_);
|
placefileProxyModel_->setSourceModel(placefileModel_);
|
||||||
placefileProxyModel_->setSortRole(types::ItemDataRole::SortRole);
|
placefileProxyModel_->setSortRole(types::ItemDataRole::SortRole);
|
||||||
|
|
@ -48,7 +46,6 @@ public:
|
||||||
|
|
||||||
model::PlacefileModel* placefileModel_;
|
model::PlacefileModel* placefileModel_;
|
||||||
QSortFilterProxyModel* placefileProxyModel_;
|
QSortFilterProxyModel* placefileProxyModel_;
|
||||||
LeftElidedItemDelegate* leftElidedItemDelegate_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
PlacefileSettingsWidget::PlacefileSettingsWidget(QWidget* parent) :
|
PlacefileSettingsWidget::PlacefileSettingsWidget(QWidget* parent) :
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue