MessageList::Core::View

Search for usage in LXR

#include <view.h>

Inheritance diagram for MessageList::Core::View:

Public Slots

void slotCollapseAllGroups ()
 
void slotCollapseAllThreads ()
 
void slotCollapseCurrentItem ()
 
void slotExpandAllGroups ()
 
void slotExpandAllThreads ()
 
void slotExpandCurrentItem ()
 

Public Member Functions

 View (Widget *parent)
 
void aggregationMenuAboutToShow (QMenu *menu)
 
MessageItemSetReference createPersistentSet (const QList< MessageItem * > &items)
 
QString currentFilterSearchString () const
 
QList< Akonadi::MessageStatuscurrentFilterStatus () const
 
ItemcurrentItem () const
 
MessageItemcurrentMessageItem (bool selectIfNeeded=true) const
 
MessageList::Core::SearchMessageByButtons::SearchOptions currentOptions () const
 
QList< 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 ()
 
QList< SearchLineCommand::SearchLineInfo > searchLineCommands () const
 
bool selectFirstMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem)
 
void selectFocusedMessageItem (bool centerItem)
 
QList< MessageItem * > selectionAsMessageItemList (bool includeCollapsedChildren=true) const
 
bool selectionEmpty () const
 
bool selectLastMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem)
 
void selectMessageItems (const QList< 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 QList< 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, 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)
 
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)
 
DragDropMode dragDropMode () const const
 
bool dragDropOverwriteMode () const const
 
bool dragEnabled () const const
 
void edit (const QModelIndex &index)
 
EditTriggers editTriggers () const const
 
void entered (const QModelIndex &index)
 
bool hasAutoScroll () const const
 
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
 
virtual QAbstractItemDelegateitemDelegateForIndex (const QModelIndex &index) 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 (DragDropMode behavior)
 
void setDragDropOverwriteMode (bool overwrite)
 
void setDragEnabled (bool enable)
 
void setDropIndicatorShown (bool enable)
 
void setEditTriggers (EditTriggers triggers)
 
void setHorizontalScrollMode (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 (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)
 
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 (SizeAdjustPolicy policy)
 
virtual void setupViewport (QWidget *viewport)
 
void setVerticalScrollBar (QScrollBar *scrollBar)
 
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
 
void setViewport (QWidget *widget)
 
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
 
Shadow frameShadow () const const
 
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 (Shadow)
 
void setFrameShape (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 ()
 
QActionaddAction (const QIcon &icon, const QString &text)
 
QActionaddAction (const QIcon &icon, const QString &text, Args &&... args)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, Args &&... args)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QIcon &icon, const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QString &text)
 
QActionaddAction (const QString &text, Args &&... args)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut, Args &&... args)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
void addAction (QAction *action)
 
void addActions (const QList< QAction * > &actions)
 
void adjustSize ()
 
bool autoFillBackground () const const
 
QPalette::ColorRole backgroundRole () const const
 
QBackingStorebackingStore () const const
 
QSize baseSize () const const
 
QWidgetchildAt (const QPoint &p) const const
 
QWidgetchildAt (int x, int y) 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
 
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, const 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 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
 
QPointF mapFrom (const QWidget *parent, const QPointF &pos) const const
 
QPoint mapFromGlobal (const QPoint &pos) const const
 
QPointF mapFromGlobal (const QPointF &pos) const const
 
QPoint mapFromParent (const QPoint &pos) const const
 
QPointF mapFromParent (const QPointF &pos) const const
 
QPoint mapTo (const QWidget *parent, const QPoint &pos) const const
 
QPointF mapTo (const QWidget *parent, const QPointF &pos) const const
 
QPoint mapToGlobal (const QPoint &pos) const const
 
QPointF mapToGlobal (const QPointF &pos) const const
 
QPoint mapToParent (const QPoint &pos) const const
 
QPointF mapToParent (const QPointF &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 (const QPoint &)
 
void move (int x, int y)
 
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, RenderFlags renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void repaint ()
 
void repaint (const QRect &rect)
 
void repaint (const QRegion &rgn)
 
void repaint (int x, int y, int w, int h)
 
void resize (const QSize &)
 
void resize (int w, int h)
 
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 (const QSize &)
 
void setBaseSize (int basew, int baseh)
 
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 ()
 
void setFocus (Qt::FocusReason reason)
 
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 (const QSize &)
 
void setMaximumSize (int maxw, int maxh)
 
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)
 
void setParent (QWidget *parent, Qt::WindowFlags f)
 
