mailcommon
foldertreeview.cpp
Go to the documentation of this file.
46 FolderTreeView::FolderTreeView( KXMLGUIClient *xmlGuiClient, QWidget *parent, bool showUnreadCount )
166 act = menu.addAction( QString::fromLatin1( "%1x%2" ).arg( icon_sizes[ i ] ).arg( icon_sizes[ i ] ) );
238 void FolderTreeView::setSortingPolicy( FolderTreeWidget::SortingPolicy policy, bool writeInConfig )
452 if ( !trySelectNextUnreadFolder( currentIndex(), MailCommon::Util::BackwardSearch, confirm ) ) {
494 bool FolderTreeView::ignoreUnreadFolder( const Akonadi::Collection &collection, bool confirm ) const
void slotFocusNextFolder()
Definition: foldertreeview.cpp:377
virtual int rowCount(const QModelIndex &parent) const =0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
void slotHeaderContextMenuChangeToolTipDisplayPolicy(bool)
Definition: foldertreeview.cpp:282
void slotFocusLastFolder()
Definition: foldertreeview.cpp:421
void disableSaveConfig()
Definition: foldertreeview.cpp:58
void slotHeaderContextMenuRequested(const QPoint &)
Definition: foldertreeview.cpp:138
void setSortingPolicy(FolderTreeWidget::SortingPolicy policy, bool writeInConfig=false)
Definition: foldertreeview.cpp:238
virtual void mousePressEvent(QMouseEvent *e)
Definition: foldertreeview.cpp:604
void setChecked(bool)
Akonadi::Collection trashCollectionFolder()
Definition: mailkernel.cpp:92
QVariant data() const
static QModelIndex indexAbove(QAbstractItemModel *model, const QModelIndex ¤t)
Definition: mailutil.cpp:310
bool isEmpty() const
Nevery display tooltips.
Definition: foldertreewidget.h:79
T value() const
Akonadi::Collection currentFolder() const
Definition: foldertreeview.cpp:591
void selectPrevUnreadFolder(bool confirm=false)
Definition: foldertreeview.cpp:449
QAction * addAction(QAction *action)
void slotFocusPrevFolder()
Definition: foldertreeview.cpp:404
Columns are NOT clickable, sorting is done by drag and drop.
Definition: foldertreewidget.h:87
void changeTooltipsPolicy(FolderTreeWidget::ToolTipDisplayPolicy)
void slotSelectFocusFolder()
Definition: foldertreeview.cpp:369
void slotHeaderContextMenuChangeHeader(bool)
Definition: foldertreeview.cpp:299
void slotHeaderContextMenuChangeSortingPolicy(bool)
Definition: foldertreeview.cpp:220
bool isValid() const
void disableContextMenuAndExtraColumn()
Definition: foldertreeview.cpp:74
SearchDirection
Describes the direction for searching next unread collection.
Definition: mailutil.h:88
int toInt(bool *ok) const
bool isUnreadFolder(const QModelIndex ¤t, QModelIndex &nextIndex, FolderTreeView::Move move, bool confirm)
Definition: foldertreeview.cpp:532
void restoreHeaderState(const QByteArray &data)
Definition: foldertreeview.cpp:611
void manualSortingChanged(bool actif)
Qt::MouseButton button() const
int row() const
Definition: mailutil.h:89
void setCurrentModelIndex(const QModelIndex &)
Definition: foldertreeview.cpp:349
virtual QVariant data(const QModelIndex &index, int role) const =0
void slotHeaderContextMenuChangeIconSize(bool)
Definition: foldertreeview.cpp:325
virtual ~FolderTreeView()
Definition: foldertreeview.cpp:54
QModelIndex selectNextFolder(const QModelIndex ¤t)
Definition: foldertreeview.cpp:387
static QModelIndex indexBelow(QAbstractItemModel *model, const QModelIndex ¤t)
Definition: mailutil.cpp:256
void showStatisticAnimation(bool anim)
Definition: foldertreeview.cpp:101
Columns are clickable, sorting is by the current column.
Definition: foldertreewidget.h:86
void setData(const QVariant &userData)
Definition: mailutil.h:90
void prefereCreateNewTab(bool)
void setCheckable(bool)
void keyboardSearch(const QString &)
Definition: foldertreeview.cpp:629
void setTooltipsPolicy(FolderTreeWidget::ToolTipDisplayPolicy)
Definition: foldertreeview.cpp:63
const QAbstractItemModel * model() const
QVariant data(int role) const
FolderTreeView(QWidget *parent=0, bool showUnreadCount=true)
Definition: foldertreeview.cpp:38
void selectModelIndex(const QModelIndex &)
Definition: foldertreeview.cpp:358
static QModelIndex lastChildOf(QAbstractItemModel *model, const QModelIndex ¤t)
Definition: foldertreeview.cpp:440
int column() const
void slotFocusFirstFolder()
Definition: foldertreeview.cpp:413
QString fromLatin1(const char *str, int size)
Akonadi::Collection outboxCollectionFolder()
Definition: mailkernel.cpp:106
MAILCOMMON_EXPORT QModelIndex nextUnreadCollection(QAbstractItemModel *model, const QModelIndex ¤t, SearchDirection direction, bool(*ignoreCollectionCallback)(const Akonadi::Collection &collection)=0)
Returns the index of the next unread collection following a given index.
Definition: mailutil.cpp:327
void selectNextUnreadFolder(bool confirm=false)
Definition: foldertreeview.cpp:430
Always display a tooltip when hovering over an item.
Definition: foldertreewidget.h:77
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.