MessageList::Core::View

#include <view.h>

Inheritance diagram for MessageList::Core::View:

Public Slots

void slotCollapseAllGroups ()
 
void slotCollapseCurrentItem ()
 
void slotExpandAllGroups ()
 
void slotExpandCurrentItem ()
 

Public Member Functions

 View (Widget *parent)
 
void aggregationMenuAboutToShow (QMenu *menu)
 
MessageItemSetReference createPersistentSet (const QVector< MessageItem * > &items)
 
QString currentFilterSearchString () const
 
QVector< Akonadi::MessageStatuscurrentFilterStatus () const
 
ItemcurrentItem () const
 
MessageItemcurrentMessageItem (bool selectIfNeeded=true) const
 
MessageList::Core::QuickSearchLine::SearchOptions currentOptions () const
 
QVector< MessageItem * > currentThreadAsMessageItemList () const
 
Delegate * delegate () const
 
void deletePersistentSet (MessageItemSetReference ref)
 
void ensureDisplayedWithParentsExpanded (Item *it)
 
bool focusNextMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem, bool loop)
 
bool focusPreviousMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem, bool loop)
 
void focusQuickSearch (const QString &selectedText)
 
bool isDisplayedWithParentsExpanded (Item *it) const
 
bool isThreaded () const
 
void markMessageItemsAsAboutToBeRemoved (const QList< MessageItem * > &items, bool bMark)
 
Modelmodel () const
 
QList< MessageItem * > persistentSetCurrentMessageItemList (MessageItemSetReference ref)
 
void reload ()
 
bool selectFirstMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem)
 
void selectFocusedMessageItem (bool centerItem)
 
QVector< MessageItem * > selectionAsMessageItemList (bool includeCollapsedChildren=true) const
 
bool selectionEmpty () const
 
bool selectLastMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem)
 
void selectMessageItems (const QVector< MessageItem * > &list)
 
bool selectNextMessageItem (MessageTypeFilter messageTypeFilter, ExistingSelectionBehaviour existingSelectionBehaviour, bool centerItem, bool loop)
 
bool selectPreviousMessageItem (MessageTypeFilter messageTypeFilter, ExistingSelectionBehaviour existingSelectionBehaviour, bool centerItem, bool loop)
 
void setAggregation (const Aggregation *aggregation)
 
void setAllGroupsExpanded (bool expand)
 
void setAllThreadsExpanded (bool expand)
 
void setCollapseItem (const QModelIndex &index)
 
void setCurrentMessageItem (MessageItem *it, bool center=false)
 
void setCurrentThreadExpanded (bool expand)
 
void setExpandItem (const QModelIndex &index)
 
void setQuickSearchClickMessage (const QString &msg)
 
virtual void setRowHidden (int row, const QModelIndex &parent, bool hide)
 
void setSortOrder (const SortOrder *sortOrder)
 
void setStorageModel (StorageModel *storageModel, PreSelectionMode preSelectionMode=PreSelectLastSelected)
 
void setTheme (Theme *theme)
 
void sortOrderMenuAboutToShow (QMenu *menu)
 
StorageModelstorageModel () const
 
void themeMenuAboutToShow (QMenu *menu)
 
- Public Member Functions inherited from QTreeView
 QTreeView (QWidget *parent)
 
bool allColumnsShowFocus () const const
 
int autoExpandDelay () const const
 
void collapse (const QModelIndex &index)
 
void collapseAll ()
 
void collapsed (const QModelIndex &index)
 
int columnAt (int x) const const
 
int columnViewportPosition (int column) const const
 
int columnWidth (int column) const const
 
virtual void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles) override
 
void expand (const QModelIndex &index)
 
void expandAll ()
 
void expanded (const QModelIndex &index)
 
void expandRecursively (const QModelIndex &index, int depth)
 
bool expandsOnDoubleClick () const const
 
void expandToDepth (int depth)
 
QHeaderViewheader () const const
 
void hideColumn (int column)
 
int indentation () const const
 
QModelIndex indexAbove (const QModelIndex &index) const const
 
virtual QModelIndex indexAt (const QPoint &point) const const override
 
QModelIndex indexBelow (const QModelIndex &index) const const
 
bool isAnimated () const const
 
bool isColumnHidden (int column) const const
 
bool isExpanded (const QModelIndex &index) const const
 
bool isFirstColumnSpanned (int row, const QModelIndex &parent) const const
 
bool isHeaderHidden () const const
 
bool isRowHidden (int row, const QModelIndex &parent) const const
 
bool isSortingEnabled () const const
 
bool itemsExpandable () const const
 
virtual void keyboardSearch (const QString &search) override
 
virtual void reset () override
 
void resetIndentation ()
 
void resizeColumnToContents (int column)
 
bool rootIsDecorated () const const
 
virtual void scrollTo (const QModelIndex &index, QAbstractItemView::ScrollHint hint) override
 
virtual void selectAll () override
 
void setAllColumnsShowFocus (bool enable)
 
void setAnimated (bool enable)
 
void setAutoExpandDelay (int delay)
 
void setColumnHidden (int column, bool hide)
 
void setColumnWidth (int column, int width)
 
void setExpanded (const QModelIndex &index, bool expanded)
 
void setExpandsOnDoubleClick (bool enable)
 
void setFirstColumnSpanned (int row, const QModelIndex &parent, bool span)
 
void setHeader (QHeaderView *header)
 
void setHeaderHidden (bool hide)
 
void setIndentation (int i)
 
void setItemsExpandable (bool enable)
 
virtual void setModel (QAbstractItemModel *model) override
 
virtual void setRootIndex (const QModelIndex &index) override
 
void setRootIsDecorated (bool show)
 
void setRowHidden (int row, const QModelIndex &parent, bool hide)
 
virtual void setSelectionModel (QItemSelectionModel *selectionModel) override
 
void setSortingEnabled (bool enable)
 
void setTreePosition (int index)
 
void setUniformRowHeights (bool uniform)
 
void setWordWrap (bool on)
 
void showColumn (int column)
 
void sortByColumn (int column, Qt::SortOrder order)
 
void sortByColumn (int column)
 
int treePosition () const const
 
bool uniformRowHeights () const const
 
virtual QRect visualRect (const QModelIndex &index) const const override
 
bool wordWrap () const const
 
- Public Member Functions inherited from QAbstractItemView
 QAbstractItemView (QWidget *parent)
 
void activated (const QModelIndex &index)
 
bool alternatingRowColors () const const
 
int autoScrollMargin () const const
 
void clearSelection ()
 
void clicked (const QModelIndex &index)
 
void closePersistentEditor (const QModelIndex &index)
 
QModelIndex currentIndex () const const
 
Qt::DropAction defaultDropAction () const const
 
void doubleClicked (const QModelIndex &index)
 
QAbstractItemView::DragDropMode dragDropMode () const const
 
bool dragDropOverwriteMode () const const
 