void setScreen (QScreen *screen)
 
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 ()
 
void update (const QRect &rect)
 
void update (const QRegion &rgn)
 
void update (int x, int y, int w, int h)
 
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)
 
QBindable< QStringbindableObjectName ()
 
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 () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
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_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 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
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Public Member Functions inherited from QPaintDevice
int colorCount () const const
 
int depth () const const
 
qreal 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)
 
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 (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
 
DropIndicatorPosition dropIndicatorPosition () const const
 
virtual bool edit (const QModelIndex &index, 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
 
virtual void initViewItemOption (QStyleOptionViewItem *option) 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 setState (State state)
 
virtual void startDrag (Qt::DropActions supportedActions)
 
State state () const const
 
- Protected Member Functions inherited from QAbstractScrollArea
virtual void contextMenuEvent (QContextMenuEvent *e) override
 
void setViewportMargins (const QMargins &margins)
 
void setViewportMargins (int left, int top, int right, int bottom)
 
QMargins viewportMargins () const const
 
virtual void wheelEvent (QWheelEvent *e) override
 
- Protected Member Functions inherited from QFrame
virtual 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 (QEnterEvent *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 (PaintDeviceMetric m) const const override
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool nativeEvent (const QByteArray &eventType, void *message, qintptr *result)
 
virtual void showEvent (QShowEvent *event)
 
virtual void tabletEvent (QTabletEvent *event)
 
void updateMicroFocus (Qt::InputMethodQuery query)
 
- 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
 
- Protected Member Functions inherited from QPaintDevice

Additional Inherited Members

- Public Types inherited from QAbstractItemView
enum  CursorAction
 
enum  DragDropMode
 
enum  DropIndicatorPosition
 
enum  EditTrigger
 
typedef  EditTriggers
 
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
 
typedef  RenderFlags
 
- Public Types inherited from QObject
typedef  QObjectList
 
- 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)
 
void setTabOrder (std::initializer_list< QWidget * > widgets)
 
- 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 *context, Functor functor, 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)
 
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, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (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
 
 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
 
- 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 responsible of painting the items.

Definition at line 47 of file view.h.

Constructor & Destructor Documentation

◆ ~View()

View::~View ( )
override

Definition at line 142 of file view.cpp.

Member Function Documentation

◆ aggregationMenuAboutToShow()

void View::aggregationMenuAboutToShow ( QMenu * menu)

Definition at line 2556 of file view.cpp.

◆ applyThemeColumns

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 311 of file view.cpp.

◆ changeEvent()

void View::changeEvent ( QEvent * e)
overrideprotectedvirtual

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

Reimplemented from QTreeView.

Definition at line 2119 of file view.cpp.

◆ changeMessageStatus()

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 2005 of file view.cpp.

◆ changeMessageStatusRead()

void View::changeMessageStatusRead ( MessageItem * it,
bool read )
protected

Definition at line 1986 of file view.cpp.

◆ createPersistentSet()

MessageItemSetReference View::createPersistentSet ( const QList< 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 1630 of file view.cpp.

◆ currentFilterSearchString()

QString View::currentFilterSearchString ( ) const
nodiscard

Returns the search term in the current quicksearch field.

Definition at line 2522 of file view.cpp.

◆ currentFilterStatus()

QList< Akonadi::MessageStatus > View::currentFilterStatus ( ) const
nodiscard

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

Definition at line 2512 of file view.cpp.

◆ currentItem()

Item * View::currentItem ( ) const
nodiscard

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 838 of file view.cpp.

◆ currentMessageItem()

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 849 of file view.cpp.

◆ currentOptions()

MessageList::Core::SearchMessageByButtons::SearchOptions View::currentOptions ( ) const
nodiscard

Definition at line 2517 of file view.cpp.

◆ currentThreadAsMessageItemList()

QList< MessageItem * > View::currentThreadAsMessageItemList ( ) const
nodiscard

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 930 of file view.cpp.

◆ deepestExpandedChild()

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 1226 of file view.cpp.

◆ delegate()

Delegate * View::delegate ( ) const
nodiscard

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 165 of file view.cpp.

◆ deletePersistentSet()

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 1640 of file view.cpp.

◆ dragEnterEvent()

void View::dragEnterEvent ( QDragEnterEvent * e)
overrideprotectedvirtual

Reimplemented in order to handle message DnD.

Reimplemented from QAbstractItemView.

Definition at line 2104 of file view.cpp.

◆ dragMoveEvent()

void View::dragMoveEvent ( QDragMoveEvent * e)
overrideprotectedvirtual

Reimplemented in order to handle message DnD.

Reimplemented from QTreeView.

Definition at line 2109 of file view.cpp.

◆ dropEvent()

void View::dropEvent ( QDropEvent * e)
overrideprotectedvirtual

Reimplemented in order to handle message DnD.

Reimplemented from QAbstractItemView.

Definition at line 2114 of file view.cpp.

◆ ensureDisplayedWithParentsExpanded()

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 1792 of file view.cpp.

◆ event()

bool View::event ( QEvent * e)
overrideprotectedvirtual

Reimplemented in order to catch QHelpEvent.

Reimplemented from QAbstractItemView.

Definition at line 2144 of file view.cpp.

◆ firstMessageItem()

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 1216 of file view.cpp.

◆ focusNextMessageItem()

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 1500 of file view.cpp.

◆ focusPreviousMessageItem()

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 1524 of file view.cpp.

◆ focusQuickSearch()

void View::focusQuickSearch ( const QString & selectedText)

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

Definition at line 2507 of file view.cpp.

◆ growOrShrinkExistingSelection()

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 1347 of file view.cpp.

◆ ignoreCurrentChanges()

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 170 of file view.cpp.

◆ ignoreUpdateGeometries()

void View::ignoreUpdateGeometries ( bool ignore)
protected

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

Definition at line 181 of file view.cpp.

◆ isDisplayedWithParentsExpanded()

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 1822 of file view.cpp.

◆ isScrollingLocked()

bool View::isScrollingLocked ( ) const
protected

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

Definition at line 186 of file view.cpp.

◆ isThreaded()

bool View::isThreaded ( ) const
nodiscard

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

Definition at line 1868 of file view.cpp.

◆ lastMessageItem()

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 1337 of file view.cpp.

◆ markMessageItemsAsAboutToBeRemoved()

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 1645 of file view.cpp.

◆ messageItemAfter()

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 1120 of file view.cpp.

◆ messageItemBefore()

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 1236 of file view.cpp.

◆ model()

Model * View::model ( ) const
nodiscard

Returns the Model attached to this View.

You probably never need to manipulate it directly.

Definition at line 160 of file view.cpp.

◆ modelAboutToEmitLayoutChanged()

void View::modelAboutToEmitLayoutChanged ( )
protected

Definition at line 689 of file view.cpp.

◆ modelEmittedLayoutChanged()

void View::modelEmittedLayoutChanged ( )
protected

Definition at line 695 of file view.cpp.

◆ modelFinishedLoading()

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 1622 of file view.cpp.

◆ mouseDoubleClickEvent()

void View::mouseDoubleClickEvent ( QMouseEvent * e)
overrideprotectedvirtual

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

Reimplemented from QTreeView.

Definition at line 1929 of file view.cpp.

◆ mouseMoveEvent()

void View::mouseMoveEvent ( QMouseEvent * e)
overrideprotectedvirtual

Reimplemented in order to handle DnD.

Reimplemented from QTreeView.

Definition at line 2044 of file view.cpp.

◆ mousePressEvent()

void View::mousePressEvent ( QMouseEvent * e)
overrideprotectedvirtual

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

Reimplemented from QTreeView.

Definition at line 2032 of file view.cpp.

◆ nextMessageItem()

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 1221 of file view.cpp.

◆ paintEvent()

void View::paintEvent ( QPaintEvent * event)
overrideprotectedvirtual

Reimplemented from QTreeView.

Definition at line 665 of file view.cpp.

◆ persistentSetCurrentMessageItemList()

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

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 1635 of file view.cpp.

◆ previousMessageItem()

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 1342 of file view.cpp.

◆ reload()

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 271 of file view.cpp.

◆ resizeEvent()

void View::resizeEvent ( QResizeEvent * e)
overrideprotectedvirtual

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

Reimplemented from QAbstractItemView.

Definition at line 623 of file view.cpp.

◆ saveThemeColumnState

void View::saveThemeColumnState ( )
protectedslot

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

Definition at line 576 of file view.cpp.

◆ searchLineCommands()

QList< SearchLineCommand::SearchLineInfo > View::searchLineCommands ( ) const
nodiscard

Definition at line 2527 of file view.cpp.

◆ selectFirstMessageItem()

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 1566 of file view.cpp.

◆ selectFocusedMessageItem()

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 1548 of file view.cpp.

◆ selectionAsMessageItemList()

QList< 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 887 of file view.cpp.

◆ selectionEmpty()

bool View::selectionEmpty ( ) const
nodiscard

Fast function that determines if the selection is empty.

Definition at line 882 of file view.cpp.

◆ selectLastMessageItem()

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 1594 of file view.cpp.

◆ selectMessageItems()

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

Selects the specified MessageItems.

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

Definition at line 1083 of file view.cpp.

◆ selectNextMessageItem()

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/shrunk.

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 1426 of file view.cpp.

◆ selectPreviousMessageItem()

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/shrunk.

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 1463 of file view.cpp.

◆ setAggregation()

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 249 of file view.cpp.

◆ setAllGroupsExpanded()

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 1052 of file view.cpp.

◆ setAllThreadsExpanded()

void View::setAllThreadsExpanded ( bool expand)

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

Definition at line 1031 of file view.cpp.

◆ setChildrenExpanded()

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

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

Definition at line 951 of file view.cpp.

◆ setCollapseItem()

void View::setCollapseItem ( const QModelIndex & index)

Definition at line 2566 of file view.cpp.

◆ setCurrentMessageItem()

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

Sets the current message item.

Definition at line 867 of file view.cpp.

◆ setCurrentThreadExpanded()

void View::setCurrentThreadExpanded ( bool expand)

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

Definition at line 1003 of file view.cpp.

◆ setExpandItem()

void View::setExpandItem ( const QModelIndex & index)

Definition at line 2573 of file view.cpp.

◆ setQuickSearchClickMessage()

void View::setQuickSearchClickMessage ( const QString & msg)

Definition at line 2580 of file view.cpp.

◆ setRowHidden()

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 2532 of file view.cpp.

◆ setSortOrder()

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 266 of file view.cpp.

◆ setStorageModel()

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 276 of file view.cpp.

◆ setTheme()

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 258 of file view.cpp.

◆ sizeHintForColumn()

int View::sizeHintForColumn ( int logicalColumnIndex) const
nodiscardoverrideprotectedvirtual

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

Reimplemented from QTreeView.

Definition at line 713 of file view.cpp.

◆ slotAdjustColumnSizes

void View::slotAdjustColumnSizes ( )
protectedslot

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

Definition at line 780 of file view.cpp.

◆ slotCollapseAllGroups

void View::slotCollapseAllGroups ( )
slot

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

Definition at line 2487 of file view.cpp.

◆ slotCollapseAllThreads

void View::slotCollapseAllThreads ( )
slot

Definition at line 2482 of file view.cpp.

◆ slotCollapseCurrentItem

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 2497 of file view.cpp.

◆ slotDisplayTooltips

void View::slotDisplayTooltips ( bool showTooltips)
protectedslot

Handles the Display Tooltips action of the header context menu.

Definition at line 800 of file view.cpp.

◆ slotExpandAllGroups

void View::slotExpandAllGroups ( )
slot

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

Definition at line 2492 of file view.cpp.

◆ slotExpandAllThreads

void View::slotExpandAllThreads ( )
slot

Definition at line 2477 of file view.cpp.

◆ slotExpandCurrentItem

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 2502 of file view.cpp.

◆ slotHeaderContextMenuRequested

void View::slotHeaderContextMenuRequested ( const QPoint & pnt)
protectedslot

Handles context menu requests for the header.

Definition at line 727 of file view.cpp.

◆ slotHeaderSectionResized

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

Handles section resizes in order to save the column widths.

Definition at line 702 of file view.cpp.

◆ slotSelectionChanged

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

Handles selection item management.

Definition at line 1876 of file view.cpp.

◆ slotShowDefaultColumns

void View::slotShowDefaultColumns ( )
protectedslot

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

Definition at line 790 of file view.cpp.

◆ slotShowHideColumn

void View::slotShowHideColumn ( int columnIndex)
protectedslot

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

Definition at line 805 of file view.cpp.

◆ sortOrderMenuAboutToShow()

void View::sortOrderMenuAboutToShow ( QMenu * menu)

Definition at line 2551 of file view.cpp.

◆ storageModel()

StorageModel * View::storageModel ( ) const
nodiscard

Returns the currently displayed StorageModel.

May be 0.

Definition at line 244 of file view.cpp.

◆ themeMenuAboutToShow()

void View::themeMenuAboutToShow ( QMenu * menu)

Definition at line 2561 of file view.cpp.

◆ triggerDelayedApplyThemeColumns()

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 567 of file view.cpp.

◆ triggerDelayedSaveThemeColumnState()

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 614 of file view.cpp.

◆ updateGeometries()

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 222 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-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:48:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.