• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messagelist

  • MessageList
  • Core
  • View
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
MessageList::Core::View Class Reference

#include <view.h>

Inheritance diagram for MessageList::Core::View:
Inheritance graph
[legend]

Public Slots

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

Public Member Functions

 View (Widget *parent)
 
 ~View ()
 
void aggregationMenuAboutToShow (KMenu *menu)
 
MessageItemSetReference createPersistentSet (const QList< MessageItem * > &items)
 
QString currentFilterSearchString () const
 
Akonadi::MessageStatus currentFilterStatus () const
 
Item * currentItem () const
 
MessageItem * currentMessageItem (bool selectIfNeeded=true) 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 ()
 
bool isDisplayedWithParentsExpanded (Item *it) const
 
bool isThreaded () const
 
void markMessageItemsAsAboutToBeRemoved (QList< MessageItem * > &items, bool bMark)
 
Model * model () const
 
QList< MessageItem * > persistentSetCurrentMessageItemList (MessageItemSetReference ref)
 
void reload ()
 
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)
 
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 (KMenu *menu)
 
StorageModel * storageModel () const
 
void themeMenuAboutToShow (KMenu *menu)
 

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 appendMessageItemChildren (MessageItem *par, QList< MessageItem * > &list)
 
virtual void changeEvent (QEvent *e)
 
void changeMessageStatus (MessageItem *it, const Akonadi::MessageStatus &set, const Akonadi::MessageStatus &unset)
 
void changeMessageStatusRead (MessageItem *it, bool read)
 
virtual void contextMenuEvent (QContextMenuEvent *e)
 
Item * deepestExpandedChild (Item *referenceItem) const
 
virtual void dragEnterEvent (QDragEnterEvent *e)
 
virtual void dragMoveEvent (QDragMoveEvent *e)
 
virtual void dropEvent (QDropEvent *e)
 
virtual bool event (QEvent *e)
 
Item * firstMessageItem (MessageTypeFilter messageTypeFilter)
 
void growOrShrinkExistingSelection (const QModelIndex &newSelectedIndex, bool movingUp)
 
void ignoreCurrentChanges (bool ignore)
 
void ignoreUpdateGeometries (bool ignore)
 
bool isScrollingLocked () const
 
Item * lastMessageItem (MessageTypeFilter messageTypeFilter)
 
Item * messageItemAfter (Item *referenceItem, MessageTypeFilter messageTypeFilter, bool loop)
 
Item * messageItemBefore (Item *referenceItem, MessageTypeFilter messageTypeFilter, bool loop)
 
void modelAboutToEmitLayoutChanged ()
 
void modelEmittedLayoutChanged ()
 
void modelFinishedLoading ()
 
void modelHasBeenReset ()
 
void modelJobBatchStarted ()
 
void modelJobBatchTerminated ()
 