bool dragEnabled () const const
 
void edit (const QModelIndex &index)
 
QAbstractItemView::EditTriggers editTriggers () const const
 
void entered (const QModelIndex &index)
 
bool hasAutoScroll () const const
 
QAbstractItemView::ScrollMode horizontalScrollMode () const const
 
QSize iconSize () const const
 
void iconSizeChanged (const QSize &size)
 
QWidgetindexWidget (const QModelIndex &index) const const
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const const override
 
bool isPersistentEditorOpen (const QModelIndex &index) const const
 
QAbstractItemDelegateitemDelegate () const const
 
QAbstractItemDelegateitemDelegate (const QModelIndex &index) const const
 
QAbstractItemDelegateitemDelegateForColumn (int column) const const
 
QAbstractItemDelegateitemDelegateForRow (int row) const const
 
QAbstractItemModelmodel () const const
 
void openPersistentEditor (const QModelIndex &index)
 
void pressed (const QModelIndex &index)
 
void resetHorizontalScrollMode ()
 
void resetVerticalScrollMode ()
 
QModelIndex rootIndex () const const
 
void scrollToBottom ()
 
void scrollToTop ()
 
QAbstractItemView::SelectionBehavior selectionBehavior () const const
 
QAbstractItemView::SelectionMode selectionMode () const const
 
QItemSelectionModelselectionModel () const const
 
void setAlternatingRowColors (bool enable)
 
void setAutoScroll (bool enable)
 
void setAutoScrollMargin (int margin)
 
void setCurrentIndex (const QModelIndex &index)
 
void setDefaultDropAction (Qt::DropAction dropAction)
 
void setDragDropMode (QAbstractItemView::DragDropMode behavior)
 
void setDragDropOverwriteMode (bool overwrite)
 
void setDragEnabled (bool enable)
 
void setDropIndicatorShown (bool enable)
 
void setEditTriggers (QAbstractItemView::EditTriggers triggers)
 
void setHorizontalScrollMode (QAbstractItemView::ScrollMode mode)
 
void setIconSize (const QSize &size)
 
void setIndexWidget (const QModelIndex &index, QWidget *widget)
 
void setItemDelegate (QAbstractItemDelegate *delegate)
 
void setItemDelegateForColumn (int column, QAbstractItemDelegate *delegate)
 
void setItemDelegateForRow (int row, QAbstractItemDelegate *delegate)
 
void setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior)
 
void setSelectionMode (QAbstractItemView::SelectionMode mode)
 
void setTabKeyNavigation (bool enable)
 
void setTextElideMode (Qt::TextElideMode mode)
 
void setVerticalScrollMode (QAbstractItemView::ScrollMode mode)
 
bool showDropIndicator () const const
 
QSize sizeHintForIndex (const QModelIndex &index) const const
 
virtual int sizeHintForRow (int row) const const
 
bool tabKeyNavigation () const const
 
Qt::TextElideMode textElideMode () const const
 
void update (const QModelIndex &index)
 
QAbstractItemView::ScrollMode verticalScrollMode () const const
 
void viewportEntered ()
 
- Public Member Functions inherited from QAbstractScrollArea
 QAbstractScrollArea (QWidget *parent)
 
void addScrollBarWidget (QWidget *widget, Qt::Alignment alignment)
 
QWidgetcornerWidget () const const
 
QScrollBarhorizontalScrollBar () const const
 
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const const
 
QSize maximumViewportSize () const const
 
virtual QSize minimumSizeHint () const const override
 
QWidgetList scrollBarWidgets (Qt::Alignment alignment)
 
void setCornerWidget (QWidget *widget)
 
void setHorizontalScrollBar (QScrollBar *scrollBar)
 
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy)
 
void setSizeAdjustPolicy (QAbstractScrollArea::SizeAdjustPolicy policy)
 
virtual void setupViewport (QWidget *viewport)
 
void setVerticalScrollBar (QScrollBar *scrollBar)
 
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
 
void setViewport (QWidget *widget)
 
QAbstractScrollArea::SizeAdjustPolicy sizeAdjustPolicy () const const
 
virtual QSize sizeHint () const const override
 
QScrollBarverticalScrollBar () const const
 
Qt::ScrollBarPolicy verticalScrollBarPolicy () const const
 
QWidgetviewport () const const
 
- Public Member Functions inherited from QFrame
 QFrame (QWidget *parent, Qt::WindowFlags f)
 
QRect frameRect () const const
 
QFrame::Shadow frameShadow () const const
 
QFrame::Shape frameShape () const const
 
int frameStyle () const const
 
int frameWidth () const const
 
int lineWidth () const const
 
int midLineWidth () const const
 
void setFrameRect (const QRect &)
 
void setFrameShadow (QFrame::Shadow)
 
void setFrameShape (QFrame::Shape)
 
void setFrameStyle (int style)
 
void setLineWidth (int)
 
void setMidLineWidth (int)
 
- Public Member Functions inherited from QWidget
 QWidget (QWidget *parent, Qt::WindowFlags f)
 
bool acceptDrops () const const
 
QString accessibleDescription () const const
 
QString accessibleName () const const
 
QList< QAction * > actions () const const
 
void activateWindow ()
 
void addAction (QAction *action)
 
void addActions (QList< QAction * > actions)
 
void adjustSize ()
 
bool autoFillBackground () const const
 
QPalette::ColorRole backgroundRole () const const
 
QBackingStorebackingStore () const const
 
QSize baseSize () const const
 
QWidgetchildAt (int x, int y) const const
 
QWidgetchildAt (const QPoint &p) const const
 
QRect childrenRect () const const
 
QRegion childrenRegion () const const
 
void clearFocus ()
 
void clearMask ()
 
bool close ()
 
QMargins contentsMargins () const const
 
QRect contentsRect () const const
 
Qt::ContextMenuPolicy contextMenuPolicy () const const
 
QCursor cursor () const const
 
void customContextMenuRequested (const QPoint &pos)
 
WId effectiveWinId () const const
 
void ensurePolished () const const
 
Qt::FocusPolicy focusPolicy () const const
 
QWidgetfocusProxy () const const
 
QWidgetfocusWidget () const const
 
const QFontfont () const const
 
QFontInfo fontInfo () const const
 
QFontMetrics fontMetrics () const const
 
QPalette::ColorRole foregroundRole () const const
 
QRect frameGeometry () const const
 
QSize frameSize () const const
 
const QRectgeometry () const const
 
void getContentsMargins (int *left, int *top, int *right, int *bottom) const const
 
QPixmap grab (const QRect &rectangle)
 
void grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags)
 
void grabKeyboard ()
 
void grabMouse ()
 
void grabMouse (const QCursor &cursor)
 
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
 
QGraphicsEffectgraphicsEffect () const const
 
QGraphicsProxyWidgetgraphicsProxyWidget () const const
 
bool hasEditFocus () const const
 
