akregator
articlelistview.cpp
Go to the documentation of this file.
59 FilterDeletedProxyModel::FilterDeletedProxyModel( QObject* parent ) : QSortFilterProxyModel( parent )
64 bool FilterDeletedProxyModel::filterAcceptsRow( int source_row, const QModelIndex& source_parent ) const
66 return !sourceModel()->index( source_row, 0, source_parent ).data( ArticleModel::IsDeletedRole ).toBool();
69 SortColorizeProxyModel::SortColorizeProxyModel( QObject* parent ) : QSortFilterProxyModel( parent ), m_keepFlagIcon( KIcon( "mail-mark-important" ) )
71 m_unreadColor = KColorScheme( QPalette::Normal, KColorScheme::View ).foreground( KColorScheme::PositiveText ).color();
72 m_newColor = KColorScheme( QPalette::Normal, KColorScheme::View ).foreground( KColorScheme::NegativeText ).color();
75 bool SortColorizeProxyModel::filterAcceptsRow ( int source_row, const QModelIndex& source_parent ) const
89 void SortColorizeProxyModel::setFilters( const std::vector<shared_ptr<const Filters::AbstractMatcher> >& matchers )
242 m_feedHeaderState = QByteArray::fromBase64( conf.readEntry( "ArticleListFeedHeaders" ).toLatin1() );
243 m_groupHeaderState = QByteArray::fromBase64( conf.readEntry( "ArticleListGroupHeaders" ).toLatin1() );
376 "You can also manage articles, as marking them as persistent (\"Mark as Important\") or delete them, using the right mouse button menu. "
377 "To view the web page of the article, you can open the article internally in a tab or in an external browser window."));
380 disconnect( header(), SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(showHeaderMenu(QPoint)) );
381 connect( header(), SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(showHeaderMenu(QPoint)) );
432 #warning The distinction between empty node and 0 items after filtering is hard to port to interview
506 const QModelIndex newIdx = idx.isValid() ? idx.sibling( newRow, 0 ) : model()->index( newRow, 0 );
528 const int startRow = qMin( rowCount - 1, ( currentIndex().isValid() ? currentIndex().row() + 1 : 0 ) );
565 const int startRow = qMax( 0, ( currentIndex().isValid() ? currentIndex().row() : rowCount ) - 1 );
592 void ArticleListView::setFilters( const std::vector<shared_ptr<const Filters::AbstractMatcher> >& matchers )
SortColorizeProxyModel(QObject *parent=0)
Definition: articlelistview.cpp:69
static int maxDateColumnWidth(const QFontMetrics &fm)
Definition: articlelistview.cpp:295
void setIsAggregation(bool isAggregation)
Definition: articlelistview.cpp:353
void setModel(QAbstractItemModel *model)
Definition: articlelistview.cpp:467
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: articlelistview.cpp:97
void setFilters(const std::vector< boost::shared_ptr< const Akregator::Filters::AbstractMatcher > > &)
Definition: articlelistview.cpp:592
void setArticleModel(Akregator::ArticleModel *model)
Definition: articlelistview.cpp:150
void forceFilterUpdate()
Definition: articlelistview.cpp:586
QItemSelectionModel * articleSelectionModel() const
Definition: articlelistview.cpp:246
void mousePressEvent(QMouseEvent *ev)
Definition: articlelistview.cpp:385
void signalMouseButtonPressed(int, const KUrl)
void slotNextArticle()
Definition: articlelistview.cpp:510
article was fetched in the last fetch of it's feed and not read yet.
Definition: types.h:33
void slotPreviousArticle()
Definition: articlelistview.cpp:499
const QAbstractItemView * itemView() const
Definition: articlelistview.cpp:251
virtual QWidget * container(const char *name)=0
void slotNextUnreadArticle()
Definition: articlelistview.cpp:522
static ActionManager * getInstance()
Definition: actionmanager.cpp:35
ArticleListView(QWidget *parent=0)
Definition: articlelistview.cpp:361
void setColumnEnabled(int col, bool enabled=true)
Definition: filtercolumnsproxymodel.cpp:42
void setFilters(const std::vector< boost::shared_ptr< const Akregator::Filters::AbstractMatcher > > &)
Definition: articlelistview.cpp:89
QPoint scrollBarPositions() const
Definition: articlelistview.cpp:261
void userActionTakingPlace()
void setScrollBarPositions(const QPoint &p)
Definition: articlelistview.cpp:266
void slotPreviousUnreadArticle()
Definition: articlelistview.cpp:559
Definition: articlemodel.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.