diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-04 19:41:47 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-04 19:41:47 +0100 |
| commit | faa4ae34263f79a44a341afb76b688d796ffd301 (patch) | |
| tree | 9545d54a389379fa0f952042884d325d68e84354 /src | |
| parent | b242394c0f9c24ca8f9bbced44076abbcd274fee (diff) | |
Remove useless QObject:: accessor.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modlistview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modlistview.cpp b/src/modlistview.cpp index 67dc1c02..05809a81 100644 --- a/src/modlistview.cpp +++ b/src/modlistview.cpp @@ -702,16 +702,16 @@ void ModListView::setup(OrganizerCore& core, CategoryFactory& factory, MainWindo m_byPriorityProxy = new ModListByPriorityProxy(core.currentProfile(), core, this);
m_byCategoryProxy = new QtGroupingProxy(QModelIndex(), ModList::COL_CATEGORY, ModList::GroupingRole, 0, ModList::AggrRole);
- m_byNexusIdProxy = new QtGroupingProxy(QModelIndex(), ModList::COL_MODID,
- ModList::GroupingRole, QtGroupingProxy::FLAG_NOGROUPNAME | QtGroupingProxy::FLAG_NOSINGLE, ModList::AggrRole);
+ m_byNexusIdProxy = new QtGroupingProxy(QModelIndex(), ModList::COL_MODID, ModList::GroupingRole,
+ QtGroupingProxy::FLAG_NOGROUPNAME | QtGroupingProxy::FLAG_NOSINGLE, ModList::AggrRole);
- QObject::connect(this, &QTreeView::expanded, [=](const QModelIndex& index) {
+ connect(this, &QTreeView::expanded, [=](const QModelIndex& index) {
auto it = m_collapsed[m_sortProxy->sourceModel()].find(index.data(Qt::DisplayRole).toString());
if (it != m_collapsed[m_sortProxy->sourceModel()].end()) {
m_collapsed[m_sortProxy->sourceModel()].erase(it);
}
});
- QObject::connect(this, &QTreeView::collapsed, [=](const QModelIndex& index) {
+ connect(this, &QTreeView::collapsed, [=](const QModelIndex& index) {
m_collapsed[m_sortProxy->sourceModel()].insert(index.data(Qt::DisplayRole).toString());
});
|