virtual void mouseDoubleClickEvent (QMouseEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
Item * nextMessageItem (MessageTypeFilter messageTypeFilter, bool loop)
 
Item * previousMessageItem (MessageTypeFilter messageTypeFilter, bool loop)
 
virtual void resizeEvent (QResizeEvent *e)
 
void setChildrenExpanded (const Item *parent, bool expand)
 
virtual void showEvent (QShowEvent *e)
 
virtual int sizeHintForColumn (int logicalColumnIndex) const
 
void triggerDelayedApplyThemeColumns ()
 
void triggerDelayedSaveThemeColumnState ()
 
virtual void updateGeometries ()
 

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 64 of file view.h.

Constructor & Destructor Documentation

View::View ( Widget *  parent)
explicit

Definition at line 91 of file view.cpp.

View::~View ( )

Definition at line 135 of file view.cpp.

Member Function Documentation

void View::aggregationMenuAboutToShow ( KMenu *  menu)

Definition at line 2753 of file view.cpp.

void MessageList::Core::View::appendMessageItemChildren ( MessageItem *  par,
QList< MessageItem * > &  list 
)
protected

Recursive helper for currentThreadAsMessageItemList()

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

void View::changeEvent ( QEvent *  e)
protectedvirtual

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

Definition at line 2295 of file view.cpp.

void View::changeMessageStatus ( MessageItem *  it,
const Akonadi::MessageStatus &  set,
const 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 2068 of file view.cpp.

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

Definition at line 2049 of file view.cpp.

void View::contextMenuEvent ( QContextMenuEvent *  e)
protectedvirtual

Reimplemented in order to handle context menu request via keyboard.

Definition at line 2252 of file view.cpp.

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

QString View::currentFilterSearchString ( ) const

Returns the search term in the current quicksearch field.

Definition at line 2724 of file view.cpp.

Akonadi::MessageStatus View::currentFilterStatus ( ) const

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

Definition at line 2718 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 856 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 866 of file view.cpp.

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

Delegate * View::delegate ( ) const

Returns the Delegate attacched to this View.

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

Definition at line 158 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 1680 of file view.cpp.

void View::dragEnterEvent ( QDragEnterEvent *  e)
protectedvirtual

Reimplemented in order to handle message DnD.

Definition at line 2280 of file view.cpp.

void View::dragMoveEvent ( QDragMoveEvent *  e)
protectedvirtual

Reimplemented in order to handle message DnD.

Definition at line 2285 of file view.cpp.

void View::dropEvent ( QDropEvent *  e)
protectedvirtual

Reimplemented in order to handle message DnD.

Definition at line 2290 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 1844 of file view.cpp.

bool View::event ( QEvent *  e)
protectedvirtual

Reimplemented in order to catch QHelpEvent.

Definition at line 2319 of file view.cpp.

Item* MessageList::Core::View::firstMessageItem ( MessageTypeFilter  messageTypeFilter)
inlineprotected

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 516 of file view.h.

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

void View::focusQuickSearch ( )

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

Definition at line 2713 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 1375 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 163 of file view.cpp.

void View::ignoreUpdateGeometries ( bool  ignore)
protected

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

Definition at line 177 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 1872 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 182 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 1914 of file view.cpp.

Item* MessageList::Core::View::lastMessageItem ( MessageTypeFilter  messageTypeFilter)
inlineprotected

Finds the last 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 557 of file view.h.

void View::markMessageItemsAsAboutToBeRemoved ( 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 1685 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 1122 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 1252 of file view.cpp.

Model * View::model ( ) const

Returns the Model attacched to this View.

You probably never need to manipulate it directly.

Definition at line 153 of file view.cpp.

void View::modelAboutToEmitLayoutChanged ( )
protected

Definition at line 696 of file view.cpp.

void View::modelEmittedLayoutChanged ( )
protected

Definition at line 702 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 1662 of file view.cpp.

void View::modelHasBeenReset ( )
protected

This is called by the model from inside setFolder().

It's called just after the model has been reset but before any row has been inserted. This allows us to call updateThemeColumns() as needed.

Definition at line 293 of file view.cpp.

void View::modelJobBatchStarted ( )
protected

This is called by Model to signal a start of a lengthy job batch.

Note that this is NOT called for jobs that can be completed in a single step.

Definition at line 281 of file view.cpp.

void View::modelJobBatchTerminated ( )
protected

This is called by Model to signal the end of a lengthy job batch.

Note that this is NOT called for jobs that can be completed in a single step.

Definition at line 287 of file view.cpp.

void View::mouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual

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

Definition at line 1986 of file view.cpp.

void View::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Reimplemented in order to handle DnD.

Definition at line 2235 of file view.cpp.

void View::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

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

Definition at line 2095 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 1236 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 1675 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 1370 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 268 of file view.cpp.

void View::resizeEvent ( QResizeEvent *  e)
protectedvirtual

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

Definition at line 657 of file view.cpp.

void View::saveThemeColumnState ( )
protectedslot

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

Definition at line 612 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 1610 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 1593 of file view.cpp.

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

bool View::selectionEmpty ( ) const

Fast function that determines if the selection is empty.

Definition at line 901 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 1636 of file view.cpp.

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 1084 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 1463 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 1505 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 246 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 1057 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 1038 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 968 of file view.cpp.

void View::setCollapseItem ( const QModelIndex &  index)

Definition at line 2763 of file view.cpp.

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

Sets the current message item.

Definition at line 883 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 1010 of file view.cpp.

void View::setExpandItem ( const QModelIndex &  index)

Definition at line 2769 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 2729 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 263 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 273 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 255 of file view.cpp.

void View::showEvent ( QShowEvent *  e)
protectedvirtual

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

Definition at line 731 of file view.cpp.

int View::sizeHintForColumn ( int  logicalColumnIndex) const
protectedvirtual

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

Definition at line 719 of file view.cpp.

void View::slotAdjustColumnSizes ( )
protectedslot

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

Definition at line 803 of file view.cpp.

void View::slotCollapseAllGroups ( )
slot

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

Definition at line 2693 of file view.cpp.

void View::slotCollapseCurrentItem ( )
slot

Collapses the currect item.

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

Definition at line 2703 of file view.cpp.

void View::slotDisplayTooltips ( bool  showTooltips)
protectedslot

Handles the Display Tooltips action of the header context menu.

Definition at line 821 of file view.cpp.

void View::slotExpandAllGroups ( )
slot

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

Definition at line 2698 of file view.cpp.

void View::slotExpandCurrentItem ( )
slot

Expands the currect item.

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

Definition at line 2708 of file view.cpp.

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

Handles context menu requests for the header.

Definition at line 750 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 709 of file view.cpp.

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

Handles selection item management.

Definition at line 1921 of file view.cpp.

void View::slotShowDefaultColumns ( )
protectedslot

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

Definition at line 812 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 826 of file view.cpp.

void View::sortOrderMenuAboutToShow ( KMenu *  menu)

Definition at line 2748 of file view.cpp.

StorageModel * View::storageModel ( ) const

Returns the currently displayed StorageModel.

May be 0.

Definition at line 241 of file view.cpp.

void View::themeMenuAboutToShow ( KMenu *  menu)

Definition at line 2758 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 604 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 649 of file view.cpp.

void View::updateGeometries ( )
protectedvirtual

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.

Definition at line 219 of file view.cpp.


The documentation for this class was generated from the following files:
  • view.h
  • view.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messagelist

Skip menu "messagelist"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal