Debian Codegraph @

src/librssguard/gui/feedsview.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/feedsview.cpp`/
2
3 #include "gui/feedsview.h"cxx . . $ `<file>/src/librssguard/gui/feedsview.h`/
4
5 #include "3rd-party/boolinq/boolinq.h"cxx . . $ `<file>/src/librssguard/3rd-party/boolinq/boolinq.h`/
6 #include "core/feedsmodel.h"cxx . . $ `<file>/src/librssguard/core/feedsmodel.h`/
7 #include "core/feedsproxymodel.h"cxx . . $ `<file>/src/librssguard/core/feedsproxymodel.h`/
8 #include "definitions/definitions.h"cxx . . $ `<file>/src/librssguard/definitions/definitions.h`/
9 #include "gui/dialogs/formmain.h"cxx . . $ `<file>/src/librssguard/gui/dialogs/formmain.h`/
10 #include "gui/messagebox.h"cxx . . $ `<file>/src/librssguard/gui/messagebox.h`/
11 #include "gui/reusable/styleditemdelegatewithoutfocus.h"cxx . . $ `<file>/src/librssguard/gui/reusable/styleditemdelegatewithoutfocus.h`/
12 #include "miscellaneous/feedreader.h"cxx . . $ `<file>/src/librssguard/miscellaneous/feedreader.h`/
13 #include "miscellaneous/mutex.h"cxx . . $ `<file>/src/librssguard/miscellaneous/mutex.h`/
14 #include "miscellaneous/settings.h"cxx . . $ `<file>/src/librssguard/miscellaneous/settings.h`/
15 #include "miscellaneous/textfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/textfactory.h`/
16 #include "services/abstract/feed.h"cxx . . $ `<file>/src/librssguard/services/abstract/feed.h`/
17 #include "services/abstract/gui/formaccountdetails.h"cxx . . $ `<file>/src/librssguard/services/abstract/gui/formaccountdetails.h`/
18 #include "services/abstract/rootitem.h"cxx . . $ `<file>/src/librssguard/services/abstract/rootitem.h`/
19 #include "services/abstract/serviceroot.h"cxx . . $ `<file>/src/librssguard/services/abstract/serviceroot.h`/
20
21 #include <algorithm>
22
23 #include <QClipboard>
24 #include <QContextMenuEvent>
25 #include <QHeaderView>
26 #include <QMenu>
27 #include <QPainter>
28 #include <QPointer>
29 #include <QTimer>
30
31 FeedsViewcxx . . $ FeedsView#::FeedsViewcxx . . $ FeedsView#FeedsView(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent)
32 : BaseTreeViewcxx . . $ BaseTreeView#(parent), m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.(nullptr), m_contextMenuBincxx . . $ FeedsView#m_contextMenuBin.(nullptr), m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.(nullptr),
33 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.(nullptr), m_contextMenuImportantcxx . . $ FeedsView#m_contextMenuImportant.(nullptr), m_contextMenuEmptySpacecxx . . $ FeedsView#m_contextMenuEmptySpace.(nullptr),
34 m_contextMenuOtherItemscxx . . $ FeedsView#m_contextMenuOtherItems.(nullptr), m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.(nullptr), m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.(nullptr),
35 m_dontSaveExpandStatecxx . . $ FeedsView#m_dontSaveExpandState.(false) {
36 setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("FeedsView"));
37
38 // Allocate models.
39 m_sourceModelcxx . . $ FeedsView#m_sourceModel. = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedReadercxx . . $ Application#feedReader(db5fdbb995cddeff).()->feedsModelcxx . . $ FeedReader#feedsModel(9c5c1ec683fc5474).();
40 m_proxyModelcxx . . $ FeedsView#m_proxyModel. = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedReadercxx . . $ Application#feedReader(db5fdbb995cddeff).()->feedsProxyModelcxx . . $ FeedReader#feedsProxyModel(aa0a69121a5188fa).();
41
42 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setViewcxx . . $ FeedsProxyModel#setView(7c40662b447f73ea).(this);
43
44 // Connections.
45 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(&m_expansionDelayercxx . . $ FeedsView#m_expansionDelayer., &QTimercxx . . $ QTimer#::timeoutcxx . . $ QTimer#timeout(32604d697c0ceadc)., this, &FeedsViewcxx . . $ FeedsView#::reloadDelayedExpansionscxx . . $ FeedsView#reloadDelayedExpansions(49f6e7a06ebc5aa8).);
46 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_sourceModelcxx . . $ FeedsView#m_sourceModel., &FeedsModelcxx . . $ FeedsModel#::itemExpandRequestedcxx . . $ FeedsModel#itemExpandRequested(ec1fe1f905b4f8b2)., this, &FeedsViewcxx . . $ FeedsView#::onItemExpandRequestedcxx . . $ FeedsView#onItemExpandRequested(8e785c59da43649).);
47 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_sourceModelcxx . . $ FeedsView#m_sourceModel., &FeedsModelcxx . . $ FeedsModel#::itemExpandStateSaveRequestedcxx . . $ FeedsModel#itemExpandStateSaveRequested(cb16baca005cfe86)., this, &FeedsViewcxx . . $ FeedsView#::onItemExpandStateSaveRequestedcxx . . $ FeedsView#onItemExpandStateSaveRequested(cb16baca005cfe86).);
48 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).(), &QHeaderViewcxx . . $ QHeaderView#::sortIndicatorChangedcxx . . $ QHeaderView#sortIndicatorChanged(11168df8d4e8286d)., this, &FeedsViewcxx . . $ FeedsView#::saveSortStatecxx . . $ FeedsView#saveSortState(11168df8d4e8286d).);
49 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.,
50 &FeedsProxyModelcxx . . $ FeedsProxyModel#::requireItemValidationAfterDragDropcxx . . $ FeedsProxyModel#requireItemValidationAfterDragDrop(87a6de385263c395).,
51 this,
52 &FeedsViewcxx . . $ FeedsView#::validateItemAfterDragDropcxx . . $ FeedsView#validateItemAfterDragDrop(87a6de385263c395).);
53 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_proxyModelcxx . . $ FeedsView#m_proxyModel., &FeedsProxyModelcxx . . $ FeedsProxyModel#::indexNotFilteredOutAnymorecxx . . $ FeedsProxyModel#indexNotFilteredOutAnymore(1ffafa588cd53a0f)., this, &FeedsViewcxx . . $ FeedsView#::reloadItemExpandStatecxx . . $ FeedsView#reloadItemExpandState(87a6de385263c395).);
54 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this, &FeedsViewcxx . . $ FeedsView#::expandedcxx . . $ QTreeView#expanded(87a6de385263c395)., this, &FeedsViewcxx . . $ FeedsView#::onIndexExpandedcxx . . $ FeedsView#onIndexExpanded(87a6de385263c395).);
55 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this, &FeedsViewcxx . . $ FeedsView#::collapsedcxx . . $ QTreeView#collapsed(87a6de385263c395)., this, &FeedsViewcxx . . $ FeedsView#::onIndexCollapsedcxx . . $ FeedsView#onIndexCollapsed(87a6de385263c395).);
56
57 setModelcxx . . $ QTreeView#setModel(c6e1f1e42522b780).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.);
58 setupAppearancecxx . . $ FeedsView#setupAppearance(49f6e7a06ebc5aa8).();
59 }
60
61 FeedsViewcxx . . $ FeedsView#::~cxx . . $ FeedsView#`~FeedsView`(ced63f7c635d850d).FeedsViewcxx . . $ FeedsView#() {
62 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Destroying FeedsView instance.";
63 }
64
65 void FeedsViewcxx . . $ FeedsView#::reloadFontSettingscxx . . $ FeedsView#reloadFontSettings(49f6e7a06ebc5aa8).() {
66 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->setupFontscxx . . $ FeedsModel#setupFonts(49f6e7a06ebc5aa8).();
67 }
68
69 void FeedsViewcxx . . $ FeedsView#::setSortingEnabledcxx . . $ FeedsView#setSortingEnabled(b45ddcbc8423892c).(bool enable) {
70 disconnectcxx . . $ QObject#disconnect(bacd0f9184cd8ee1).(headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).(), &QHeaderViewcxx . . $ QHeaderView#::sortIndicatorChangedcxx . . $ QHeaderView#sortIndicatorChanged(11168df8d4e8286d)., this, &FeedsViewcxx . . $ FeedsView#::saveSortStatecxx . . $ FeedsView#saveSortState(11168df8d4e8286d).);
71 QTreeViewcxx . . $ QTreeView#::setSortingEnabledcxx . . $ QTreeView#setSortingEnabled(b45ddcbc8423892c).(enable);
72 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).(), &QHeaderViewcxx . . $ QHeaderView#::sortIndicatorChangedcxx . . $ QHeaderView#sortIndicatorChanged(11168df8d4e8286d)., this, &FeedsViewcxx . . $ FeedsView#::saveSortStatecxx . . $ FeedsView#saveSortState(11168df8d4e8286d).);
73 }
74
75 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> FeedsViewcxx . . $ FeedsView#::selectedFeedscxx . . $ FeedsView#selectedFeeds(7d493c88c85a9a14).(bool recursive) const {
76 auto its = selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).();
77 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> feedscxx . . $ QList#QList(ced63f7c635d850d).;
78
79 for (RootItemcxx . . $ RootItem#* it : its) {
80 feeds.appendcxx . . $ QList#append(b1a5d2b9a710f6d1).(it->getSubTreeFeedscxx . . $ RootItem#getSubTreeFeeds(7d493c88c85a9a14).(recursive));
81 }
82
83 auto std_feeds = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(feeds).distinctcxx . . $ boolinq/Linq#distinct(58d30379f29c1b96).().toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
84
85 return FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<Feed*>, std_feeds);
86 }
87
88 RootItemcxx . . $ RootItem#* FeedsViewcxx . . $ FeedsView#::selectedItemcxx . . $ FeedsView#selectedItem(e4f4b13bf6686a09).() const {
89 const QModelIndexListcxx . . $ QModelIndexList# selected_rows = selectionModelcxx . . $ QAbstractItemView#selectionModel(cc7a226abaf79c2f).()->selectedRowscxx . . $ QItemSelectionModel#selectedRows(27eb35e7288f0b15).();
90 const QModelIndexcxx . . $ QModelIndex# current_row = currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).();
91
92 if (selected_rows.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
93 return nullptr;
94 }
95 else {
96 RootItemcxx . . $ RootItem#* selected_item = m_sourceModelcxx . . $ FeedsView#m_sourceModel.->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapToSourcecxx . . $ QSortFilterProxyModel#mapToSource(f800c6f2fa4cbe57).(selected_rows.atcxx . . $ QList#at(c7965f769b39929).(0)));
97
98 if (selected_rows.sizecxx . . $ QList#size(6b0412d51016192f).() == 1) {
99 return selected_item;
100 }
101
102 auto selected_items = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(selected_rows)
103 .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([this](const QModelIndexcxx . . $ QModelIndex#& idx) {
104 return m_sourceModelcxx . . $ FeedsView#m_sourceModel.->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapToSourcecxx . . $ QSortFilterProxyModel#mapToSource(f800c6f2fa4cbe57).(idx));
105 })
106 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
107
108 RootItemcxx . . $ RootItem#* current_item = m_sourceModelcxx . . $ FeedsView#m_sourceModel.->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapToSourcecxx . . $ QSortFilterProxyModel#mapToSource(f800c6f2fa4cbe57).(current_row));
109
110 if (stdcxx . . $ std/::findcxx . . $ std/find(a92da12e15934614).(selected_items.begincxx . . $ std/__cxx11/list#begin(57ce810e58fbcab0).(), selected_items.endcxx . . $ std/__cxx11/list#end(57ce810e58fbcab0).(), current_item) !=cxx . . $ std/`operator!=`(2ff7fa6cf5bdfcad). selected_items.endcxx . . $ std/__cxx11/list#end(57ce810e58fbcab0).()) {
111 return current_item;
112 }
113 else {
114 return selected_items.frontcxx . . $ std/__cxx11/list#front(d5f1ba0ed5a2655c).();
115 }
116 }
117 }
118
119 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> FeedsViewcxx . . $ FeedsView#::selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).() const {
120 const QModelIndexListcxx . . $ QModelIndexList# selected_rows = selectionModelcxx . . $ QAbstractItemView#selectionModel(cc7a226abaf79c2f).()->selectedRowscxx . . $ QItemSelectionModel#selectedRows(27eb35e7288f0b15).();
121
122 auto selected_items = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(selected_rows)
123 .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([this](const QModelIndexcxx . . $ QModelIndex#& idx) {
124 return m_sourceModelcxx . . $ FeedsView#m_sourceModel.->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapToSourcecxx . . $ QSortFilterProxyModel#mapToSource(f800c6f2fa4cbe57).(idx));
125 })
126 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
127
128 return FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<RootItem*>, selected_items);
129 }
130
131 void FeedsViewcxx . . $ FeedsView#::copyUrlOfSelectedFeedscxx . . $ FeedsView#copyUrlOfSelectedFeeds(83f5f38750778ac8).() const {
132 auto feeds = selectedFeedscxx . . $ FeedsView#selectedFeeds(7d493c88c85a9a14).(true);
133 QStringListcxx . . $ QStringList# urlscxx . . $ QList#QList(ced63f7c635d850d).;
134
135 for (const auto* feed : feeds) {
136 if (!feed->sourcecxx . . $ Feed#source(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
137 urls <<cxx . . $ QList#`operator<<`(457f2c2a0db63381). feed->sourcecxx . . $ Feed#source(6ef7b6c27b00b43d).();
138 }
139 }
140
141 if (QGuiApplicationcxx . . $ QGuiApplication#::clipboardcxx . . $ QGuiApplication#clipboard(a5a00f8d44f5ac9e).() != nullptr && !urls.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
142 QGuiApplicationcxx . . $ QGuiApplication#::clipboardcxx . . $ QGuiApplication#clipboard(a5a00f8d44f5ac9e).()->setTextcxx . . $ QClipboard#setText(9f492b8a441aa8de).(urls.joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).(TextFactorycxx . . $ TextFactory#::newlinecxx . . $ TextFactory#newline(4365c3963150523e).()), QClipboardcxx . . $ QClipboard#::Modecxx . . $ QClipboard#Mode#::Clipboardcxx . . $ QClipboard#Clipboard.);
143 }
144 }
145
146 void FeedsViewcxx . . $ FeedsView#::sortByColumncxx . . $ FeedsView#sortByColumn(11168df8d4e8286d).(int column, Qtcxx . . $ Qt/::SortOrdercxx . . $ Qt/SortOrder# order) {
147 const int old_column = headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->sortIndicatorSectioncxx . . $ QHeaderView#sortIndicatorSection(455f465bc33b4cdf).();
148 const Qtcxx . . $ Qt/::SortOrdercxx . . $ Qt/SortOrder# old_order = headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->sortIndicatorOrdercxx . . $ QHeaderView#sortIndicatorOrder(3d035b40950d32d6).();
149
150 if (column == old_column && order == old_order) {
151 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->sortcxx . . $ FeedsProxyModel#sort(11168df8d4e8286d).(column, order);
152 }
153 else {
154 QTreeViewcxx . . $ QTreeView#::sortByColumncxx . . $ QTreeView#sortByColumn(11168df8d4e8286d).(column, order);
155 }
156 }
157
158 void FeedsViewcxx . . $ FeedsView#::addFeedIntoSelectedAccountcxx . . $ FeedsView#addFeedIntoSelectedAccount(49f6e7a06ebc5aa8).() {
159 RootItemcxx . . $ RootItem#* selected = selectedItemcxx . . $ FeedsView#selectedItem(e4f4b13bf6686a09).();
160
161 if (selected != nullptr) {
162 ServiceRootcxx . . $ ServiceRoot#* root = selected->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).();
163
164 if (root->supportsFeedAddingcxx . . $ ServiceRoot#supportsFeedAdding(50ce9a9e25b4a850).()) {
165 root->addNewFeedcxx . . $ ServiceRoot#addNewFeed(d47fda0a57dac307).(selected, QGuiApplicationcxx . . $ QGuiApplication#::clipboardcxx . . $ QGuiApplication#clipboard(a5a00f8d44f5ac9e).()->textcxx . . $ QClipboard#text(736a4da42e4ed99d).(QClipboardcxx . . $ QClipboard#::Modecxx . . $ QClipboard#Mode#::Clipboardcxx . . $ QClipboard#Clipboard.));
166 }
167 else {
168 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
169 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Not supported by account"),
170 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Selected account does not support adding of new feeds."),
171 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Warningcxx . . $ QSystemTrayIcon#Warning.});
172 }
173 }
174 }
175
176 void FeedsViewcxx . . $ FeedsView#::addCategoryIntoSelectedAccountcxx . . $ FeedsView#addCategoryIntoSelectedAccount(49f6e7a06ebc5aa8).() {
177 RootItemcxx . . $ RootItem#* selected = selectedItemcxx . . $ FeedsView#selectedItem(e4f4b13bf6686a09).();
178
179 if (selected != nullptr) {
180 ServiceRootcxx . . $ ServiceRoot#* root = selected->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).();
181
182 if (root->supportsCategoryAddingcxx . . $ ServiceRoot#supportsCategoryAdding(50ce9a9e25b4a850).()) {
183 root->addNewCategorycxx . . $ ServiceRoot#addNewCategory(cb16baca005cfe86).(selected);
184 }
185 else {
186 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
187 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Not supported by account"),
188 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Selected account does not support adding of new categories."),
189 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Warningcxx . . $ QSystemTrayIcon#Warning.});
190 }
191 }
192 }
193
194 void FeedsViewcxx . . $ FeedsView#::expandCollapseCurrentItemcxx . . $ FeedsView#expandCollapseCurrentItem(b45ddcbc8423892c).(bool recursive) {
195 if (selectionModelcxx . . $ QAbstractItemView#selectionModel(cc7a226abaf79c2f).()->selectedRowscxx . . $ QItemSelectionModel#selectedRows(27eb35e7288f0b15).().sizecxx . . $ QList#size(6b0412d51016192f).() == 1) {
196 QModelIndexcxx . . $ QModelIndex# index = selectionModelcxx . . $ QAbstractItemView#selectionModel(cc7a226abaf79c2f).()->selectedRowscxx . . $ QItemSelectionModel#selectedRows(27eb35e7288f0b15).().atcxx . . $ QList#at(c7965f769b39929).(0);
197
198 if (!modelcxx . . $ FeedsView#model(aa0a69121a5188fa).()->indexcxx . . $ QSortFilterProxyModel#index(37dbccf64c4e392).(0, 0, index).isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).() && index.parentcxx . . $ QModelIndex#parent(a394cbc57608ce34).().isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
199 setCurrentIndexcxx . . $ QAbstractItemView#setCurrentIndex(87a6de385263c395).(index.parentcxx . . $ QModelIndex#parent(a394cbc57608ce34).());
200 index =cxx . . $ QModelIndex#`operator=`(4665afb3441ab1ca). index.parentcxx . . $ QModelIndex#parent(a394cbc57608ce34).();
201 }
202
203 if (recursive) {
204 QListcxx . . $ QList#<QModelIndexcxx . . $ QModelIndex#> to_process = {cxx . . $ QList#QList(b6da5b9a9f304025).index};
205 bool expa = !isExpandedcxx . . $ QTreeView#isExpanded(b4ec4506a4420b60).(index);
206
207 while (!to_process.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
208 auto idx = to_process.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).();
209
210 if (idx.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
211 setExpandedcxx . . $ QTreeView#setExpanded(cd76815fdc45fe19).(idx, expa);
212
213 for (int i = 0; i < m_proxyModelcxx . . $ FeedsView#m_proxyModel.->rowCountcxx . . $ QSortFilterProxyModel#rowCount(e3878d4d6cd9529c).(idx); i++) {
214 auto new_idx = m_proxyModelcxx . . $ FeedsView#m_proxyModel.->indexcxx . . $ QSortFilterProxyModel#index(37dbccf64c4e392).(i, 0, idx);
215
216 if (new_idx.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
217 to_process <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). new_idx;
218 }
219 }
220 }
221 else {
222 break;
223 }
224 }
225 }
226 else {
227 isExpandedcxx . . $ QTreeView#isExpanded(b4ec4506a4420b60).(index) ? collapsecxx . . $ QTreeView#collapse(87a6de385263c395).(index) : expandcxx . . $ QTreeView#expand(87a6de385263c395).(index);
228 }
229 }
230 }
231
232 void FeedsViewcxx . . $ FeedsView#::updateSelectedItemscxx . . $ FeedsView#updateSelectedItems(49f6e7a06ebc5aa8).() {
233 auto sel_feeds = selectedFeedscxx . . $ FeedsView#selectedFeeds(7d493c88c85a9a14).(true);
234 auto sel_items = selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).();
235 bool one_specific_feed_selected = sel_items.sizecxx . . $ QList#size(6b0412d51016192f).() == 1 && sel_items.constFirstcxx . . $ QList#constFirst(2042464fc1fea03e).()->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed.;
236
237 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedReadercxx . . $ Application#feedReader(db5fdbb995cddeff).()->updateFeedscxx . . $ FeedReader#updateFeeds(df8e9bf03be569b3).(sel_feeds, one_specific_feed_selected);
238 }
239
240 void FeedsViewcxx . . $ FeedsView#::clearSelectedItemscxx . . $ FeedsView#clearSelectedItems(49f6e7a06ebc5aa8).() {
241 if (MsgBoxcxx . . $ MsgBox#::showcxx . . $ MsgBox#show(699e792c6fa2d501).(nullptr,
242 QMessageBoxcxx . . $ QMessageBox#::Iconcxx . . $ QMessageBox#Icon#::Questioncxx . . $ QMessageBox#Question.,
243 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Are you sure?"),
244 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Do you really want to clean all articles from selected items?"),
245 {cxx . . $ QString#QString(ced63f7c635d850d).},
246 {cxx . . $ QString#QString(ced63f7c635d850d).},
247 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Yescxx . . $ QMessageBox#Yes. |cxx . . $ `operator|`(67530149e923fc12). QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Nocxx . . $ QMessageBox#No.,
248 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Nocxx . . $ QMessageBox#No.) != QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Yescxx . . $ QMessageBox#Yes.) {
249 return;
250 }
251
252 for (auto* it : selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).()) {
253 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->markItemClearedcxx . . $ FeedsModel#markItemCleared(679a665f61a58643).(it, false);
254 }
255 }
256
257 void FeedsViewcxx . . $ FeedsView#::purgeSelectedFeedscxx . . $ FeedsView#purgeSelectedFeeds(49f6e7a06ebc5aa8).() {
258 if (MsgBoxcxx . . $ MsgBox#::showcxx . . $ MsgBox#show(699e792c6fa2d501).(nullptr,
259 QMessageBoxcxx . . $ QMessageBox#::Iconcxx . . $ QMessageBox#Icon#::Questioncxx . . $ QMessageBox#Question.,
260 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Are you sure?"),
261 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Do you really want to purge all non-starred articles from selected feeds?"),
262 {cxx . . $ QString#QString(ced63f7c635d850d).},
263 {cxx . . $ QString#QString(ced63f7c635d850d).},
264 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Yescxx . . $ QMessageBox#Yes. |cxx . . $ `operator|`(67530149e923fc12). QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Nocxx . . $ QMessageBox#No.,
265 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Nocxx . . $ QMessageBox#No.) != QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Yescxx . . $ QMessageBox#Yes.) {
266 return;
267 }
268
269 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->purgeArticlescxx . . $ FeedsModel#purgeArticles(dbfd2b51e10dc95c).(selectedFeedscxx . . $ FeedsView#selectedFeeds(7d493c88c85a9a14).(true));
270 }
271
272 void FeedsViewcxx . . $ FeedsView#::clearAllItemscxx . . $ FeedsView#clearAllItems(49f6e7a06ebc5aa8).() {
273 if (MsgBoxcxx . . $ MsgBox#::showcxx . . $ MsgBox#show(699e792c6fa2d501).(nullptr,
274 QMessageBoxcxx . . $ QMessageBox#::Iconcxx . . $ QMessageBox#Icon#::Questioncxx . . $ QMessageBox#Question.,
275 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Are you sure?"),
276 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Do you really want to clean all articles from selected items?"),
277 {cxx . . $ QString#QString(ced63f7c635d850d).},
278 {cxx . . $ QString#QString(ced63f7c635d850d).},
279 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Yescxx . . $ QMessageBox#Yes. |cxx . . $ `operator|`(67530149e923fc12). QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Nocxx . . $ QMessageBox#No.,
280 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Nocxx . . $ QMessageBox#No.) != QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Yescxx . . $ QMessageBox#Yes.) {
281 return;
282 }
283
284 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->markItemClearedcxx . . $ FeedsModel#markItemCleared(679a665f61a58643).(m_sourceModelcxx . . $ FeedsView#m_sourceModel.->rootItemcxx . . $ FeedsModel#rootItem(e4f4b13bf6686a09).(), false);
285 }
286
287 void FeedsViewcxx . . $ FeedsView#::editItemscxx . . $ FeedsView#editItems(47657a4e8825adca).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items) {
288 if (!qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->tryLockcxx . . $ Mutex#tryLock(c9857a73d68e59ba).()) {
289 // Lock was not obtained because
290 // it is used probably by feed updater or application
291 // is quitting.
292 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
293 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Cannot edit item"),
294 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Selected item cannot be edited because another critical operation is ongoing."),
295 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Warningcxx . . $ QSystemTrayIcon#Warning.});
296
297 // Thus, cannot delete and quit the method.
298 return;
299 }
300
301 if (items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
302 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
303 return;
304 }
305
306 auto std_editable_items = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(items)
307 .wherecxx . . $ boolinq/Linq#where(d169c8e6e9294137).([cxx . . $ std/function#function(bdc3712e480e4d04).](RootItemcxx . . $ RootItem#* it) {
308 return it->canBeEditedcxx . . $ RootItem#canBeEdited(50ce9a9e25b4a850).();
309 })
310 .distinctcxx . . $ boolinq/Linq#distinct(58d30379f29c1b96).()
311 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
312
313 if (std_editable_items.emptycxx . . $ std/__cxx11/list#empty(3482b152b9333168).()) {
314 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
315 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Cannot edit items"),
316 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Selected items cannot be edited. This is not supported (yet)."),
317 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Criticalcxx . . $ QSystemTrayIcon#Critical.});
318
319 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
320 return;
321 }
322
323 if (std_editable_items.frontcxx . . $ std/__cxx11/list#front(d5f1ba0ed5a2655c).()->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot. && std_editable_items.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).() > 1) {
324 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
325 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Cannot edit items"),
326 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("%1 does not support batch editing of multiple accounts.").argcxx . . $ QString#arg(ad0bca07273edcc2).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_NAMEcxx . . $ `<built-in>:487:9`!)),
327 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Criticalcxx . . $ QSystemTrayIcon#Critical.});
328
329 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
330 return;
331 }
332
333 // We also check if items are from single account, if not we end.
334 stdcxx . . $ std/::listcxx . . $ std/__cxx11/list#<ServiceRootcxx . . $ ServiceRoot#*> distinct_accounts = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(9278e34e98de3896).(std_editable_items)
335 .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](RootItemcxx . . $ RootItem#* it) {
336 return it->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).();
337 })
338 .distinctcxx . . $ boolinq/Linq#distinct(58d30379f29c1b96).()
339 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
340
341 if (distinct_accounts.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).() != 1) {
342 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
343 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Cannot edit items"),
344 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("%1 does not support batch editing of items from multiple accounts.").argcxx . . $ QString#arg(ad0bca07273edcc2).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_NAMEcxx . . $ `<built-in>:487:9`!)),
345 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Criticalcxx . . $ QSystemTrayIcon#Critical.});
346
347 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
348 return;
349 }
350
351 stdcxx . . $ std/::listcxx . . $ std/__cxx11/list#<RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#> distinct_types = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(9278e34e98de3896).(std_editable_items)
352 .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](RootItemcxx . . $ RootItem#* it) {
353 return it->kindcxx . . $ RootItem#kind(faa800885e6a64b).();
354 })
355 .distinctcxx . . $ boolinq/Linq#distinct(58d30379f29c1b96).()
356 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
357
358 if (distinct_types.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).() != 1) {
359 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
360 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Cannot edit items"),
361 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("%1 does not support batch editing of items of varying types.").argcxx . . $ QString#arg(ad0bca07273edcc2).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_NAMEcxx . . $ `<built-in>:487:9`!)),
362 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Criticalcxx . . $ QSystemTrayIcon#Critical.});
363
364 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
365 return;
366 }
367
368 if (qsizetypecxx . . $ qsizetype#(std_editable_items.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).()) < items.sizecxx . . $ QList#size(6b0412d51016192f).()) {
369 // Some items are not editable.
370 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
371 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Cannot edit some items"),
372 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Some of selected items cannot be edited. Proceeding to edit the rest."),
373 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Warningcxx . . $ QSystemTrayIcon#Warning.});
374 }
375
376 distinct_accounts.frontcxx . . $ std/__cxx11/list#front(d5f1ba0ed5a2655c).()->editItemscxx . . $ ServiceRoot#editItems(47657a4e8825adca).(FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<RootItem*>, std_editable_items));
377
378 // Changes are done, unlock the update master lock.
379 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
380 }
381
382 void FeedsViewcxx . . $ FeedsView#::editChildFeedscxx . . $ FeedsView#editChildFeeds(49f6e7a06ebc5aa8).() {
383 auto items = selectedFeedscxx . . $ FeedsView#selectedFeeds(7d493c88c85a9a14).(false);
384
385 if (!items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
386 auto root_items = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(items)
387 .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](Feedcxx . . $ Feed#* fd) {
388 return fd;
389 })
390 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
391
392 editItemscxx . . $ FeedsView#editItems(47657a4e8825adca).(FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<RootItem*>, root_items));
393 }
394 }
395
396 void FeedsViewcxx . . $ FeedsView#::editRecursiveFeedscxx . . $ FeedsView#editRecursiveFeeds(49f6e7a06ebc5aa8).() {
397 auto items = selectedFeedscxx . . $ FeedsView#selectedFeeds(7d493c88c85a9a14).(true);
398
399 if (!items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
400 auto root_items = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(items)
401 .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](Feedcxx . . $ Feed#* fd) {
402 return fd;
403 })
404 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
405
406 editItemscxx . . $ FeedsView#editItems(47657a4e8825adca).(FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<RootItem*>, root_items));
407 }
408 }
409
410 void FeedsViewcxx . . $ FeedsView#::changeFiltercxx . . $ FeedsView#changeFilter(613fd7fc3879d90b).(FeedsProxyModelcxx . . $ FeedsProxyModel#::FeedListFiltercxx . . $ FeedsProxyModel#FeedListFilter# filter) {
411 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setFeedListFiltercxx . . $ FeedsProxyModel#setFeedListFilter(613fd7fc3879d90b).(filter);
412 }
413
414 void FeedsViewcxx . . $ FeedsView#::editSelectedItemscxx . . $ FeedsView#editSelectedItems(49f6e7a06ebc5aa8).() {
415 editItemscxx . . $ FeedsView#editItems(47657a4e8825adca).(selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).());
416 }
417
418 void FeedsViewcxx . . $ FeedsView#::deleteSelectedItemcxx . . $ FeedsView#deleteSelectedItem(49f6e7a06ebc5aa8).() {
419 if (!qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->tryLockcxx . . $ Mutex#tryLock(c9857a73d68e59ba).()) {
420 // Lock was not obtained because
421 // it is used probably by feed updater or application
422 // is quitting.
423 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
424 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Cannot delete item"),
425 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Selected item cannot be deleted because another critical operation is ongoing."),
426 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Warningcxx . . $ QSystemTrayIcon#Warning.});
427
428 // Thus, cannot delete and quit the method.
429 return;
430 }
431
432 /*
433 if (!currentIndex().isValid()) {
434 qApp->feedUpdateLock()->unlock();
435 return;
436 }
437 */
438
439 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> selected_items = selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).();
440 auto std_deletable_items = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(selected_items)
441 .wherecxx . . $ boolinq/Linq#where(d169c8e6e9294137).([cxx . . $ std/function#function(bdc3712e480e4d04).](RootItemcxx . . $ RootItem#* it) {
442 return it->canBeDeletedcxx . . $ RootItem#canBeDeleted(50ce9a9e25b4a850).();
443 })
444 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
445
446 if (std_deletable_items.emptycxx . . $ std/__cxx11/list#empty(3482b152b9333168).()) {
447 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
448 return;
449 }
450
451 if (qsizetypecxx . . $ qsizetype#(std_deletable_items.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).()) < selected_items.sizecxx . . $ QList#size(6b0412d51016192f).()) {
452 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
453 GuiMessagecxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Some items won't be deleted"),
454 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Some selected items will not be deleted, because they cannot be deleted."),
455 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Warningcxx . . $ QSystemTrayIcon#Warning.));
456 }
457
458 // Ask user first.
459 if (MsgBoxcxx . . $ MsgBox#::showcxx . . $ MsgBox#show(699e792c6fa2d501).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormWidgetcxx . . $ Application#mainFormWidget(9b769eeb00a33a04).(),
460 QMessageBoxcxx . . $ QMessageBox#::Iconcxx . . $ QMessageBox#Icon#::Questioncxx . . $ QMessageBox#Question.,
461 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Deleting %n items", nullptr, int(std_deletable_items.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).())),
462 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("You are about to completely delete %n items.", nullptr, int(std_deletable_items.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).())),
463 trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Are you sure?"),
464 QStringcxx . . $ QString#QString(ced63f7c635d850d).(),
465 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Yescxx . . $ QMessageBox#Yes. |cxx . . $ `operator|`(67530149e923fc12). QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Nocxx . . $ QMessageBox#No.,
466 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Yescxx . . $ QMessageBox#Yes.) == QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Nocxx . . $ QMessageBox#No.) {
467 // User refused.
468 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
469 return;
470 }
471
472 auto std_pointed_items = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(9278e34e98de3896).(std_deletable_items)
473 .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](RootItemcxx . . $ RootItem#* it) {
474 return QPointercxx . . $ QPointer#<RootItemcxx . . $ RootItem#>(it);
475 })
476 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
477
478 for (const QPointercxx . . $ QPointer#<RootItemcxx . . $ RootItem#>& pnt : std_pointed_items) {
479 if (pnt.isNullcxx . . $ QPointer#isNull(3482b152b9333168).()) {
480 continue;
481 }
482
483 if (pnt->cxx . . $ QPointer#`operator->`(34d6acfd341ba7ab).deleteItemcxx . . $ RootItem#deleteItem(c9857a73d68e59ba).()) {
484 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->invalidatecxx . . $ QSortFilterProxyModel#invalidate(49f6e7a06ebc5aa8).();
485 }
486 }
487
488 // Changes are done, unlock the update master lock.
489 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
490 }
491
492 void FeedsViewcxx . . $ FeedsView#::moveSelectedItemUpcxx . . $ FeedsView#moveSelectedItemUp(49f6e7a06ebc5aa8).() {
493 auto its = selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).();
494 auto std_its = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(its)
495 .orderBycxx . . $ boolinq/Linq#orderBy(994903f26a0091c3).([](RootItemcxx . . $ RootItem#* it) {
496 return it->sortOrdercxx . . $ RootItem#sortOrder(455f465bc33b4cdf).();
497 })
498 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
499
500 for (RootItemcxx . . $ RootItem#* it : std_its) {
501 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->changeSortOrdercxx . . $ FeedsModel#changeSortOrder(f9ebbfc243ea11a8).(it, false, false, it->sortOrdercxx . . $ RootItem#sortOrder(455f465bc33b4cdf).() - 1);
502 }
503
504 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->invalidatecxx . . $ QSortFilterProxyModel#invalidate(49f6e7a06ebc5aa8).();
505 }
506
507 void FeedsViewcxx . . $ FeedsView#::moveSelectedItemDowncxx . . $ FeedsView#moveSelectedItemDown(49f6e7a06ebc5aa8).() {
508 auto its = selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).();
509 auto std_its = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(its)
510 .orderBycxx . . $ boolinq/Linq#orderBy(994903f26a0091c3).([](RootItemcxx . . $ RootItem#* it) {
511 return it->sortOrdercxx . . $ RootItem#sortOrder(455f465bc33b4cdf).();
512 })
513 .reversecxx . . $ boolinq/Linq#reverse(11d9c7e2c5da1929).()
514 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
515
516 for (RootItemcxx . . $ RootItem#* it : std_its) {
517 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->changeSortOrdercxx . . $ FeedsModel#changeSortOrder(f9ebbfc243ea11a8).(it, false, false, it->sortOrdercxx . . $ RootItem#sortOrder(455f465bc33b4cdf).() + 1);
518 }
519
520 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->invalidatecxx . . $ QSortFilterProxyModel#invalidate(49f6e7a06ebc5aa8).();
521 }
522
523 void FeedsViewcxx . . $ FeedsView#::moveSelectedItemTopcxx . . $ FeedsView#moveSelectedItemTop(49f6e7a06ebc5aa8).() {
524 for (RootItemcxx . . $ RootItem#* it : selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).()) {
525 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->changeSortOrdercxx . . $ FeedsModel#changeSortOrder(f9ebbfc243ea11a8).(it, true, false);
526 }
527
528 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->invalidatecxx . . $ QSortFilterProxyModel#invalidate(49f6e7a06ebc5aa8).();
529 }
530
531 void FeedsViewcxx . . $ FeedsView#::moveSelectedItemBottomcxx . . $ FeedsView#moveSelectedItemBottom(49f6e7a06ebc5aa8).() {
532 for (RootItemcxx . . $ RootItem#* it : selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).()) {
533 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->changeSortOrdercxx . . $ FeedsModel#changeSortOrder(f9ebbfc243ea11a8).(it, false, true);
534 }
535
536 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->invalidatecxx . . $ QSortFilterProxyModel#invalidate(49f6e7a06ebc5aa8).();
537 }
538
539 void FeedsViewcxx . . $ FeedsView#::rearrangeCategoriesOfSelectedItemcxx . . $ FeedsView#rearrangeCategoriesOfSelectedItem(49f6e7a06ebc5aa8).() {
540 for (RootItemcxx . . $ RootItem#* it : selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).()) {
541 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->sortDirectDescendantscxx . . $ FeedsModel#sortDirectDescendants(5a807e43d4a29bc7).(it, RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category.);
542 }
543
544 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->invalidatecxx . . $ QSortFilterProxyModel#invalidate(49f6e7a06ebc5aa8).();
545 }
546
547 void FeedsViewcxx . . $ FeedsView#::rearrangeFeedsOfSelectedItemcxx . . $ FeedsView#rearrangeFeedsOfSelectedItem(49f6e7a06ebc5aa8).() {
548 for (RootItemcxx . . $ RootItem#* it : selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).()) {
549 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->sortDirectDescendantscxx . . $ FeedsModel#sortDirectDescendants(5a807e43d4a29bc7).(it, RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed.);
550 }
551
552 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->invalidatecxx . . $ QSortFilterProxyModel#invalidate(49f6e7a06ebc5aa8).();
553 }
554
555 void FeedsViewcxx . . $ FeedsView#::markSelectedItemReadStatuscxx . . $ FeedsView#markSelectedItemReadStatus(e6031ad906225a2d).(RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus# read) {
556 for (RootItemcxx . . $ RootItem#* it : selectedItemscxx . . $ FeedsView#selectedItems(8f33d497292471a8).()) {
557 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->markItemReadcxx . . $ FeedsModel#markItemRead(9311416734179a77).(it, read);
558 }
559 }
560
561 void FeedsViewcxx . . $ FeedsView#::markSelectedItemReadcxx . . $ FeedsView#markSelectedItemRead(49f6e7a06ebc5aa8).() {
562 markSelectedItemReadStatuscxx . . $ FeedsView#markSelectedItemReadStatus(e6031ad906225a2d).(RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#::Readcxx . . $ RootItem#ReadStatus#Read.);
563 }
564
565 void FeedsViewcxx . . $ FeedsView#::markSelectedItemUnreadcxx . . $ FeedsView#markSelectedItemUnread(49f6e7a06ebc5aa8).() {
566 markSelectedItemReadStatuscxx . . $ FeedsView#markSelectedItemReadStatus(e6031ad906225a2d).(RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#::Unreadcxx . . $ RootItem#ReadStatus#Unread.);
567 }
568
569 void FeedsViewcxx . . $ FeedsView#::markAllItemsReadStatuscxx . . $ FeedsView#markAllItemsReadStatus(e6031ad906225a2d).(RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus# read) {
570 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->markItemReadcxx . . $ FeedsModel#markItemRead(9311416734179a77).(m_sourceModelcxx . . $ FeedsView#m_sourceModel.->rootItemcxx . . $ FeedsModel#rootItem(e4f4b13bf6686a09).(), read);
571 }
572
573 void FeedsViewcxx . . $ FeedsView#::markAllItemsReadcxx . . $ FeedsView#markAllItemsRead(49f6e7a06ebc5aa8).() {
574 markAllItemsReadStatuscxx . . $ FeedsView#markAllItemsReadStatus(e6031ad906225a2d).(RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#::Readcxx . . $ RootItem#ReadStatus#Read.);
575 }
576
577 void FeedsViewcxx . . $ FeedsView#::selectNextItemcxx . . $ FeedsView#selectNextItem(49f6e7a06ebc5aa8).() {
578 QModelIndexcxx . . $ QModelIndex# index_next = moveCursorcxx . . $ QTreeView#moveCursor(25f4bec45d28174c).(QAbstractItemViewcxx . . $ QAbstractItemView#::CursorActioncxx . . $ QAbstractItemView#CursorAction#::MoveDowncxx . . $ QAbstractItemView#MoveDown., Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::KeyboardModifiercxx . . $ Qt/KeyboardModifier#::NoModifiercxx . . $ Qt/NoModifier.);
579
580 if (index_next.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
581 setCurrentIndexcxx . . $ QAbstractItemView#setCurrentIndex(87a6de385263c395).(index_next);
582 scrollTocxx . . $ QTreeView#scrollTo(4bd852d72d3c77c3).(index_next, QAbstractItemViewcxx . . $ QAbstractItemView#::ScrollHintcxx . . $ QAbstractItemView#ScrollHint#::EnsureVisiblecxx . . $ QAbstractItemView#EnsureVisible.);
583 }
584
585 setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
586 }
587
588 void FeedsViewcxx . . $ FeedsView#::selectPreviousItemcxx . . $ FeedsView#selectPreviousItem(49f6e7a06ebc5aa8).() {
589 QModelIndexcxx . . $ QModelIndex# index_previous = moveCursorcxx . . $ QTreeView#moveCursor(25f4bec45d28174c).(QAbstractItemViewcxx . . $ QAbstractItemView#::CursorActioncxx . . $ QAbstractItemView#CursorAction#::MoveUpcxx . . $ QAbstractItemView#MoveUp., Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::KeyboardModifiercxx . . $ Qt/KeyboardModifier#::NoModifiercxx . . $ Qt/NoModifier.);
590
591 if (index_previous.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
592 setCurrentIndexcxx . . $ QAbstractItemView#setCurrentIndex(87a6de385263c395).(index_previous);
593 scrollTocxx . . $ QTreeView#scrollTo(4bd852d72d3c77c3).(index_previous, QAbstractItemViewcxx . . $ QAbstractItemView#::ScrollHintcxx . . $ QAbstractItemView#ScrollHint#::EnsureVisiblecxx . . $ QAbstractItemView#EnsureVisible.);
594 }
595
596 setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
597 }
598
599 void FeedsViewcxx . . $ FeedsView#::selectNextUnreadItemcxx . . $ FeedsView#selectNextUnreadItem(49f6e7a06ebc5aa8).() {
600 QModelIndexcxx . . $ QModelIndex# next_unread_rowcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).;
601
602 if (currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).().isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
603 next_unread_row =cxx . . $ QModelIndex#`operator=`(4665afb3441ab1ca). nextPreviousUnreadItemcxx . . $ FeedsView#nextPreviousUnreadItem(129557fdb51bbc1f).(currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).());
604 }
605 else {
606 next_unread_row =cxx . . $ QModelIndex#`operator=`(4665afb3441ab1ca). nextPreviousUnreadItemcxx . . $ FeedsView#nextPreviousUnreadItem(129557fdb51bbc1f).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->indexcxx . . $ QSortFilterProxyModel#index(37dbccf64c4e392).(0, MSG_DB_READ_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:280:9`!));
607 }
608
609 if (next_unread_row.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
610 setCurrentIndexcxx . . $ QAbstractItemView#setCurrentIndex(87a6de385263c395).(next_unread_row);
611 scrollTocxx . . $ QTreeView#scrollTo(4bd852d72d3c77c3).(next_unread_row, QAbstractItemViewcxx . . $ QAbstractItemView#::ScrollHintcxx . . $ QAbstractItemView#ScrollHint#::EnsureVisiblecxx . . $ QAbstractItemView#EnsureVisible.);
612 emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! requestViewNextUnreadMessagecxx . . $ FeedsView#requestViewNextUnreadMessage(49f6e7a06ebc5aa8).();
613 }
614 }
615
616 QModelIndexcxx . . $ QModelIndex# FeedsViewcxx . . $ FeedsView#::nextPreviousUnreadItemcxx . . $ FeedsView#nextPreviousUnreadItem(129557fdb51bbc1f).(const QModelIndexcxx . . $ QModelIndex#& default_row) {
617 const bool started_from_zero = default_row.rowcxx . . $ QModelIndex#row(ea6fe5115c70a13f).() == 0 && !default_row.parentcxx . . $ QModelIndex#parent(a394cbc57608ce34).().isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).();
618 QModelIndexcxx . . $ QModelIndex# next_index = nextUnreadItemcxx . . $ FeedsView#nextUnreadItem(129557fdb51bbc1f).(default_row);
619
620 // There is no next message, check previous.
621 if (!next_index.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).() && !started_from_zero) {
622 next_index =cxx . . $ QModelIndex#`operator=`(4665afb3441ab1ca). nextUnreadItemcxx . . $ FeedsView#nextUnreadItem(129557fdb51bbc1f).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->indexcxx . . $ QSortFilterProxyModel#index(37dbccf64c4e392).(0, 0));
623 }
624
625 return next_index;
626 }
627
628 QModelIndexcxx . . $ QModelIndex# FeedsViewcxx . . $ FeedsView#::nextUnreadItemcxx . . $ FeedsView#nextUnreadItem(129557fdb51bbc1f).(const QModelIndexcxx . . $ QModelIndex#& default_row) {
629 QModelIndexcxx . . $ QModelIndex# nconst_default_row = m_proxyModelcxx . . $ FeedsView#m_proxyModel.->indexcxx . . $ QSortFilterProxyModel#index(37dbccf64c4e392).(default_row.rowcxx . . $ QModelIndex#row(ea6fe5115c70a13f).(), 0, default_row.parentcxx . . $ QModelIndex#parent(a394cbc57608ce34).());
630 const QModelIndexcxx . . $ QModelIndex# starting_row = default_row;
631
632 while (true) {
633 bool has_unread =
634 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapToSourcecxx . . $ QSortFilterProxyModel#mapToSource(f800c6f2fa4cbe57).(nconst_default_row))->countOfUnreadMessagescxx . . $ RootItem#countOfUnreadMessages(455f465bc33b4cdf).() > 0;
635
636 if (has_unread) {
637 if (m_proxyModelcxx . . $ FeedsView#m_proxyModel.->hasChildrencxx . . $ QSortFilterProxyModel#hasChildren(b4ec4506a4420b60).(nconst_default_row)) {
638 // Current index has unread items, but is expandable, go to first child.
639 expandcxx . . $ QTreeView#expand(87a6de385263c395).(nconst_default_row);
640 nconst_default_row =cxx . . $ QModelIndex#`operator=`(4665afb3441ab1ca). indexBelowcxx . . $ QTreeView#indexBelow(f800c6f2fa4cbe57).(nconst_default_row);
641 continue;
642 }
643 else {
644 // We found unread feed, return it.
645 return nconst_default_row;
646 }
647 }
648 else {
649 QModelIndexcxx . . $ QModelIndex# next_row = indexBelowcxx . . $ QTreeView#indexBelow(f800c6f2fa4cbe57).(nconst_default_row);
650
651 if (next_row ==cxx . . $ `operator==`(8dfcc4f628267057). nconst_default_row || !next_row.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).() || starting_row ==cxx . . $ `operator==`(8dfcc4f628267057). next_row) {
652 // We came to last row probably.
653 break;
654 }
655 else {
656 nconst_default_row =cxx . . $ QModelIndex#`operator=`(1c1ba0e338f84c0a). next_row;
657 }
658 }
659 }
660
661 return QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).();
662 }
663
664 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuBincxx . . $ FeedsView#initializeContextMenuBin(7cd245901efe0fae).(RootItemcxx . . $ RootItem#* clicked_item) {
665 if (m_contextMenuBincxx . . $ FeedsView#m_contextMenuBin. == nullptr) {
666 m_contextMenuBincxx . . $ FeedsView#m_contextMenuBin. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for recycle bins"), this);
667 }
668 else {
669 m_contextMenuBincxx . . $ FeedsView#m_contextMenuBin.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
670 }
671
672 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> specific_actions = clicked_item->contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).();
673
674 m_contextMenuBincxx . . $ FeedsView#m_contextMenuBin.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).({cxx . . $ QList#QList(b6da5b9a9f304025).qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsReadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsRead.,
675 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsUnreadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsUnread.});
676
677 if (!specific_actions.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
678 m_contextMenuBincxx . . $ FeedsView#m_contextMenuBin.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
679 m_contextMenuBincxx . . $ FeedsView#m_contextMenuBin.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(specific_actions);
680 }
681
682 return m_contextMenuBincxx . . $ FeedsView#m_contextMenuBin.;
683 }
684
685 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuServicecxx . . $ FeedsView#initializeContextMenuService(7cd245901efe0fae).(RootItemcxx . . $ RootItem#* clicked_item) {
686 if (m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService. == nullptr) {
687 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for accounts"), this);
688 }
689 else {
690 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
691 }
692
693 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> specific_actions = clicked_item->contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).();
694
695 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).({cxx . . $ QList#QList(b6da5b9a9f304025).qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionUpdateSelectedItemscxx . . $ Ui_FormMain#m_actionUpdateSelectedItems.,
696 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditSelectedItemcxx . . $ Ui_FormMain#m_actionEditSelectedItem.,
697 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditChildFeedscxx . . $ Ui_FormMain#m_actionEditChildFeeds.,
698 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditChildFeedsRecursivecxx . . $ Ui_FormMain#m_actionEditChildFeedsRecursive.,
699 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionCopyUrlSelectedFeedcxx . . $ Ui_FormMain#m_actionCopyUrlSelectedFeed.,
700 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionExpandCollapseItemcxx . . $ Ui_FormMain#m_actionExpandCollapseItem.,
701 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionExpandCollapseItemRecursivelycxx . . $ Ui_FormMain#m_actionExpandCollapseItemRecursively.,
702 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionRearrangeCategoriescxx . . $ Ui_FormMain#m_actionRearrangeCategories.,
703 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionRearrangeFeedscxx . . $ Ui_FormMain#m_actionRearrangeFeeds.,
704 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsReadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsRead.,
705 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsUnreadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsUnread.,
706 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionDeleteSelectedItemcxx . . $ Ui_FormMain#m_actionDeleteSelectedItem.});
707
708 auto cat_add = clicked_item->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->supportsCategoryAddingcxx . . $ ServiceRoot#supportsCategoryAdding(50ce9a9e25b4a850).();
709 auto feed_add = clicked_item->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->supportsFeedAddingcxx . . $ ServiceRoot#supportsFeedAdding(50ce9a9e25b4a850).();
710
711 if (cat_add || feed_add) {
712 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
713 }
714
715 if (cat_add) {
716 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionAddCategoryIntoSelectedItemcxx . . $ Ui_FormMain#m_actionAddCategoryIntoSelectedItem.);
717 }
718
719 if (feed_add) {
720 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionAddFeedIntoSelectedItemcxx . . $ Ui_FormMain#m_actionAddFeedIntoSelectedItem.);
721 }
722
723 if (!qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(Feeds), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(Feeds::SortAlphabetically)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) {
724 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
725 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveUpcxx . . $ Ui_FormMain#m_actionFeedMoveUp.);
726 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveDowncxx . . $ Ui_FormMain#m_actionFeedMoveDown.);
727 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveTopcxx . . $ Ui_FormMain#m_actionFeedMoveTop.);
728 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveBottomcxx . . $ Ui_FormMain#m_actionFeedMoveBottom.);
729 }
730
731 if (!specific_actions.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
732 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
733 m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(specific_actions);
734 }
735
736 return m_contextMenuServicecxx . . $ FeedsView#m_contextMenuService.;
737 }
738
739 void FeedsViewcxx . . $ FeedsView#::switchVisibilitycxx . . $ FeedsView#switchVisibility(49f6e7a06ebc5aa8).() {
740 setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(!isVisiblecxx . . $ QWidget#isVisible(50ce9a9e25b4a850).());
741 }
742
743 void FeedsViewcxx . . $ FeedsView#::drawBranchescxx . . $ FeedsView#drawBranches(70ef9aeca98fa947).(QPaintercxx . . $ QPainter#* painter, const QRectcxx . . $ QRect#& rect, const QModelIndexcxx . . $ QModelIndex#& index) const {
744 if (!rootIsDecoratedcxx . . $ QTreeView#rootIsDecorated(50ce9a9e25b4a850).()) {
745 painter->savecxx . . $ QPainter#save(49f6e7a06ebc5aa8).();
746 painter->setOpacitycxx . . $ QPainter#setOpacity(ba8836b59fb42830).(0.0);
747 }
748
749 QTreeViewcxx . . $ QTreeView#::drawBranchescxx . . $ QTreeView#drawBranches(70ef9aeca98fa947).(painter, rect, index);
750
751 if (!rootIsDecoratedcxx . . $ QTreeView#rootIsDecorated(50ce9a9e25b4a850).()) {
752 painter->restorecxx . . $ QPainter#restore(49f6e7a06ebc5aa8).();
753 }
754 }
755
756 void FeedsViewcxx . . $ FeedsView#::focusInEventcxx . . $ FeedsView#focusInEvent(897a5ce4b6676619).(QFocusEventcxx . . $ QFocusEvent#* event) {
757 QTreeViewcxx . . $ QTreeView#::focusInEventcxx . . $ QAbstractItemView#focusInEvent(897a5ce4b6676619).(event);
758
759 if (currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).().isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
760 selectionModelcxx . . $ QAbstractItemView#selectionModel(cc7a226abaf79c2f).()->selectcxx . . $ QItemSelectionModel#select(b791d58ca2018f21).(currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).(),
761 QItemSelectionModelcxx . . $ QItemSelectionModel#::SelectionFlagcxx . . $ QItemSelectionModel#SelectionFlag#::Selectcxx . . $ QItemSelectionModel#Select. |cxx . . $ `operator|`(fca288447a57af8f). QItemSelectionModelcxx . . $ QItemSelectionModel#::SelectionFlagcxx . . $ QItemSelectionModel#SelectionFlag#::Rowscxx . . $ QItemSelectionModel#Rows.);
762 }
763 }
764
765 void FeedsViewcxx . . $ FeedsView#::filterItemscxx . . $ FeedsView#filterItems(21ebb7e9546c0588).(SearchLineEditcxx . . $ SearchLineEdit#::SearchModecxx . . $ SearchLineEdit#SearchMode# mode,
766 Qtcxx . . $ Qt/::CaseSensitivitycxx . . $ Qt/CaseSensitivity# sensitivity,
767 int custom_criteria,
768 const QStringcxx . . $ QString#& phrase) {
769 if (!phrase.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
770 m_dontSaveExpandStatecxx . . $ FeedsView#m_dontSaveExpandState. = true;
771 expandAllcxx . . $ QTreeView#expandAll(49f6e7a06ebc5aa8).();
772 m_dontSaveExpandStatecxx . . $ FeedsView#m_dontSaveExpandState. = false;
773 }
774
775 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Running search of feeds with pattern" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(phrase);
776
777 switch (mode) {
778 case SearchLineEditcxx . . $ SearchLineEdit#::SearchModecxx . . $ SearchLineEdit#SearchMode#::Wildcardcxx . . $ SearchLineEdit#SearchMode#Wildcard.:
779 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setFilterWildcardcxx . . $ QSortFilterProxyModel#setFilterWildcard(3520e46b33348bf6).(phrase);
780 break;
781
782 case SearchLineEditcxx . . $ SearchLineEdit#::SearchModecxx . . $ SearchLineEdit#SearchMode#::RegularExpressioncxx . . $ SearchLineEdit#SearchMode#RegularExpression.:
783 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setFilterRegularExpressioncxx . . $ QSortFilterProxyModel#setFilterRegularExpression(3520e46b33348bf6).(phrase);
784 break;
785
786 case SearchLineEditcxx . . $ SearchLineEdit#::SearchModecxx . . $ SearchLineEdit#SearchMode#::FixedStringcxx . . $ SearchLineEdit#SearchMode#FixedString.:
787 default:
788 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setFilterFixedStringcxx . . $ QSortFilterProxyModel#setFilterFixedString(3520e46b33348bf6).(phrase);
789 break;
790 }
791
792 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setFilterCaseSensitivitycxx . . $ QSortFilterProxyModel#setFilterCaseSensitivity(dbd87adfa24451df).(sensitivity);
793
794 BaseToolBarcxx . . $ BaseToolBar#::SearchFieldscxx . . $ BaseToolBar#SearchFields# where_search = BaseToolBarcxx . . $ BaseToolBar#::SearchFieldscxx . . $ BaseToolBar#SearchFields#(custom_criteria);
795
796 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setFilterKeyColumncxx . . $ QSortFilterProxyModel#setFilterKeyColumn(d4f767463ce0a6b3).(where_search == BaseToolBarcxx . . $ BaseToolBar#::SearchFieldscxx . . $ BaseToolBar#SearchFields#::SearchTitleOnlycxx . . $ BaseToolBar#SearchFields#SearchTitleOnly. ? FDS_MODEL_TITLE_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:339:9`!
797 : -1);
798
799 if (phrase.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
800 loadAllExpandStatescxx . . $ FeedsView#loadAllExpandStates(49f6e7a06ebc5aa8).();
801 }
802 }
803
804 void FeedsViewcxx . . $ FeedsView#::toggleFeedSortingModecxx . . $ FeedsView#toggleFeedSortingMode(b45ddcbc8423892c).(bool sort_alphabetically) {
805 setSortingEnabledcxx . . $ FeedsView#setSortingEnabled(b45ddcbc8423892c).(sort_alphabetically);
806 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setSortAlphabeticallycxx . . $ FeedsProxyModel#setSortAlphabetically(b45ddcbc8423892c).(sort_alphabetically);
807 }
808
809 void FeedsViewcxx . . $ FeedsView#::onIndexExpandedcxx . . $ FeedsView#onIndexExpanded(87a6de385263c395).(const QModelIndexcxx . . $ QModelIndex#& idx) {
810 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Feed list item expanded - " <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). m_proxyModelcxx . . $ FeedsView#m_proxyModel.->datacxx . . $ QSortFilterProxyModel#data(69b5b18a001c0029).(idx).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();
811
812 if (m_dontSaveExpandStatecxx . . $ FeedsView#m_dontSaveExpandState.) {
813 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Don't saving expand state - " <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). m_proxyModelcxx . . $ FeedsView#m_proxyModel.->datacxx . . $ QSortFilterProxyModel#data(69b5b18a001c0029).(idx).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();
814 return;
815 }
816
817 const RootItemcxx . . $ RootItem#* it = m_sourceModelcxx . . $ FeedsView#m_sourceModel.->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapToSourcecxx . . $ QSortFilterProxyModel#mapToSource(f800c6f2fa4cbe57).(idx));
818
819 if (it != nullptr && (int(it->kindcxx . . $ RootItem#kind(faa800885e6a64b).()) & int(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category. |cxx . . $ `operator|`(8c9bf6f5291ee6f9). RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot. |cxx . . $ `operator|`(8c9bf6f5291ee6f9).
820 RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels. |cxx . . $ `operator|`(8c9bf6f5291ee6f9). RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes.)) > 0) {
821 const QStringcxx . . $ QString# setting_name = it->hashCodecxx . . $ RootItem#hashCode(6ef7b6c27b00b43d).();
822
823 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(CategoriesExpandStates), setting_name, truecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).);
824 }
825 }
826
827 void FeedsViewcxx . . $ FeedsView#::onIndexCollapsedcxx . . $ FeedsView#onIndexCollapsed(87a6de385263c395).(const QModelIndexcxx . . $ QModelIndex#& idx) {
828 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Feed list item collapsed - " <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). m_proxyModelcxx . . $ FeedsView#m_proxyModel.->datacxx . . $ QSortFilterProxyModel#data(69b5b18a001c0029).(idx).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();
829
830 if (m_dontSaveExpandStatecxx . . $ FeedsView#m_dontSaveExpandState.) {
831 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Don't saving collapse state - " <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). m_proxyModelcxx . . $ FeedsView#m_proxyModel.->datacxx . . $ QSortFilterProxyModel#data(69b5b18a001c0029).(idx).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();
832 return;
833 }
834
835 RootItemcxx . . $ RootItem#* it = m_sourceModelcxx . . $ FeedsView#m_sourceModel.->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapToSourcecxx . . $ QSortFilterProxyModel#mapToSource(f800c6f2fa4cbe57).(idx));
836
837 if (it != nullptr && (int(it->kindcxx . . $ RootItem#kind(faa800885e6a64b).()) & int(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category. |cxx . . $ `operator|`(8c9bf6f5291ee6f9). RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot. |cxx . . $ `operator|`(8c9bf6f5291ee6f9).
838 RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels. |cxx . . $ `operator|`(8c9bf6f5291ee6f9). RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes.)) > 0) {
839 const QStringcxx . . $ QString# setting_name = it->hashCodecxx . . $ RootItem#hashCode(6ef7b6c27b00b43d).();
840
841 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(CategoriesExpandStates), setting_name, falsecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).);
842 }
843 }
844
845 void FeedsViewcxx . . $ FeedsView#::reloadDelayedExpansionscxx . . $ FeedsView#reloadDelayedExpansions(49f6e7a06ebc5aa8).() {
846 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Reloading delayed feed list expansions.";
847
848 m_expansionDelayercxx . . $ FeedsView#m_expansionDelayer..stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
849 m_dontSaveExpandStatecxx . . $ FeedsView#m_dontSaveExpandState. = true;
850
851 for (const QPaircxx . . $ QPair#<QModelIndexcxx . . $ QModelIndex#, bool>& exp : m_delayedItemExpansionscxx . . $ FeedsView#m_delayedItemExpansions.) {
852 auto idx = m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapFromSourcecxx . . $ QSortFilterProxyModel#mapFromSource(f800c6f2fa4cbe57).(exp.firstcxx . . $ std/pair#first.);
853
854 if (idx.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
855 setExpandedcxx . . $ QTreeView#setExpanded(cd76815fdc45fe19).(idx, exp.secondcxx . . $ std/pair#second.);
856 }
857 }
858
859 m_dontSaveExpandStatecxx . . $ FeedsView#m_dontSaveExpandState. = false;
860 m_delayedItemExpansionscxx . . $ FeedsView#m_delayedItemExpansions..clearcxx . . $ QList#clear(49f6e7a06ebc5aa8).();
861 }
862
863 void FeedsViewcxx . . $ FeedsView#::onItemExpandStateSaveRequestedcxx . . $ FeedsView#onItemExpandStateSaveRequested(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* item) {
864 saveExpandStatescxx . . $ FeedsView#saveExpandStates(cb16baca005cfe86).(item);
865 }
866
867 void FeedsViewcxx . . $ FeedsView#::saveAllExpandStatescxx . . $ FeedsView#saveAllExpandStates(49f6e7a06ebc5aa8).() {
868 saveExpandStatescxx . . $ FeedsView#saveExpandStates(cb16baca005cfe86).(sourceModelcxx . . $ FeedsView#sourceModel(9c5c1ec683fc5474).()->rootItemcxx . . $ FeedsModel#rootItem(e4f4b13bf6686a09).());
869 }
870
871 void FeedsViewcxx . . $ FeedsView#::saveExpandStatescxx . . $ FeedsView#saveExpandStates(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* item) {
872 Settingscxx . . $ Settings#* settings = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).();
873 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> items = item->getSubTreecxx . . $ RootItem#getSubTree(cc885028f1f18398).(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category. |cxx . . $ `operator|`(8c9bf6f5291ee6f9). RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot. |cxx . . $ `operator|`(8c9bf6f5291ee6f9).
874 RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels. |cxx . . $ `operator|`(8c9bf6f5291ee6f9). RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes.);
875
876 // Iterate all categories and save their expand statuses.
877 for (const RootItemcxx . . $ RootItem#* it : items) {
878 const QStringcxx . . $ QString# setting_name = it->hashCodecxx . . $ RootItem#hashCode(6ef7b6c27b00b43d).();
879 QModelIndexcxx . . $ QModelIndex# source_index = sourceModelcxx . . $ FeedsView#sourceModel(9c5c1ec683fc5474).()->indexForItemcxx . . $ FeedsModel#indexForItem(c0d6ccdcbdf61811).(it);
880 QModelIndexcxx . . $ QModelIndex# visible_index = modelcxx . . $ FeedsView#model(aa0a69121a5188fa).()->mapFromSourcecxx . . $ QSortFilterProxyModel#mapFromSource(f800c6f2fa4cbe57).(source_index);
881
882 settings->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(CategoriesExpandStates), setting_name, isExpandedcxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).(visible_index));
883 }
884 }
885
886 void FeedsViewcxx . . $ FeedsView#::loadAllExpandStatescxx . . $ FeedsView#loadAllExpandStates(49f6e7a06ebc5aa8).() {
887 const Settingscxx . . $ Settings#* settings = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).();
888 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> expandable_itemscxx . . $ QList#QList(ced63f7c635d850d).;
889
890 expandable_items.appendcxx . . $ QList#append(b1a5d2b9a710f6d1).(sourceModelcxx . . $ FeedsView#sourceModel(9c5c1ec683fc5474).()->rootItemcxx . . $ FeedsModel#rootItem(e4f4b13bf6686a09).()->getSubTreecxx . . $ RootItem#getSubTree(cc885028f1f18398).(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category. |cxx . . $ `operator|`(8c9bf6f5291ee6f9). RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot. |cxx . . $ `operator|`(8c9bf6f5291ee6f9).
891 RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels. |cxx . . $ `operator|`(8c9bf6f5291ee6f9). RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes.));
892
893 // Iterate all categories and save their expand statuses.
894 for (const RootItemcxx . . $ RootItem#* item : expandable_items) {
895 const QStringcxx . . $ QString# setting_name = item->hashCodecxx . . $ RootItem#hashCode(6ef7b6c27b00b43d).();
896
897 setExpandedcxx . . $ QTreeView#setExpanded(cd76815fdc45fe19).(modelcxx . . $ FeedsView#model(aa0a69121a5188fa).()->mapFromSourcecxx . . $ QSortFilterProxyModel#mapFromSource(f800c6f2fa4cbe57).(sourceModelcxx . . $ FeedsView#sourceModel(9c5c1ec683fc5474).()->indexForItemcxx . . $ FeedsModel#indexForItem(c0d6ccdcbdf61811).(item)),
898 settings->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(CategoriesExpandStates), setting_name, itemcxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).->childCountcxx . . $ RootItem#childCount(455f465bc33b4cdf).() > 0).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).());
899 }
900
901 sortByColumncxx . . $ FeedsView#sortByColumn(11168df8d4e8286d).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::DefaultSortColumnFeeds)).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(),
902 static_cast<Qtcxx . . $ Qt/::SortOrdercxx . . $ Qt/SortOrder#>(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()
903 ->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::DefaultSortOrderFeeds))
904 .toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).()));
905 }
906
907 void FeedsViewcxx . . $ FeedsView#::reloadItemExpandStatecxx . . $ FeedsView#reloadItemExpandState(87a6de385263c395).(const QModelIndexcxx . . $ QModelIndex#& source_idx) {
908 // Model requests to expand some items as they are visible and there is
909 // a filter active, so they maybe were not visible before.
910
911 RootItemcxx . . $ RootItem#* it = m_sourceModelcxx . . $ FeedsView#m_sourceModel.->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(source_idx);
912
913 if (it == nullptr) {
914 return;
915 }
916
917 const QStringcxx . . $ QString# setting_name = it->hashCodecxx . . $ RootItem#hashCode(6ef7b6c27b00b43d).();
918 const bool expand =
919 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(CategoriesExpandStates), setting_name, itcxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).->childCountcxx . . $ RootItem#childCount(455f465bc33b4cdf).() > 0).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).();
920
921 m_delayedItemExpansionscxx . . $ FeedsView#m_delayedItemExpansions..appendcxx . . $ QList#append(1262c8661f7a27a7).({cxx . . $ std/pair#pair(13c11f7bd0e7e3d2).source_idx, expand});
922 m_expansionDelayercxx . . $ FeedsView#m_expansionDelayer..startcxx . . $ QTimer#start(d4f767463ce0a6b3).(300);
923 }
924
925 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuCategoriescxx . . $ FeedsView#initializeContextMenuCategories(7cd245901efe0fae).(RootItemcxx . . $ RootItem#* clicked_item) {
926 if (m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories. == nullptr) {
927 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for categories"), this);
928 }
929 else {
930 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
931 }
932
933 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> specific_actions = clicked_item->contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).();
934
935 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).({cxx . . $ QList#QList(b6da5b9a9f304025).qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionUpdateSelectedItemscxx . . $ Ui_FormMain#m_actionUpdateSelectedItems.,
936 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditSelectedItemcxx . . $ Ui_FormMain#m_actionEditSelectedItem.,
937 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditChildFeedscxx . . $ Ui_FormMain#m_actionEditChildFeeds.,
938 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditChildFeedsRecursivecxx . . $ Ui_FormMain#m_actionEditChildFeedsRecursive.,
939 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionCopyUrlSelectedFeedcxx . . $ Ui_FormMain#m_actionCopyUrlSelectedFeed.,
940 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionExpandCollapseItemcxx . . $ Ui_FormMain#m_actionExpandCollapseItem.,
941 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionExpandCollapseItemRecursivelycxx . . $ Ui_FormMain#m_actionExpandCollapseItemRecursively.,
942 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionRearrangeCategoriescxx . . $ Ui_FormMain#m_actionRearrangeCategories.,
943 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionRearrangeFeedscxx . . $ Ui_FormMain#m_actionRearrangeFeeds.,
944 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsReadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsRead.,
945 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsUnreadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsUnread.,
946 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionDeleteSelectedItemcxx . . $ Ui_FormMain#m_actionDeleteSelectedItem.});
947
948 auto cat_add = clicked_item->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->supportsCategoryAddingcxx . . $ ServiceRoot#supportsCategoryAdding(50ce9a9e25b4a850).();
949 auto feed_add = clicked_item->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->supportsFeedAddingcxx . . $ ServiceRoot#supportsFeedAdding(50ce9a9e25b4a850).();
950
951 if (cat_add || feed_add) {
952 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
953 }
954
955 if (cat_add) {
956 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionAddCategoryIntoSelectedItemcxx . . $ Ui_FormMain#m_actionAddCategoryIntoSelectedItem.);
957 }
958
959 if (feed_add) {
960 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionAddFeedIntoSelectedItemcxx . . $ Ui_FormMain#m_actionAddFeedIntoSelectedItem.);
961 }
962
963 if (!qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(Feeds), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(Feeds::SortAlphabetically)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) {
964 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
965 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveUpcxx . . $ Ui_FormMain#m_actionFeedMoveUp.);
966 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveDowncxx . . $ Ui_FormMain#m_actionFeedMoveDown.);
967 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveTopcxx . . $ Ui_FormMain#m_actionFeedMoveTop.);
968 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveBottomcxx . . $ Ui_FormMain#m_actionFeedMoveBottom.);
969 }
970
971 if (!specific_actions.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
972 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
973 m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(specific_actions);
974 }
975
976 return m_contextMenuCategoriescxx . . $ FeedsView#m_contextMenuCategories.;
977 }
978
979 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuFeedscxx . . $ FeedsView#initializeContextMenuFeeds(7cd245901efe0fae).(RootItemcxx . . $ RootItem#* clicked_item) {
980 if (m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds. == nullptr) {
981 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for categories"), this);
982 }
983 else {
984 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
985 }
986
987 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> specific_actions = clicked_item->contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).();
988
989 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(QListcxx . . $ QList#QList(ced63f7c635d850d).<QActioncxx . . $ QAction#*>() <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionUpdateSelectedItemscxx . . $ Ui_FormMain#m_actionUpdateSelectedItems.
990 <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditSelectedItemcxx . . $ Ui_FormMain#m_actionEditSelectedItem.
991 <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionCopyUrlSelectedFeedcxx . . $ Ui_FormMain#m_actionCopyUrlSelectedFeed.
992 <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsReadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsRead.
993 <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsUnreadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsUnread.
994 <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionPurgeSelectedItemscxx . . $ Ui_FormMain#m_actionPurgeSelectedItems.
995 <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionDeleteSelectedItemcxx . . $ Ui_FormMain#m_actionDeleteSelectedItem.);
996
997 auto cat_add = clicked_item->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->supportsCategoryAddingcxx . . $ ServiceRoot#supportsCategoryAdding(50ce9a9e25b4a850).();
998 auto feed_add = clicked_item->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->supportsFeedAddingcxx . . $ ServiceRoot#supportsFeedAdding(50ce9a9e25b4a850).();
999
1000 if (cat_add || feed_add) {
1001 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
1002 }
1003
1004 if (cat_add) {
1005 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionAddCategoryIntoSelectedItemcxx . . $ Ui_FormMain#m_actionAddCategoryIntoSelectedItem.);
1006 }
1007
1008 if (feed_add) {
1009 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionAddFeedIntoSelectedItemcxx . . $ Ui_FormMain#m_actionAddFeedIntoSelectedItem.);
1010 }
1011
1012 if (!qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(Feeds), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(Feeds::SortAlphabetically)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) {
1013 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
1014 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveUpcxx . . $ Ui_FormMain#m_actionFeedMoveUp.);
1015 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveDowncxx . . $ Ui_FormMain#m_actionFeedMoveDown.);
1016 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveTopcxx . . $ Ui_FormMain#m_actionFeedMoveTop.);
1017 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionFeedMoveBottomcxx . . $ Ui_FormMain#m_actionFeedMoveBottom.);
1018 }
1019
1020 if (!specific_actions.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
1021 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
1022 m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(specific_actions);
1023 }
1024
1025 return m_contextMenuFeedscxx . . $ FeedsView#m_contextMenuFeeds.;
1026 }
1027
1028 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuImportantcxx . . $ FeedsView#initializeContextMenuImportant(7cd245901efe0fae).(RootItemcxx . . $ RootItem#* clicked_item) {
1029 if (m_contextMenuImportantcxx . . $ FeedsView#m_contextMenuImportant. == nullptr) {
1030 m_contextMenuImportantcxx . . $ FeedsView#m_contextMenuImportant. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for important articles"), this);
1031 }
1032 else {
1033 m_contextMenuImportantcxx . . $ FeedsView#m_contextMenuImportant.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
1034 }
1035
1036 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> specific_actions = clicked_item->contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).();
1037
1038 m_contextMenuImportantcxx . . $ FeedsView#m_contextMenuImportant.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).({cxx . . $ QList#QList(b6da5b9a9f304025).qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsReadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsRead.,
1039 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsUnreadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsUnread.});
1040
1041 if (!specific_actions.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
1042 m_contextMenuImportantcxx . . $ FeedsView#m_contextMenuImportant.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
1043 m_contextMenuImportantcxx . . $ FeedsView#m_contextMenuImportant.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(specific_actions);
1044 }
1045
1046 return m_contextMenuImportantcxx . . $ FeedsView#m_contextMenuImportant.;
1047 }
1048
1049 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuEmptySpacecxx . . $ FeedsView#initializeContextMenuEmptySpace(fe0a096c13a48705).() {
1050 if (m_contextMenuEmptySpacecxx . . $ FeedsView#m_contextMenuEmptySpace. == nullptr) {
1051 m_contextMenuEmptySpacecxx . . $ FeedsView#m_contextMenuEmptySpace. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for empty space"), this);
1052 m_contextMenuEmptySpacecxx . . $ FeedsView#m_contextMenuEmptySpace.->addMenucxx . . $ QMenu#addMenu(e6260eb8882b953).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_menuAddItemcxx . . $ Ui_FormMain#m_menuAddItem.);
1053 m_contextMenuEmptySpacecxx . . $ FeedsView#m_contextMenuEmptySpace.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
1054 }
1055
1056 return m_contextMenuEmptySpacecxx . . $ FeedsView#m_contextMenuEmptySpace.;
1057 }
1058
1059 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuOtherItemcxx . . $ FeedsView#initializeContextMenuOtherItem(7cd245901efe0fae).(RootItemcxx . . $ RootItem#* clicked_item) {
1060 if (m_contextMenuOtherItemscxx . . $ FeedsView#m_contextMenuOtherItems. == nullptr) {
1061 m_contextMenuOtherItemscxx . . $ FeedsView#m_contextMenuOtherItems. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for other items"), this);
1062 }
1063 else {
1064 m_contextMenuOtherItemscxx . . $ FeedsView#m_contextMenuOtherItems.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
1065 }
1066
1067 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> specific_actions = clicked_item->contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).();
1068
1069 if (!specific_actions.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
1070 m_contextMenuOtherItemscxx . . $ FeedsView#m_contextMenuOtherItems.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
1071 m_contextMenuOtherItemscxx . . $ FeedsView#m_contextMenuOtherItems.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(specific_actions);
1072 }
1073 else {
1074 m_contextMenuOtherItemscxx . . $ FeedsView#m_contextMenuOtherItems.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionNoActionscxx . . $ Ui_FormMain#m_actionNoActions.);
1075 }
1076
1077 return m_contextMenuOtherItemscxx . . $ FeedsView#m_contextMenuOtherItems.;
1078 }
1079
1080 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuLabelcxx . . $ FeedsView#initializeContextMenuLabel(7cd245901efe0fae).(RootItemcxx . . $ RootItem#* clicked_item) {
1081 if (m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel. == nullptr) {
1082 m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for label"), this);
1083 }
1084 else {
1085 m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
1086 }
1087
1088 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> specific_actions = clicked_item->contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).();
1089
1090 m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditSelectedItemcxx . . $ Ui_FormMain#m_actionEditSelectedItem.);
1091 m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsReadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsRead.);
1092 m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsUnreadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsUnread.);
1093 m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionDeleteSelectedItemcxx . . $ Ui_FormMain#m_actionDeleteSelectedItem.);
1094
1095 if (!specific_actions.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
1096 m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
1097 m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(specific_actions);
1098 }
1099
1100 return m_contextMenuLabelcxx . . $ FeedsView#m_contextMenuLabel.;
1101 }
1102
1103 QMenucxx . . $ QMenu#* FeedsViewcxx . . $ FeedsView#::initializeContextMenuProbecxx . . $ FeedsView#initializeContextMenuProbe(7cd245901efe0fae).(RootItemcxx . . $ RootItem#* clicked_item) {
1104 if (m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe. == nullptr) {
1105 m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe. = new QMenucxx . . $ QMenu#QMenu(90d5708627041e22).(trcxx . . $ FeedsView#tr(75d9f1c324b4579d).("Context menu for regex query"), this);
1106 }
1107 else {
1108 m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
1109 }
1110
1111 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> specific_actions = clicked_item->contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).();
1112
1113 m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionEditSelectedItemcxx . . $ Ui_FormMain#m_actionEditSelectedItem.);
1114 m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsReadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsRead.);
1115 m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionMarkSelectedItemsAsUnreadcxx . . $ Ui_FormMain#m_actionMarkSelectedItemsAsUnread.);
1116 m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->m_uicxx . . $ FormMain#m_ui.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).m_actionDeleteSelectedItemcxx . . $ Ui_FormMain#m_actionDeleteSelectedItem.);
1117
1118 if (!specific_actions.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
1119 m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.->addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
1120 m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.->addActionscxx . . $ QWidget#addActions(f6e011d6f114740d).(specific_actions);
1121 }
1122
1123 return m_contextMenuProbecxx . . $ FeedsView#m_contextMenuProbe.;
1124 }
1125
1126 QByteArraycxx . . $ QByteArray# FeedsViewcxx . . $ FeedsView#::saveHeaderStatecxx . . $ FeedsView#saveHeaderState(a96750bfbcb1fbe9).() const {
1127 QJsonObjectcxx . . $ QJsonObject# objcxx . . $ QJsonObject#QJsonObject(49f6e7a06ebc5aa8).;
1128
1129 obj[cxx . . $ QJsonObject#`operator[]`(6d95a036fce085b4).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("header_count")] =cxx . . $ QJsonValueRef#`operator=`(e1c7b4c20ea84dfe). headercxx . . $ QJsonValue#QJsonValue(d4f767463ce0a6b3).()->countcxx . . $ QHeaderView#count(455f465bc33b4cdf).();
1130
1131 // Store column attributes.
1132 for (int i = 0; i < headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->countcxx . . $ QHeaderView#count(455f465bc33b4cdf).(); i++) {
1133 obj[cxx . . $ QJsonObject#`operator[]`(6d95a036fce085b4).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("header_%1_size").argcxx . . $ QString#arg(ed67e9a87de2cd4e).(i)] =cxx . . $ QJsonValueRef#`operator=`(e1c7b4c20ea84dfe). headercxx . . $ QJsonValue#QJsonValue(d4f767463ce0a6b3).()->sectionSizecxx . . $ QHeaderView#sectionSize(7ccb52b1bfe01045).(i);
1134 }
1135
1136 return QJsonDocumentcxx . . $ QJsonDocument#QJsonDocument(6b379e5d051a9fe4).(obj).toJsoncxx . . $ QJsonDocument#toJson(6b49539da79a45f0).(QJsonDocumentcxx . . $ QJsonDocument#::JsonFormatcxx . . $ QJsonDocument#JsonFormat#::Compactcxx . . $ QJsonDocument#Compact.);
1137 }
1138
1139 void FeedsViewcxx . . $ FeedsView#::restoreHeaderStatecxx . . $ FeedsView#restoreHeaderState(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray#& dta) {
1140 QJsonObjectcxx . . $ QJsonObject# obj = QJsonDocumentcxx . . $ QJsonDocument#::fromJsoncxx . . $ QJsonDocument#fromJson(731a4d2b2d08d93c).(dta).objectcxx . . $ QJsonDocument#object(ac8af9874357714b).();
1141 int saved_header_count = obj[cxx . . $ QJsonObject#`operator[]`(6d95a036fce085b4).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("header_count")].toIntcxx . . $ QJsonValueRef#toInt(7ccb52b1bfe01045).();
1142
1143 if (saved_header_count < headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->countcxx . . $ QHeaderView#count(455f465bc33b4cdf).()) {
1144 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Detected invalid state for feed list.";
1145 return;
1146 }
1147
1148 // Restore column attributes.
1149 for (int i = 0; i < saved_header_count && i < headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->countcxx . . $ QHeaderView#count(455f465bc33b4cdf).(); i++) {
1150 int ss = obj[cxx . . $ QJsonObject#`operator[]`(6d95a036fce085b4).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("header_%1_size").argcxx . . $ QString#arg(ed67e9a87de2cd4e).(i)].toIntcxx . . $ QJsonValueRef#toInt(7ccb52b1bfe01045).();
1151
1152 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(i, ss);
1153 }
1154
1155 // All columns are resizeable but last one is set to auto-stretch to fill remaining
1156 // space. Sometimes this column is saved as too wide and causes
1157 // horizontal scrollbar to appear. Therefore downsize it.
1158 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->logicalIndexcxx . . $ QHeaderView#logicalIndex(7ccb52b1bfe01045).(headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->countcxx . . $ QHeaderView#count(455f465bc33b4cdf).() - 1), 1);
1159 }
1160
1161 void FeedsViewcxx . . $ FeedsView#::setupAppearancecxx . . $ FeedsView#setupAppearance(49f6e7a06ebc5aa8).() {
1162 // Setup column resize strategies.
1163 for (int i = 0; i < headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->countcxx . . $ QHeaderView#count(455f465bc33b4cdf).(); i++) {
1164 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->setSectionResizeModecxx . . $ QHeaderView#setSectionResizeMode(5f195ea94ba55580).(i, QHeaderViewcxx . . $ QHeaderView#::ResizeModecxx . . $ QHeaderView#ResizeMode#::Interactivecxx . . $ QHeaderView#Interactive.);
1165 }
1166
1167 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->setStretchLastSectioncxx . . $ QHeaderView#setStretchLastSection(b45ddcbc8423892c).(true);
1168 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->setSectionsMovablecxx . . $ QHeaderView#setSectionsMovable(b45ddcbc8423892c).(false);
1169
1170 setUniformRowHeightscxx . . $ QTreeView#setUniformRowHeights(b45ddcbc8423892c).(true);
1171 setAnimatedcxx . . $ QTreeView#setAnimated(b45ddcbc8423892c).(true);
1172 setSortingEnabledcxx . . $ FeedsView#setSortingEnabled(b45ddcbc8423892c).(false);
1173 setItemsExpandablecxx . . $ QTreeView#setItemsExpandable(b45ddcbc8423892c).(true);
1174 setAutoExpandDelaycxx . . $ QTreeView#setAutoExpandDelay(d4f767463ce0a6b3).(800);
1175 setExpandsOnDoubleClickcxx . . $ QTreeView#setExpandsOnDoubleClick(b45ddcbc8423892c).(true);
1176 setEditTriggerscxx . . $ QAbstractItemView#setEditTriggers(cbe1d262190fb0b).(QAbstractItemViewcxx . . $ QFlags#QFlags(93d577a3e9528307).::EditTriggercxx . . $ QAbstractItemView#EditTrigger#::NoEditTriggerscxx . . $ QAbstractItemView#NoEditTriggers.);
1177 setIndentationcxx . . $ QTreeView#setIndentation(d4f767463ce0a6b3).(FEEDS_VIEW_INDENTATIONcxx . . $ `src/librssguard/definitions/definitions.h:94:9`!);
1178 setAcceptDropscxx . . $ QWidget#setAcceptDrops(b45ddcbc8423892c).(true);
1179 viewportcxx . . $ QAbstractScrollArea#viewport(27f420ad5cce8994).()->setAcceptDropscxx . . $ QWidget#setAcceptDrops(b45ddcbc8423892c).(true);
1180 setDragEnabledcxx . . $ QAbstractItemView#setDragEnabled(b45ddcbc8423892c).(true);
1181 setDropIndicatorShowncxx . . $ QAbstractItemView#setDropIndicatorShown(b45ddcbc8423892c).(true);
1182 setDragDropModecxx . . $ QAbstractItemView#setDragDropMode(6ef5700770d19021).(QAbstractItemViewcxx . . $ QAbstractItemView#::DragDropModecxx . . $ QAbstractItemView#DragDropMode#::InternalMovecxx . . $ QAbstractItemView#InternalMove.);
1183 setAllColumnsShowFocuscxx . . $ QTreeView#setAllColumnsShowFocus(b45ddcbc8423892c).(false);
1184 setRootIsDecoratedcxx . . $ QTreeView#setRootIsDecorated(b45ddcbc8423892c).(false);
1185 setSelectionModecxx . . $ QAbstractItemView#setSelectionMode(92c48cbe05de0e90).(QAbstractItemViewcxx . . $ QAbstractItemView#::SelectionModecxx . . $ QAbstractItemView#SelectionMode#::ExtendedSelectioncxx . . $ QAbstractItemView#ExtendedSelection.);
1186 setItemDelegatecxx . . $ QAbstractItemView#setItemDelegate(fa3867fa1f6ca1e7).(new StyledItemDelegateWithoutFocuscxx . . $ StyledItemDelegateWithoutFocus#(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()
1187 ->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::HeightRowFeeds))
1188 .toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(),
1189 -1,
1190 this));
1191 }
1192
1193 void FeedsViewcxx . . $ FeedsView#::selectionChangedcxx . . $ FeedsView#selectionChanged(fda080a95bde17c6).(const QItemSelectioncxx . . $ QItemSelection#& selected, const QItemSelectioncxx . . $ QItemSelection#& deselected) {
1194 RootItemcxx . . $ RootItem#* selected_item = selectedItemcxx . . $ FeedsView#selectedItem(e4f4b13bf6686a09).();
1195
1196 m_proxyModelcxx . . $ FeedsView#m_proxyModel.->setSelectedItemcxx . . $ FeedsProxyModel#setSelectedItem(e83c05a3b3498166).(selected_item);
1197 m_sourceModelcxx . . $ FeedsView#m_sourceModel.->reloadChangedLayoutcxx . . $ FeedsModel#reloadChangedLayout(9572254e104ad7bd).(m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapSelectionToSourcecxx . . $ QSortFilterProxyModel#mapSelectionToSource(2c957cecb375a3e8).(deselected).indexescxx . . $ QItemSelection#indexes(e07a49e305136b5).());
1198
1199 QTreeViewcxx . . $ QTreeView#::selectionChangedcxx . . $ QTreeView#selectionChanged(fda080a95bde17c6).(selected, deselected);
1200 emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! itemSelectedcxx . . $ FeedsView#itemSelected(cb16baca005cfe86).(selected_item);
1201
1202 if (!selectedIndexescxx . . $ QTreeView#selectedIndexes(e07a49e305136b5).().isEmptycxx . . $ QList#isEmpty(3482b152b9333168).() &&
1203 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(Feeds), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(Feeds::AutoExpandOnSelection)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) {
1204 expandcxx . . $ QTreeView#expand(87a6de385263c395).(selectedIndexescxx . . $ QTreeView#selectedIndexes(e07a49e305136b5).().constFirstcxx . . $ QList#constFirst(2042464fc1fea03e).());
1205 }
1206 }
1207
1208 void FeedsViewcxx . . $ FeedsView#::keyPressEventcxx . . $ FeedsView#keyPressEvent(c92999c1b6b09cc0).(QKeyEventcxx . . $ QKeyEvent#* event) {
1209 BaseTreeViewcxx . . $ BaseTreeView#::keyPressEventcxx . . $ BaseTreeView#keyPressEvent(c92999c1b6b09cc0).(event);
1210
1211 if (event->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Keycxx . . $ Qt/Key#::Key_Deletecxx . . $ Qt/Key_Delete.) {
1212 deleteSelectedItemcxx . . $ FeedsView#deleteSelectedItem(49f6e7a06ebc5aa8).();
1213 }
1214 }
1215
1216 void FeedsViewcxx . . $ FeedsView#::contextMenuEventcxx . . $ FeedsView#contextMenuEvent(ebb2569a74e11126).(QContextMenuEventcxx . . $ QContextMenuEvent#* event) {
1217 const QModelIndexcxx . . $ QModelIndex# clicked_index = indexAtcxx . . $ QTreeView#indexAt(90c2c28d33eadf46).(event->poscxx . . $ QContextMenuEvent#pos(6de9f7a200ca710c).());
1218
1219 if (clicked_index.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
1220 const QModelIndexcxx . . $ QModelIndex# mapped_index = modelcxx . . $ FeedsView#model(aa0a69121a5188fa).()->mapToSourcecxx . . $ QSortFilterProxyModel#mapToSource(f800c6f2fa4cbe57).(clicked_index);
1221 RootItemcxx . . $ RootItem#* clicked_item = sourceModelcxx . . $ FeedsView#sourceModel(9c5c1ec683fc5474).()->itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(mapped_index);
1222
1223 if (clicked_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category.) {
1224 // Display context menu for categories.
1225 initializeContextMenuCategoriescxx . . $ FeedsView#initializeContextMenuCategories(7cd245901efe0fae).(clicked_item)->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1226 }
1227 else if (clicked_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed.) {
1228 // Display context menu for feeds.
1229 initializeContextMenuFeedscxx . . $ FeedsView#initializeContextMenuFeeds(7cd245901efe0fae).(clicked_item)->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1230 }
1231 else if (clicked_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Importantcxx . . $ RootItem#Kind#Important. || clicked_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Unreadcxx . . $ RootItem#Kind#Unread.) {
1232 initializeContextMenuImportantcxx . . $ FeedsView#initializeContextMenuImportant(7cd245901efe0fae).(clicked_item)->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1233 }
1234 else if (clicked_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin.) {
1235 initializeContextMenuBincxx . . $ FeedsView#initializeContextMenuBin(7cd245901efe0fae).(clicked_item)->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1236 }
1237 else if (clicked_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot.) {
1238 initializeContextMenuServicecxx . . $ FeedsView#initializeContextMenuService(7cd245901efe0fae).(clicked_item)->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1239 }
1240 else if (clicked_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelcxx . . $ RootItem#Kind#Label.) {
1241 initializeContextMenuLabelcxx . . $ FeedsView#initializeContextMenuLabel(7cd245901efe0fae).(clicked_item)->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1242 }
1243 else if (clicked_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probecxx . . $ RootItem#Kind#Probe.) {
1244 initializeContextMenuProbecxx . . $ FeedsView#initializeContextMenuProbe(7cd245901efe0fae).(clicked_item)->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1245 }
1246 else {
1247 initializeContextMenuOtherItemcxx . . $ FeedsView#initializeContextMenuOtherItem(7cd245901efe0fae).(clicked_item)->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1248 }
1249 }
1250 else {
1251 // Display menu for empty space.
1252 initializeContextMenuEmptySpacecxx . . $ FeedsView#initializeContextMenuEmptySpace(fe0a096c13a48705).()->execcxx . . $ QMenu#exec(2535b15b88c544d4).(event->globalPoscxx . . $ QContextMenuEvent#globalPos(6de9f7a200ca710c).());
1253 }
1254 }
1255
1256 void FeedsViewcxx . . $ FeedsView#::mouseDoubleClickEventcxx . . $ FeedsView#mouseDoubleClickEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event) {
1257 QTreeViewcxx . . $ QTreeView#::mouseDoubleClickEventcxx . . $ QTreeView#mouseDoubleClickEvent(702858a82d06265c).(event);
1258 }
1259
1260 void FeedsViewcxx . . $ FeedsView#::saveSortStatecxx . . $ FeedsView#saveSortState(11168df8d4e8286d).(int column, Qtcxx . . $ Qt/::SortOrdercxx . . $ Qt/SortOrder# order) {
1261 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), GUIcxx . . $ GUI/::DefaultSortColumnFeedscxx . . $ GUI/DefaultSortColumnFeeds., columncxx . . $ QVariant#QVariant(f349c77f591a7878).);
1262 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), GUIcxx . . $ GUI/::DefaultSortOrderFeedscxx . . $ GUI/DefaultSortOrderFeeds., ordercxx . . $ QVariant#QVariant(f349c77f591a7878).);
1263 }
1264
1265 void FeedsViewcxx . . $ FeedsView#::validateItemAfterDragDropcxx . . $ FeedsView#validateItemAfterDragDrop(87a6de385263c395).(const QModelIndexcxx . . $ QModelIndex#& source_index) {
1266 const QModelIndexcxx . . $ QModelIndex# mapped = m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapFromSourcecxx . . $ QSortFilterProxyModel#mapFromSource(f800c6f2fa4cbe57).(source_index);
1267
1268 if (mapped.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
1269 expandcxx . . $ QTreeView#expand(87a6de385263c395).(mapped);
1270 setCurrentIndexcxx . . $ QAbstractItemView#setCurrentIndex(87a6de385263c395).(mapped);
1271 }
1272 }
1273
1274 void FeedsViewcxx . . $ FeedsView#::onItemExpandRequestedcxx . . $ FeedsView#onItemExpandRequested(8e785c59da43649).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items, bool exp) {
1275 for (const RootItemcxx . . $ RootItem#* item : items) {
1276 QModelIndexcxx . . $ QModelIndex# source_index = m_sourceModelcxx . . $ FeedsView#m_sourceModel.->indexForItemcxx . . $ FeedsModel#indexForItem(c0d6ccdcbdf61811).(item);
1277 QModelIndexcxx . . $ QModelIndex# proxy_index = m_proxyModelcxx . . $ FeedsView#m_proxyModel.->mapFromSourcecxx . . $ QSortFilterProxyModel#mapFromSource(f800c6f2fa4cbe57).(source_index);
1278
1279 setExpandedcxx . . $ QTreeView#setExpanded(cd76815fdc45fe19).(proxy_index, exp);
1280 }
1281 }
1282
1283 void FeedsViewcxx . . $ FeedsView#::drawRowcxx . . $ FeedsView#drawRow(a0cfc6dde5a97d5a).(QPaintercxx . . $ QPainter#* painter, const QStyleOptionViewItemcxx . . $ QStyleOptionViewItem#& options, const QModelIndexcxx . . $ QModelIndex#& index) const {
1284 auto opts = optionscxx . . $ QStyleOptionViewItem#QStyleOptionViewItem(1c05e4a99c732f7).;
1285
1286 opts.decorationAlignmentcxx . . $ QStyleOptionViewItem#decorationAlignment. =cxx . . $ QFlags#`operator=`(4ecc59e2b610c490). Qtcxx . . $ Qt/::AlignmentFlagcxx . . $ Qt/AlignmentFlag#::AlignLeftcxx . . $ Qt/AlignLeft. |cxx . . $ Qt/`operator|`(6ff00bf3a2570bcb). Qtcxx . . $ Qt/::AlignmentFlagcxx . . $ Qt/AlignmentFlag#::AlignVCentercxx . . $ Qt/AlignVCenter.;
1287
1288 BaseTreeViewcxx . . $ BaseTreeView#::drawRowcxx . . $ QTreeView#drawRow(a0cfc6dde5a97d5a).(painter, opts, index);
1289 }