bool hasFocus () const const
 
virtual bool hasHeightForWidth () const const
 
bool hasMouseTracking () const const
 
bool hasTabletTracking () const const
 
int height () const const
 
virtual int heightForWidth (int w) const const
 
void hide ()
 
Qt::InputMethodHints inputMethodHints () const const
 
void insertAction (QAction *before, QAction *action)
 
void insertActions (QAction *before, QList< QAction * > actions)
 
bool isActiveWindow () const const
 
bool isAncestorOf (const QWidget *child) const const
 
bool isEnabled () const const
 
bool isEnabledTo (const QWidget *ancestor) const const
 
bool isEnabledToTLW () const const
 
bool isFullScreen () const const
 
bool isHidden () const const
 
bool isMaximized () const const
 
bool isMinimized () const const
 
bool isModal () const const
 
bool isTopLevel () const const
 
bool isVisible () const const
 
bool isVisibleTo (const QWidget *ancestor) const const
 
bool isWindow () const const
 
bool isWindowModified () const const
 
QLayoutlayout () const const
 
Qt::LayoutDirection layoutDirection () const const
 
QLocale locale () const const
 
void lower ()
 
QPoint mapFrom (const QWidget *parent, const QPoint &pos) const const
 
QPoint mapFromGlobal (const QPoint &pos) const const
 
QPoint mapFromParent (const QPoint &pos) const const
 
QPoint mapTo (const QWidget *parent, const QPoint &pos) const const
 
QPoint mapToGlobal (const QPoint &pos) const const
 
QPoint mapToParent (const QPoint &pos) const const
 
QRegion mask () const const
 
int maximumHeight () const const
 
QSize maximumSize () const const
 
int maximumWidth () const const
 
int minimumHeight () const const
 
QSize minimumSize () const const
 
int minimumWidth () const const
 
void move (int x, int y)
 
void move (const QPoint &)
 
QWidgetnativeParentWidget () const const
 
QWidgetnextInFocusChain () const const
 
QRect normalGeometry () const const
 
void overrideWindowFlags (Qt::WindowFlags flags)
 
virtual QPaintEnginepaintEngine () const const override
 
const QPalettepalette () const const
 
QWidgetparentWidget () const const
 
QPoint pos () const const
 
QWidgetpreviousInFocusChain () const const
 
 QWIDGETSIZE_MAX QWIDGETSIZE_MAX
 
void raise ()
 
QRect rect () const const
 
void releaseKeyboard ()
 
void releaseMouse ()
 
void releaseShortcut (int id)
 
void removeAction (QAction *action)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void repaint ()
 
void repaint (int x, int y, int w, int h)
 
void repaint (const QRect &rect)
 
void repaint (const QRegion &rgn)
 
void resize (int w, int h)
 
void resize (const QSize &)
 
bool restoreGeometry (const QByteArray &geometry)
 
QByteArray saveGeometry () const const
 
QScreenscreen () const const
 
void scroll (int dx, int dy)
 
void scroll (int dx, int dy, const QRect &r)
 
void setAcceptDrops (bool on)
 
void setAccessibleDescription (const QString &description)
 
void setAccessibleName (const QString &name)
 
void setAttribute (Qt::WidgetAttribute attribute, bool on)
 
void setAutoFillBackground (bool enabled)
 
void setBackgroundRole (QPalette::ColorRole role)
 
void setBaseSize (int basew, int baseh)
 
void setBaseSize (const QSize &)
 
void setContentsMargins (const QMargins &margins)
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
 
void setCursor (const QCursor &)
 
void setDisabled (bool disable)
 
void setEditFocus (bool enable)
 
void setEnabled (bool)
 
void setFixedHeight (int h)
 
void setFixedSize (const QSize &s)
 
void setFixedSize (int w, int h)
 
void setFixedWidth (int w)
 
void setFocus (Qt::FocusReason reason)
 
void setFocus ()
 
void setFocusPolicy (Qt::FocusPolicy policy)
 
void setFocusProxy (QWidget *w)
 
void setFont (const QFont &)
 
void setForegroundRole (QPalette::ColorRole role)
 
void setGeometry (const QRect &)
 
void setGeometry (int x, int y, int w, int h)
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void setHidden (bool hidden)
 
void setInputMethodHints (Qt::InputMethodHints hints)
 
void setLayout (QLayout *layout)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void setLocale (const QLocale &locale)
 
void setMask (const QBitmap &bitmap)
 
void setMask (const QRegion &region)
 
void setMaximumHeight (int maxh)
 
void setMaximumSize (int maxw, int maxh)
 
void setMaximumSize (const QSize &)
 
void setMaximumWidth (int maxw)
 
void setMinimumHeight (int minh)
 
void setMinimumSize (const QSize &)
 
void setMinimumSize (int minw, int minh)
 
void setMinimumWidth (int minw)
 
void setMouseTracking (bool enable)
 
void setPalette (const QPalette &)
 
void setParent (QWidget *parent, Qt::WindowFlags f)
 
void setParent (QWidget *parent)
 
void setShortcutAutoRepeat (int id, bool enable)
 
void setShortcutEnabled (int id, bool enable)
 
void setSizeIncrement (const QSize &)
 
void setSizeIncrement (int w, int h)
 
void setSizePolicy (QSizePolicy)
 
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
 
void setStatusTip (const QString &)
 
void setStyle (QStyle *style)
 
void setStyleSheet (const QString &styleSheet)
 
void setTabletTracking (bool enable)
 
void setToolTip (const QString &)
 
void setToolTipDuration (int msec)
 
void setUpdatesEnabled (bool enable)
 
void setupUi (QWidget *widget)
 
virtual void setVisible (bool visible)
 
void setWhatsThis (const QString &)
 
void setWindowFilePath (const QString &filePath)
 
void setWindowFlag (Qt::WindowType flag, bool on)
 
void setWindowFlags (Qt::WindowFlags type)
 
void setWindowIcon (const QIcon &icon)
 
void setWindowIconText (const QString &)
 
void setWindowModality (Qt::WindowModality windowModality)
 
void setWindowModified (bool)
 
void setWindowOpacity (qreal level)
 
void setWindowRole (const QString &role)
 
void setWindowState (Qt::WindowStates windowState)
 
void setWindowTitle (const QString &)
 
void show ()
 
void showFullScreen ()
 
void showMaximized ()
 
void showMinimized ()
 
void showNormal ()
 
QSize size () const const
 
QSize sizeIncrement () const const
 
QSizePolicy sizePolicy () const const
 
void stackUnder (QWidget *w)
 
QString statusTip () const const
 
QStylestyle () const const
 
QString styleSheet () const const
 
bool testAttribute (Qt::WidgetAttribute attribute) const const
 
QString toolTip () const const
 
int toolTipDuration () const const
 
QWidgettopLevelWidget () const const
 
bool underMouse () const const
 
void ungrabGesture (Qt::GestureType gesture)
 
