Some commenting.
This commit is contained in:
parent
04a49a1eff
commit
f1f84acbe6
@ -431,6 +431,8 @@ void FeedsView::deleteSelectedItem() {
|
|||||||
|
|
||||||
if (m_sourceModel->removeItem(m_proxyModel->mapToSource(current_index))) {
|
if (m_sourceModel->removeItem(m_proxyModel->mapToSource(current_index))) {
|
||||||
// Item WAS removed, update counts.
|
// Item WAS removed, update counts.
|
||||||
|
// TODO:_I do not need to update counts of all items here.
|
||||||
|
// Updating counts of parent item (feed) should be enough.
|
||||||
updateCountsOfAllFeeds(true);
|
updateCountsOfAllFeeds(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -38,6 +38,7 @@ class FeedsView : public QTreeView {
|
|||||||
explicit FeedsView(QWidget *parent = 0);
|
explicit FeedsView(QWidget *parent = 0);
|
||||||
virtual ~FeedsView();
|
virtual ~FeedsView();
|
||||||
|
|
||||||
|
// Fundamental accessors.
|
||||||
inline FeedsProxyModel *model() {
|
inline FeedsProxyModel *model() {
|
||||||
return m_proxyModel;
|
return m_proxyModel;
|
||||||
}
|
}
|
||||||
@ -66,6 +67,8 @@ class FeedsView : public QTreeView {
|
|||||||
FeedsModelCategory *isCurrentIndexCategory() const;
|
FeedsModelCategory *isCurrentIndexCategory() const;
|
||||||
FeedsModelFeed *isCurrentIndexFeed() const;
|
FeedsModelFeed *isCurrentIndexFeed() const;
|
||||||
|
|
||||||
|
// Saves/loads expand states of all nodes (feeds/categories) of the list
|
||||||
|
// to/from settings.
|
||||||
void saveExpandedStates();
|
void saveExpandedStates();
|
||||||
void loadExpandedStates();
|
void loadExpandedStates();
|
||||||
|
|
||||||
@ -82,7 +85,6 @@ class FeedsView : public QTreeView {
|
|||||||
void markSelectedFeedsReadStatus(int read);
|
void markSelectedFeedsReadStatus(int read);
|
||||||
void markSelectedFeedsRead();
|
void markSelectedFeedsRead();
|
||||||
void markSelectedFeedsUnread();
|
void markSelectedFeedsUnread();
|
||||||
|
|
||||||
void markAllFeedsReadStatus(int read);
|
void markAllFeedsReadStatus(int read);
|
||||||
void markAllFeedsRead();
|
void markAllFeedsRead();
|
||||||
|
|
||||||
@ -124,6 +126,7 @@ class FeedsView : public QTreeView {
|
|||||||
m_sourceModel->countOfAllMessages());
|
m_sourceModel->countOfAllMessages());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Selects next/previous item (feed/category) in the list.
|
||||||
void selectNextItem();
|
void selectNextItem();
|
||||||
void selectPreviousItem();
|
void selectPreviousItem();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user