void unsetCursor ()
 
void unsetLayoutDirection ()
 
void unsetLocale ()
 
void update (int x, int y, int w, int h)
 
void update (const QRect &rect)
 
void update (const QRegion &rgn)
 
void update ()
 
void updateGeometry ()
 
bool updatesEnabled () const const
 
QRegion visibleRegion () const const
 
QString whatsThis () const const
 
int width () const const
 
QWidgetwindow () const const
 
QString windowFilePath () const const
 
Qt::WindowFlags windowFlags () const const
 
QWindowwindowHandle () const const
 
QIcon windowIcon () const const
 
void windowIconChanged (const QIcon &icon)
 
QString windowIconText () const const
 
void windowIconTextChanged (const QString &iconText)
 
Qt::WindowModality windowModality () const const
 
qreal windowOpacity () const const
 
QString windowRole () const const
 
Qt::WindowStates windowState () const const
 
QString windowTitle () const const
 
void windowTitleChanged (const QString &title)
 
Qt::WindowType windowType () const const
 
WId winId () const const
 
int x () const const
 
int y () const const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo ()
 
void dumpObjectInfo () const const
 
void dumpObjectTree ()
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
qobject_cast (QObject *object)
 
qobject_cast (const QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Public Member Functions inherited from QPaintDevice
int colorCount () const const
 
int depth () const const
 
int devicePixelRatio () const const
 
qreal devicePixelRatioF () const const
 
int height () const const
 
int heightMM () const const
 
int logicalDpiX () const const
 
int logicalDpiY () const const
 
bool paintingActive () const const
 
int physicalDpiX () const const
 
int physicalDpiY () const const
 
int width () const const
 
int widthMM () const const
 

Protected Slots

void applyThemeColumns ()
 
void saveThemeColumnState ()
 
void slotAdjustColumnSizes ()
 
void slotDisplayTooltips (bool showTooltips)
 
void slotHeaderContextMenuRequested (const QPoint &pnt)
 
void slotHeaderSectionResized (int logicalIndex, int oldWidth, int newWidth)
 
void slotSelectionChanged (const QItemSelection &current, const QItemSelection &)
 
void slotShowDefaultColumns ()
 
void slotShowHideColumn (int columnIndex)
 

Protected Member Functions

void changeEvent (QEvent *e) override
 
void changeMessageStatus (MessageItem *it, Akonadi::MessageStatus set, Akonadi::MessageStatus unset)
 
void changeMessageStatusRead (MessageItem *it, bool read)
 
ItemdeepestExpandedChild (Item *referenceItem) const
 
void dragEnterEvent (QDragEnterEvent *e) override
 
void dragMoveEvent (QDragMoveEvent *e) override
 
void dropEvent (QDropEvent *e) override
 
bool event (QEvent *e) override
 
ItemfirstMessageItem (MessageTypeFilter messageTypeFilter)
 
void growOrShrinkExistingSelection (const QModelIndex &newSelectedIndex, bool movingUp)
 
void ignoreCurrentChanges (bool ignore)
 
void ignoreUpdateGeometries (bool ignore)
 
bool isScrollingLocked () const
 
ItemlastMessageItem (MessageTypeFilter messageTypeFilter)
 
ItemmessageItemAfter (Item *referenceItem, MessageTypeFilter messageTypeFilter, bool loop)
 
ItemmessageItemBefore (Item *referenceItem, MessageTypeFilter messageTypeFilter, bool loop)
 
void modelAboutToEmitLayoutChanged ()
 
void modelEmittedLayoutChanged ()
 
void modelFinishedLoading ()
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
ItemnextMessageItem (MessageTypeFilter messageTypeFilter, bool loop)
 
void paintEvent (QPaintEvent *event) override
 
ItempreviousMessageItem (MessageTypeFilter messageTypeFilter, bool loop)
 
void resizeEvent (QResizeEvent *e) override
 
void setChildrenExpanded (const Item *parent, bool expand)
 
void showEvent (QShowEvent *e) override
 
int sizeHintForColumn (int logicalColumnIndex) const override
 
void triggerDelayedApplyThemeColumns ()
 
void triggerDelayedSaveThemeColumnState ()
 
void updateGeometries () override
 
- Protected Member Functions inherited from QTreeView
void columnCountChanged (int oldCount, int newCount)
 
void columnMoved ()
 
void columnResized (int column, int oldSize, int newSize)
 
virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous) override
 
virtual void drawBranches (QPainter *painter, const QRect &rect, const QModelIndex &index) const const
 
virtual void drawRow (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const const
 
void drawTree (QPainter *painter, const QRegion &region) const const
 
virtual int horizontalOffset () const const override
 
int indexRowSizeHint (const QModelIndex &index) const const
 
virtual bool isIndexHidden (const QModelIndex &index) const const override
 
virtual void keyPressEvent (QKeyEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual QModelIndex moveCursor (QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
 
int rowHeight (const QModelIndex &index) const const
 
virtual void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override
 
virtual void rowsInserted (const QModelIndex &parent, int start, int end) override
 
void rowsRemoved (const QModelIndex &parent, int start, int end)
 
virtual void scrollContentsBy (int dx, int dy) override
 
virtual QModelIndexList selectedIndexes () const const override
 
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 
virtual void setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags command) override
 
virtual void timerEvent (QTimerEvent *event) override
 
virtual int verticalOffset () const const override
 
virtual bool viewportEvent (QEvent *event) override
 
virtual QSize viewportSizeHint () const const override
 
virtual QRegion visualRegionForSelection (const QItemSelection &selection) const const override
 
- Protected Member Functions inherited from QAbstractItemView
virtual void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
 
virtual void commitData (QWidget *editor)
 
QPoint dirtyRegionOffset () const const
 
virtual void dragLeaveEvent (QDragLeaveEvent *event) override
 
QAbstractItemView::DropIndicatorPosition dropIndicatorPosition () const const
 
virtual bool edit (const QModelIndex &index, QAbstractItemView::EditTrigger trigger, QEvent *event)
 
virtual void editorDestroyed (QObject *editor)
 
virtual bool eventFilter (QObject *object, QEvent *event) override
 
void executeDelayedItemsLayout ()
 
virtual void focusInEvent (QFocusEvent *event) override
 
virtual bool focusNextPrevChild (bool next) override
 
virtual void focusOutEvent (QFocusEvent *event) override
 
int horizontalStepsPerItem () const const
 
virtual void inputMethodEvent (QInputMethodEvent *event) override
 
void scheduleDelayedItemsLayout ()
 
void scrollDirtyRegion (int dx, int dy)
 
virtual QItemSelectionModel::SelectionFlags selectionCommand (const QModelIndex &index, const QEvent *event) const const
 
void setDirtyRegion (const QRegion &region)
 
void setHorizontalStepsPerItem (int steps)
 
void setState (QAbstractItemView::State state)
 
void setVerticalStepsPerItem (int steps)
 
virtual void startDrag (Qt::DropActions supportedActions)
 
QAbstractItemView::State state () const const
 
int verticalStepsPerItem () const const
 
virtual QStyleOptionViewItem viewOptions () const const
 
- Protected Member Functions inherited from QAbstractScrollArea
virtual void contextMenuEvent (QContextMenuEvent *e) override
 
void setViewportMargins (int left, int top, int right, int bottom)
 
void setViewportMargins (const QMargins &margins)
 
QMargins viewportMargins () const const
 
virtual void wheelEvent (QWheelEvent *e) override
 
- Protected Member Functions inherited from QFrame
void initStyleOption (QStyleOptionFrame *option) const const
 
- Protected Member Functions inherited from QWidget
virtual void actionEvent (QActionEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
virtual void enterEvent (QEvent *event)
 
bool focusNextChild ()
 
bool focusPreviousChild ()
 
virtual void hideEvent (QHideEvent *event)
 
virtual void initPainter (QPainter *painter) const const override
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void leaveEvent (QEvent *event)
 
virtual int metric (QPaintDevice::PaintDeviceMetric m) const const override
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool nativeEvent (const QByteArray &eventType, void *message, long *result)
 
virtual void tabletEvent (QTabletEvent *event)
 
void updateMicroFocus ()
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 

Additional Inherited Members

- Public Types inherited from QAbstractItemView
enum  CursorAction
 
enum  DragDropMode
 
enum  DropIndicatorPosition
 
enum  EditTrigger
 
enum  ScrollHint
 
enum  ScrollMode
 
enum  SelectionBehavior
 
enum  SelectionMode
 
enum  State
 
- Public Types inherited from QAbstractScrollArea
enum  SizeAdjustPolicy
 
- Public Types inherited from QFrame
enum  Shadow
 
enum  Shape
 
enum  StyleMask
 
- Public Types inherited from QWidget
enum  RenderFlag
 
- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric
 
- Properties inherited from QTreeView
 allColumnsShowFocus
 
 animated
 
 autoExpandDelay
 
 expandsOnDoubleClick
 
 headerHidden
 
 indentation
 
 itemsExpandable
 
 rootIsDecorated
 
 sortingEnabled
 
 uniformRowHeights
 
 wordWrap
 
- Properties inherited from QAbstractItemView
 alternatingRowColors
 
 autoScroll
 
 autoScrollMargin
 
 defaultDropAction
 
 dragDropMode
 
 dragDropOverwriteMode
 
 dragEnabled
 
 editTriggers
 
 horizontalScrollMode
 
 iconSize
 
 selectionBehavior
 
 selectionMode
 
 showDropIndicator
 
 tabKeyNavigation
 
 textElideMode
 
 verticalScrollMode
 
- Properties inherited from QAbstractScrollArea
 horizontalScrollBarPolicy
 
 sizeAdjustPolicy
 
 verticalScrollBarPolicy
 
- Properties inherited from QFrame
 frameRect
 
 frameShadow
 
 frameShape
 
 frameWidth
 
 lineWidth
 
 midLineWidth
 
- Properties inherited from QWidget
 acceptDrops
 
 accessibleDescription
 
 accessibleName
 
 autoFillBackground
 
 baseSize
 
 childrenRect
 
 childrenRegion
 
 contextMenuPolicy
 
 cursor
 
 enabled
 
 focus
 
 focusPolicy
 
 font
 
 frameGeometry
 
 frameSize
 
 fullScreen
 
 geometry
 
 height
 
 inputMethodHints
 
 isActiveWindow
 
 layoutDirection
 
 locale
 
 maximized
 
 maximumHeight
 
 maximumSize
 
 maximumWidth
 
 minimized
 
 minimumHeight
 
 minimumSize
 
 minimumSizeHint
 
 minimumWidth
 
 modal
 
 mouseTracking
 
 normalGeometry
 
 palette
 
 pos
 
 rect
 
 size
 
 sizeHint
 
 sizeIncrement
 
 sizePolicy
 
 statusTip
 
 styleSheet
 
 tabletTracking
 
 toolTip
 
 toolTipDuration
 
 updatesEnabled
 
 visible
 
 whatsThis
 
 width
 
 windowFilePath
 
 windowFlags
 
 windowIcon
 
 windowIconText
 
 windowModality
 
 windowModified
 
 windowOpacity
 
 windowTitle
 
 x
 
 y
 
- Properties inherited from QObject
 objectName
 
- Static Public Member Functions inherited from QWidget
QWidgetcreateWindowContainer (QWindow *window, QWidget *parent, Qt::WindowFlags flags)
 
QWidgetfind (WId id)
 
QWidgetkeyboardGrabber ()
 
QWidgetmouseGrabber ()
 
void setTabOrder (QWidget *first, QWidget *second)
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QAbstractItemView
 AboveItem
 
 AllEditTriggers
 
 AnimatingState
 
 AnyKeyPressed
 
 BelowItem
 
 CollapsingState
 
 ContiguousSelection
 
 CurrentChanged
 
 DoubleClicked
 
 DragDrop
 
 DraggingState
 
 DragOnly
 
 DragSelectingState
 
 DropOnly
 
 EditingState
 
 EditKeyPressed
 
typedef EditTriggers
 
 EnsureVisible
 
 ExpandingState
 
 ExtendedSelection
 
 InternalMove
 
 MoveDown
 
 MoveEnd
 
 MoveHome
 
 MoveLeft
 
 MoveNext
 
 MovePageDown
 
 MovePageUp
 
 MovePrevious
 
 MoveRight
 
 MoveUp
 
 MultiSelection
 
 NoDragDrop
 
 NoEditTriggers
 
 NoSelection
 
 NoState
 
 OnItem
 
 OnViewport
 
 PositionAtBottom
 
 PositionAtCenter
 
 PositionAtTop
 
 ScrollPerItem
 
 ScrollPerPixel
 
 SelectColumns
 
 SelectedClicked
 
 SelectItems
 
 SelectRows
 
 SingleSelection
 
- Public Attributes inherited from QAbstractScrollArea
 AdjustIgnored
 
 AdjustToContents
 
 AdjustToContentsOnFirstShow
 
- Public Attributes inherited from QFrame
 Box
 
 HLine
 
 NoFrame
 
 Panel
 
 Plain
 
 Raised
 
 Shadow_Mask
 
 Shape_Mask
 
 StyledPanel
 
 Sunken
 
 VLine
 
 WinPanel
 
- Public Attributes inherited from QWidget
 DrawChildren
 
 DrawWindowBackground
 
 IgnoreMask
 
typedef RenderFlags
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Public Attributes inherited from QPaintDevice
 PdmDepth
 
 PdmDevicePixelRatio
 
 PdmDevicePixelRatioScaled
 
 PdmDpiX
 
 PdmDpiY
 
 PdmHeight
 
 PdmHeightMM
 
 PdmNumColors
 
 PdmPhysicalDpiX
 
 PdmPhysicalDpiY
 
 PdmWidth
 
 PdmWidthMM
 

Detailed Description

The MessageList::View is the real display of the message list.

It is based on QTreeView, has a Model that manipulates the underlying message storage and a Delegate that is responsable of painting the items.

Definition at line 45 of file view.h.

Member Function Documentation

void View::applyThemeColumns ( )
protectedslot

Applies the theme columns to this view.

Columns visible by default are shown, the other are hidden. Visible columns are assigned space inside the view by using the size hints and some heuristics.

Definition at line 296 of file view.cpp.

void View::changeEvent ( QEvent e)
overrideprotectedvirtual

Reimplemented in order to catch palette, font and style changes.

Reimplemented from QFrame.

Definition at line 2256 of file view.cpp.

void View::changeMessageStatus ( MessageItem it,
Akonadi::MessageStatus  set,
Akonadi::MessageStatus  unset 
)
protected

Performs a change in the specified MessageItem status.

It first applies the change to the cached state in MessageItem and then requests our parent widget to act on the storage.

Definition at line 2027 of file view.cpp.

MessageItemSetReference View::createPersistentSet ( const QVector< MessageItem * > &  items)

Creates a persistent set for the specified MessageItems and returns its reference.

Later you can use this reference to retrieve the list of MessageItems that are still valid. See persistentSetCurrentMessageList() for that.

Persistent sets consume resources (both memory and CPU time while manipulating the view) so be sure to call deletePersistentSet() when you no longer need it.

Definition at line 1652 of file view.cpp.

QString View::currentFilterSearchString ( ) const

Returns the search term in the current quicksearch field.

Definition at line 2683 of file view.cpp.

QVector< Akonadi::MessageStatus > View::currentFilterStatus ( ) const

Returns the Akonadi::MessageStatus in the current quicksearch field.

Definition at line 2673 of file view.cpp.

Item * View::currentItem ( ) const

Returns the current Item (that is bound to current StorageModel).

May return 0 if there is no current item or no current StorageModel. If the current item isn't currently selected (so is only focused) then it's selected when this function is called.

Definition at line 828 of file view.cpp.

MessageItem * View::currentMessageItem ( bool  selectIfNeeded = true) const

Returns the current MessageItem (that is bound to current StorageModel).

May return 0 if there is no current message or no current StorageModel. If the current message item isn't currently selected (so is only focused) then it's selected when this function is called, unless selectIfNeeded is false.

Definition at line 839 of file view.cpp.

QVector< MessageItem * > View::currentThreadAsMessageItemList ( ) const

Returns the MessageItems bound to the current StorageModel that are part of the current thread.

The current thread is the thread that contains currentMessageItem(). The list may be empty if there is no currentMessageItem() or no StorageModel.

The returned list is guaranteed to be valid only until you return control to the main even loop. Don't store it for any longer. If you need to reference this set of messages at a later stage then take a look at createPersistentSet().

Definition at line 922 of file view.cpp.

Item * View::deepestExpandedChild ( Item referenceItem) const
protected

Returns the deepest child that is visible (i.e.

not in a collapsed tree) of the specified reference item.

Definition at line 1231 of file view.cpp.

Delegate * View::delegate ( ) const

Returns the Delegate attached to this View.

You probably never need to manipulate it directly. Model uses it to obtain size hints.

Definition at line 146 of file view.cpp.

void View::deletePersistentSet ( MessageItemSetReference  ref)

Deletes the persistent set pointed by the specified reference.

If the set does not exist anymore, nothing happens.

Definition at line 1662 of file view.cpp.

void View::dragEnterEvent ( QDragEnterEvent e)
overrideprotectedvirtual

Reimplemented in order to handle message DnD.

Reimplemented from QAbstractItemView.

Definition at line 2241 of file view.cpp.

void View::dragMoveEvent ( QDragMoveEvent e)
overrideprotectedvirtual

Reimplemented in order to handle message DnD.

Reimplemented from QTreeView.

Definition at line 2246 of file view.cpp.

void View::dropEvent ( QDropEvent e)
overrideprotectedvirtual

Reimplemented in order to handle message DnD.

Reimplemented from QAbstractItemView.

Definition at line 2251 of file view.cpp.

void View::ensureDisplayedWithParentsExpanded ( Item it)

Makes sure that the specified is currently viewable by the user.

This means that the user can see the message (by eventually scrolling the view).

Definition at line 1814 of file view.cpp.

bool View::event ( QEvent e)
overrideprotectedvirtual

Reimplemented in order to catch QHelpEvent.

Reimplemented from QAbstractItemView.

Definition at line 2281 of file view.cpp.

Item * View::firstMessageItem ( MessageTypeFilter  messageTypeFilter)
protected

Finds the first message item in the view.

messageTypeFilter can be used to limit the selection to a certain category of messages.

Returns 0 if the view is empty.

Definition at line 1221 of file view.cpp.

bool View::focusNextMessageItem ( MessageTypeFilter  messageTypeFilter,
bool  centerItem,
bool  loop 
)

Focuses the next message item in the view without actually selecting it.

messageTypeFilter can be used to limit the selection to a certain category of messages.

If centerItem is true then the specified item will be positioned at the center of the view, if possible. If loop is true then the "next" algorithm will restart from the beginning of the list if the end is reached, otherwise it will just stop returning false.

Definition at line 1522 of file view.cpp.

bool View::focusPreviousMessageItem ( MessageTypeFilter  messageTypeFilter,
bool  centerItem,
bool  loop 
)

Focuses the previous message item in the view without actually selecting it.

If unread is true then focuses the previous unread message item. If centerItem is true then the specified item will be positioned at the center of the view, if possible. If loop is true then the "previous" algorithm will restart from the end of the list if the beginning is reached, otherwise it will just stop returning false.

Definition at line 1546 of file view.cpp.

void View::focusQuickSearch ( const QString selectedText)

Sets the focus on the quick search line of the currently active tab.

Definition at line 2668 of file view.cpp.

void View::growOrShrinkExistingSelection ( const QModelIndex newSelectedIndex,
bool  movingUp 
)
protected

This is used by the selection functions to grow/shrink the existing selection according to the newly selected item passed as parameter.

If movingUp is true then: if the newly selected item is above the current selection top then the selection is expanded, otherwise it's shrunk. If movingUp is false then: if the newly selected item is below the current selection bottom then the selection is expanded otherwise it's shrunk.

Definition at line 1365 of file view.cpp.

void View::ignoreCurrentChanges ( bool  ignore)
protected

This is called by the model to insulate us from certain QTreeView signals This is because they may be spurious (caused by Model item rearrangements).

Definition at line 151 of file view.cpp.

void View::ignoreUpdateGeometries ( bool  ignore)
protected

Used to enable/disable the ignoring of updateGeometries() calls.

Definition at line 165 of file view.cpp.

bool View::isDisplayedWithParentsExpanded ( Item it) const

Returns true if the specified item is currently displayed in the tree and has all the parents expanded.

This means that the user can see the message (by eventually scrolling the view).

Definition at line 1844 of file view.cpp.

bool View::isScrollingLocked ( ) const
protected

Returns true if the vertical scrollbar should keep to the top or bottom while inserting items.

Definition at line 170 of file view.cpp.

bool View::isThreaded ( ) const

Returns true if the current Aggregation is threaded, false otherwise (or if there is no current Aggregation).

Definition at line 1890 of file view.cpp.

Item * View::lastMessageItem ( MessageTypeFilter  messageTypeFilter)
protected

Finds the last message item in the view.

messageTypeFilter can be used to limit the selection to a certain category of messages.

Returns nullptr if the view is empty.

Definition at line 1355 of file view.cpp.

void View::markMessageItemsAsAboutToBeRemoved ( const QList< MessageItem * > &  items,
bool  bMark 
)

If bMark is true this function marks the messages as "about to be removed" so they appear dimmer and aren't selectable in the view.

If bMark is false then this function clears the "about to be removed" state for the specified MessageItems.

Definition at line 1667 of file view.cpp.

Item * View::messageItemAfter ( Item referenceItem,
MessageTypeFilter  messageTypeFilter,
bool  loop 
)
protected

Finds message item that comes "after" the reference item.

If reference item is 0 then the search starts from the beginning. Returns 0 if no next message could be found.

messageTypeFilter can be used to limit the selection to a certain category of messages. If loop is true then restarts from the beginning if end is reached, otherwise it just returns 0 in this case.

Definition at line 1113 of file view.cpp.

Item * View::messageItemBefore ( Item referenceItem,
MessageTypeFilter  messageTypeFilter,
bool  loop 
)
protected

Finds message item that comes "before" the reference item.

If reference item is 0 then the search starts from the end. Returns 0 if no next message could be found.

messageTypeFilter can be used to limit the selection to a certain category of messages. If loop is true then restarts from the beginning if end is reached, otherwise it just returns 0 in this case.

Definition at line 1242 of file view.cpp.

Model * View::model ( ) const

Returns the Model attached to this View.

You probably never need to manipulate it directly.

Definition at line 141 of file view.cpp.

void View::modelFinishedLoading ( )
protected

This is called by Model to signal that the initial loading stage of a newly attached StorageModel is terminated.

Definition at line 1644 of file view.cpp.

void View::mouseDoubleClickEvent ( QMouseEvent e)
overrideprotectedvirtual

Reimplemented in order to handle double clicks with sub-item precision.

Reimplemented from QTreeView.

Definition at line 1951 of file view.cpp.

void View::mouseMoveEvent ( QMouseEvent e)
overrideprotectedvirtual

Reimplemented in order to handle DnD.

Reimplemented from QTreeView.

Definition at line 2190 of file view.cpp.

void View::mousePressEvent ( QMouseEvent e)
overrideprotectedvirtual

Reimplemented in order to handle clicks with sub-item precision.

Reimplemented from QTreeView.

Definition at line 2054 of file view.cpp.

Item * View::nextMessageItem ( MessageTypeFilter  messageTypeFilter,
bool  loop 
)
protected

Finds the next message item with respect to the current item.

If there is no current item then the search starts from the beginning. Returns 0 if no next message could be found.

messageTypeFilter can be used to limit the selection to a certain category of messages. If loop is true then restarts from the beginning if end is reached, otherwise it just returns 0 in this case.

Definition at line 1226 of file view.cpp.

QList< MessageItem * > View::persistentSetCurrentMessageItemList ( MessageItemSetReference  ref)

Returns the list of MessageItems that are still existing in the set pointed by the specified reference.

This list will contain at most the messages that you have passed to createPersistentSet() but may contain less (even 0) if these MessageItem object were removed from the view for some reason.

Definition at line 1657 of file view.cpp.

Item * View::previousMessageItem ( MessageTypeFilter  messageTypeFilter,
bool  loop 
)
protected

Finds the previous message item with respect to the current item.

If there is no current item then the search starts from the end. Returns 0 if no previous message could be found.

messageTypeFilter can be used to limit the selection to a certain category of messages. If loop is true then restarts from the end if beginning is reached, otherwise it just return 0 in this case.

Definition at line 1360 of file view.cpp.

void View::reload ( )

Triggers a reload of the view in order to re-display the current folder.

Call this function after changing the Aggregation or the Theme.

Definition at line 256 of file view.cpp.

void View::resizeEvent ( QResizeEvent e)
overrideprotectedvirtual

Reimplemented in order to resize columns when header is not visible.

Reimplemented from QAbstractItemView.

Definition at line 608 of file view.cpp.

void View::saveThemeColumnState ( )
protectedslot

Saves the state of the columns (width and visibility) to the currently selected theme object.

Definition at line 561 of file view.cpp.

bool View::selectFirstMessageItem ( MessageTypeFilter  messageTypeFilter,
bool  centerItem 
)

Selects the first message item in the view that matches messageTypeFilter.

If centerItem is true then the specified item will be positioned at the center of the view, if possible.

Definition at line 1588 of file view.cpp.

void View::selectFocusedMessageItem ( bool  centerItem)

Selects the currently focused message item.

If the currently focused message is already selected (which is very likely) nothing happens. If centerItem is true then the specified item will be positioned at the center of the view, if possible.

Definition at line 1570 of file view.cpp.

QVector< MessageItem * > View::selectionAsMessageItemList ( bool  includeCollapsedChildren = true) const

Returns the currently selected MessageItems (bound to current StorageModel).

The list may be empty if there are no selected messages or no StorageModel.

If includeCollapsedChildren is true then the children of the selected but collapsed items are also added to the list.

The returned list is guaranteed to be valid only until you return control to the main even loop. Don't store it for any longer. If you need to reference this set of messages at a later stage then take a look at createPersistentSet().

Definition at line 879 of file view.cpp.

bool View::selectionEmpty ( ) const

Fast function that determines if the selection is empty.

Definition at line 874 of file view.cpp.

bool View::selectLastMessageItem ( MessageTypeFilter  messageTypeFilter,
bool  centerItem 
)

Selects the last message item in the view that matches messageTypeFilter.

If centerItem is true then the specified item will be positioned at the center of the view, if possible.

Definition at line 1616 of file view.cpp.

void View::selectMessageItems ( const QVector< MessageItem * > &  list)

Selects the specified MessageItems.

The current selection is NOT removed. Use clearSelection() for that purpose.

Definition at line 1076 of file view.cpp.

bool View::selectNextMessageItem ( MessageTypeFilter  messageTypeFilter,
ExistingSelectionBehaviour  existingSelectionBehaviour,
bool  centerItem,
bool  loop 
)

Selects the next message item in the view.

messageTypeFilter can be used to limit the selection to a certain category of messages.

existingSelectionBehaviour specifies how the existing selection is manipulated. It may be cleared, expanded or grown/shrinked.

If centerItem is true then the specified item will be positioned at the center of the view, if possible. If loop is true then the "next" algorithm will restart from the beginning of the list if the end is reached, otherwise it will just stop returning false.

See also
MessageList::Core::MessageTypeFilter
MessageList::Core::ExistingSelectionBehaviour

Definition at line 1446 of file view.cpp.

bool View::selectPreviousMessageItem ( MessageTypeFilter  messageTypeFilter,
ExistingSelectionBehaviour  existingSelectionBehaviour,
bool  centerItem,
bool  loop 
)

Selects the previous message item in the view.

messageTypeFilter can be used to limit the selection to a certain category of messages.

existingSelectionBehaviour specifies how the existing selection is manipulated. It may be cleared, expanded or grown/shrinked.

If centerItem is true then the specified item will be positioned at the center of the view, if possible. If loop is true then the "previous" algorithm will restart from the end of the list if the beginning is reached, otherwise it will just stop returning false.

See also
MessageList::Core::MessageTypeFilter
MessageList::Core::ExistingSelectionBehaviour

Definition at line 1484 of file view.cpp.

void View::setAggregation ( const Aggregation aggregation)

Sets the aggregation for this view.

Does not trigger a reload of the view: you MUST trigger it manually.

Definition at line 234 of file view.cpp.

void View::setAllGroupsExpanded ( bool  expand)

If expand is true then it expands all the groups (only the toplevel group item: inner threads are NOT expanded).

If expand is false then it collapses all the groups. If no grouping is in effect then this function does nothing.

Definition at line 1045 of file view.cpp.

void View::setAllThreadsExpanded ( bool  expand)

If expand is true then it expands all the threads, otherwise collapses them.

Definition at line 1024 of file view.cpp.

void View::setChildrenExpanded ( const Item parent,
bool  expand 
)
protected

Expands or collapses the children of the specified item, recursively.

Definition at line 943 of file view.cpp.

void View::setCurrentMessageItem ( MessageItem it,
bool  center = false 
)

Sets the current message item.

Definition at line 857 of file view.cpp.

void View::setCurrentThreadExpanded ( bool  expand)

If expand is true then it expands the current thread, otherwise collapses it.

Definition at line 996 of file view.cpp.

void View::setRowHidden ( int  row,
const QModelIndex parent,
bool  hide 
)
virtual

Called to hide or show the specified row from the view.

Reimplemented from superclass.

Definition at line 2688 of file view.cpp.

void View::setSortOrder ( const SortOrder sortOrder)

Sets the specified sort order.

Does not trigger a reload of the view: you MUST trigger it manually.

Definition at line 251 of file view.cpp.

void View::setStorageModel ( StorageModel storageModel,
PreSelectionMode  preSelectionMode = PreSelectLastSelected 
)

Sets the StorageModel to be displayed in this view.

The StorageModel may be 0 (so no content is displayed). Setting the StorageModel will obviously trigger a view reload. Be sure to set the Aggregation and the Theme BEFORE calling this function.

Pre-selection is the action of automatically selecting a message just after the folder has finished loading. See Model::setStorageModel() for more information.

Definition at line 261 of file view.cpp.

void View::setTheme ( Theme theme)

Sets the specified theme for this view.

Does not trigger a reload of the view: you MUST trigger it manually.

Definition at line 243 of file view.cpp.

void View::showEvent ( QShowEvent e)
overrideprotectedvirtual

Reimplemented in order to apply theme column widths on the first show.

Reimplemented from QWidget.

Definition at line 712 of file view.cpp.

int View::sizeHintForColumn ( int  logicalColumnIndex) const
overrideprotectedvirtual

Reimplemented in order to kill the QTreeView column auto-resizing.

Reimplemented from QTreeView.

Definition at line 698 of file view.cpp.

void View::slotAdjustColumnSizes ( )
protectedslot

Handles the Adjust Column Sizes action of the header context menu.

Definition at line 770 of file view.cpp.

void View::slotCollapseAllGroups ( )
slot

Collapses all the group headers (if present in the current Aggregation)

Definition at line 2648 of file view.cpp.

void View::slotCollapseCurrentItem ( )
slot

Collapses the current item.

If it's a Message, it collapses its thread, if its a group header it collapses the group

Definition at line 2658 of file view.cpp.

void View::slotDisplayTooltips ( bool  showTooltips)
protectedslot

Handles the Display Tooltips action of the header context menu.

Definition at line 790 of file view.cpp.

void View::slotExpandAllGroups ( )
slot

Expands all the group headers (if present in the current Aggregation)

Definition at line 2653 of file view.cpp.

void View::slotExpandCurrentItem ( )
slot

Expands the current item.

If it's a Message, it expands its thread, if its a group header it expands the group

Definition at line 2663 of file view.cpp.

void View::slotHeaderContextMenuRequested ( const QPoint pnt)
protectedslot

Handles context menu requests for the header.

Definition at line 717 of file view.cpp.

void View::slotHeaderSectionResized ( int  logicalIndex,
int  oldWidth,
int  newWidth 
)
protectedslot

Handles section resizes in order to save the column widths.

Definition at line 687 of file view.cpp.

void View::slotSelectionChanged ( const QItemSelection current,
const QItemSelection  
)
protectedslot

Handles selection item management.

Definition at line 1898 of file view.cpp.

void View::slotShowDefaultColumns ( )
protectedslot

Handles the Show Default Columns action of the header context menu.

Definition at line 780 of file view.cpp.

void View::slotShowHideColumn ( int  columnIndex)
protectedslot

Handles the actions of the header context menu for showing/hiding a column.

Definition at line 795 of file view.cpp.

StorageModel * View::storageModel ( ) const

Returns the currently displayed StorageModel.

May be 0.

Definition at line 229 of file view.cpp.

void View::triggerDelayedApplyThemeColumns ( )
protected

Starts a short-delay timer connected to applyThemeColumns().

Used to accumulate consecutive changes and break out of the call stack up to the main event loop (since multiple resize events tend to be sent by Qt at startup).

Definition at line 552 of file view.cpp.

void View::triggerDelayedSaveThemeColumnState ( )
protected

Starts a short-delay timer connected to saveThemeColumnState().

Used to accumulate consecutive changes and break out of the call stack up to the main event loop (since in the call stack the column state might be left undefined).

Definition at line 599 of file view.cpp.

void View::updateGeometries ( )
overrideprotectedvirtual

Reimplemented in order to disable update of the geometries while a job step is running (as it takes a very long time and it's called for every item insertion...) TODO: not true anymore, it's called after a delay.

Reimplemented from QTreeView.

Definition at line 207 of file view.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Oct 28 2020 23:18:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.