messagelist
view.cpp
Go to the documentation of this file.
116 header()->setMinimumSectionSize( 2 ); // QTreeView overrides our sections sizes if we set them smaller than this value
117 header()->setDefaultSectionSize( 2 ); // QTreeView overrides our sections sizes if we set them smaller than this value
144 // Zero out the theme, aggregation and ApplyThemeColumnsTimer so Model will not cause accesses to them in its destruction process
214 ( scrollBarPosition == scrollBarMaximum && sortOrder->messageSortDirection() == SortOrder::Ascending )
304 // is quite unpredictable. This is due to the complex interaction with the model, with the QTreeView
315 // - Explicitly save the column state, used when the user changes the widths or visibility manually.
639 ( *it )->setCurrentWidth( -1 ); // reset (hmmm... we could use the "don't touch" policy here too...)
778 QObject::connect( showColumnSignalMapper, SIGNAL(mapped(int)), this, SLOT(slotShowHideColumn(int)) );
852 // then apply theme columns to re-compute proportional widths (so we hopefully stay in the view)
877 selectionModel()->select( currentIndex(), QItemSelectionModel::Select | QItemSelectionModel::Current | QItemSelectionModel::Rows );
937 if ( includeCollapsedChildren && ( selectedItem->childItemCount() > 0 ) && ( !isExpanded( *it ) ) )
1099 selectionModel()->select( selection, QItemSelectionModel::Select | QItemSelectionModel::Rows );
1122 Item * View::messageItemAfter( Item * referenceItem, MessageTypeFilter messageTypeFilter, bool loop )
1143 // the current item had children: either expanded or we want unread/new messages (and so we'll expand it if it isn't)
1192 ( ( d->mModel->flags( belowIndex ) & ( Qt::ItemIsSelectable | Qt::ItemIsEnabled ) ) != ( Qt::ItemIsSelectable | Qt::ItemIsEnabled ) )
1196 if ( ( below->childItemCount() > 0 ) && ( ( messageTypeFilter != MessageTypeAny ) || isExpanded( belowIndex ) ) )
1198 // the current item had children: either expanded or we want unread messages (and so we'll expand it if it isn't)
1212 if ( referenceItem ) // <-- this means "we have started from something that is not the top: looping makes sense"
1214 // else mi == 0 and below == 0: we have started from the beginning and reached the end (it will fail the test below and exit)
1252 Item * View::messageItemBefore( Item * referenceItem, MessageTypeFilter messageTypeFilter, bool loop )
1274 // the current item had children: either expanded or we want unread/new messages (and so we'll expand it if it isn't)
1331 ( ( d->mModel->flags( aboveIndex ) & ( Qt::ItemIsSelectable | Qt::ItemIsEnabled ) ) != ( Qt::ItemIsSelectable | Qt::ItemIsEnabled ) )
1343 if ( referenceItem ) // <-- this means "we have started from something that is not the beginning: looping makes sense"
1345 // else mi == 0 and above == 0: we have started from the end and reached the beginning (it will fail the test below and exit)
1432 selectionModel()->select( newSelectedIndex, QItemSelectionModel::Rows | QItemSelectionModel::Select );
1446 selectionModel()->select( newSelectedIndex, QItemSelectionModel::Rows | QItemSelectionModel::Select );
1459 selectionModel()->select( newSelectedIndex, QItemSelectionModel::Rows | QItemSelectionModel::Select );
1547 bool View::focusNextMessageItem( MessageTypeFilter messageTypeFilter, bool centerItem, bool loop )
1570 bool View::focusPreviousMessageItem( MessageTypeFilter messageTypeFilter, bool centerItem, bool loop )
1604 selectionModel()->select( idx, QItemSelectionModel::Select | QItemSelectionModel::Current | QItemSelectionModel::Rows );
1675 QList< MessageItem * > View::persistentSetCurrentMessageItemList( MessageItemSetReference ref )
1824 selectionModel()->select( aMessageIndex, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows );
1850 if ( isRowHidden( it->parent()->indexOfChildItem( it ), d->mModel->index( it->parent(), 0 ) ) )
1851 setRowHidden( it->parent()->indexOfChildItem( it ), d->mModel->index( it->parent(), 0 ), false );
1857 if ( isRowHidden( it->parent()->indexOfChildItem( it ), d->mModel->index( it->parent(), 0 ) ) )
1858 setRowHidden( it->parent()->indexOfChildItem( it ), d->mModel->index( it->parent(), 0 ), false );
1884 return false; // item not viewable (not attached to the viewable root or qt not yet aware of it)
1888 if ( isRowHidden( it->parent()->indexOfChildItem( it ), d->mModel->index( it->parent(), 0 ) ) )
1946 selectionModel()->select( selection, QItemSelectionModel::Select | QItemSelectionModel::Rows );
2012 if ( d->mDelegate->hitContentItem()->isIcon() && d->mDelegate->hitContentItem()->isClickable() )
2068 void View::changeMessageStatus( MessageItem * it, const Akonadi::MessageStatus &set, const Akonadi::MessageStatus &unset )
2071 // visible to the user even if the Model is actually in the middle of a long job (maybe it's loading)
2074 // d->mWidget->viewMessageStatusChangeRequest() will really perform the status change on the storage.
2075 // Well... in KMail it will unless something is really screwed. Anyway, if it will not, at the next
2146 it->status().isImportant() ? Akonadi::MessageStatus() : Akonadi::MessageStatus::statusImportant(),
2147 it->status().isImportant() ? Akonadi::MessageStatus::statusImportant() : Akonadi::MessageStatus()
2151 changeMessageStatusRead( static_cast< MessageItem * >( it ), it->status().isRead() ? false : true );
2157 it->status().isSpam() ? Akonadi::MessageStatus() : ( it->status().isHam() ? Akonadi::MessageStatus::statusSpam() : Akonadi::MessageStatus::statusHam() ),
2158 it->status().isSpam() ? Akonadi::MessageStatus::statusSpam() : ( it->status().isHam() ? Akonadi::MessageStatus::statusHam() : Akonadi::MessageStatus() )
2165 it->status().isIgnored() ? Akonadi::MessageStatus() : ( it->status().isWatched() ? Akonadi::MessageStatus::statusIgnored() : Akonadi::MessageStatus::statusWatched() ),
2166 it->status().isIgnored() ? Akonadi::MessageStatus::statusIgnored() : ( it->status().isWatched() ? Akonadi::MessageStatus::statusWatched() : Akonadi::MessageStatus() )
2176 // Let QTreeView handle the selection and emit the appropriate signals (slotSelectionChanged() may be called)
2181 // Let QTreeView handle the selection and emit the appropriate signals (slotSelectionChanged() may be called)
2184 d->mWidget->viewMessageListContextPopupRequest( selectionAsMessageItemList(), viewport()->mapToGlobal( e->pos() ) );
2220 d->mWidget->viewGroupHeaderContextPopupRequest( groupHeaderItem, viewport()->mapToGlobal( e->pos() ) );
2246 if ( ( e->pos() - d->mMousePressPosition ).manhattanLength() <= KGlobalSettings::dndEventDelay() )
2273 d->mWidget->viewGroupHeaderContextPopupRequest( static_cast< GroupHeaderItem * >( item ), viewport()->mapToGlobal( pos ) );
2275 d->mWidget->viewMessageListContextPopupRequest( selectionAsMessageItemList(), viewport()->mapToGlobal( pos ) );
2360 const QString textDirection = textIsLeftToRight ? QLatin1String( "left" ) : QLatin1String( "right" );
2380 ).arg( txtColorName ).arg( bckColorName ).arg( Qt::escape( mi->subject() ) ).arg( textDirection );
2402 tip += htmlCodeForStandardRow.arg( i18n( "From" ) ).arg( MessageCore::StringUtil::stripEmailAddr( mi->sender() ) );
2403 tip += htmlCodeForStandardRow.arg( i18nc( "Receiver of the email", "To" ) ).arg( MessageCore::StringUtil::stripEmailAddr( mi->receiver() ) );
2406 tip += htmlCodeForStandardRow.arg( MessageCore::StringUtil::stripEmailAddr( mi->sender() ) ).arg( i18n( "From" ) );
2407 tip += htmlCodeForStandardRow.arg( MessageCore::StringUtil::stripEmailAddr( mi->receiver() ) ).arg( i18nc( "Receiver of the email", "To" ) );
2430 tip += htmlCodeForStandardRow.arg( i18n( "Note" ) ).arg( mi->annotation().replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) );
2432 tip += htmlCodeForStandardRow.arg( mi->annotation().replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) ).arg( i18n( "Note" ) );
2439 tip += htmlCodeForStandardRow.arg( i18n( "Preview" ) ).arg( content.replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) );
2441 tip += htmlCodeForStandardRow.arg( content.replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) ).arg( i18n( "Preview" ) );
Sort the messages by date and time of the most recent message in subtree.
Definition: sortorder.h:82
bool focusPreviousMessageItem(MessageTypeFilter messageTypeFilter, bool centerItem, bool loop)
Focuses the previous message item in the view without actually selecting it.
Definition: view.cpp:1570
void slotAdjustColumnSizes()
Handles the Adjust Column Sizes action of the header context menu.
Definition: view.cpp:803
virtual void mouseDoubleClickEvent(QMouseEvent *e)
Reimplemented in order to handle double clicks with sub-item precision.
Definition: view.cpp:1986
The Expanded state icon for group headers.
Definition: theme.h:186
A class which holds information about sorting, e.g.
Definition: sortorder.h:37
A set of aggregation options that can be applied to the MessageList::Model in a single shot...
Definition: aggregation.h:43
The icon that displays the unread/read state (never disabled)
Definition: theme.h:154
Item * messageItemBefore(Item *referenceItem, MessageTypeFilter messageTypeFilter, bool loop)
Finds message item that comes "before" the reference item.
Definition: view.cpp:1252
void ignoreCurrentChanges(bool ignore)
This is called by the model to insulate us from certain QTreeView signals This is because they may be...
Definition: view.cpp:163
Definition: delegate.h:34
Item * previousMessageItem(MessageTypeFilter messageTypeFilter, bool loop)
Finds the previous message item with respect to the current item.
Definition: view.cpp:1370
void childItemStats(ChildItemStats &stats) const
Gathers statistics about child items.
Definition: item.cpp:55
virtual void mousePressEvent(QMouseEvent *e)
Reimplemented in order to handle clicks with sub-item precision.
Definition: view.cpp:2095
QString annotation() const
Returns the annotation of the message, given that hasAnnotation() is true.
Definition: messageitem.cpp:296
void setCurrentThreadExpanded(bool expand)
If expand is true then it expands the current thread, otherwise collapses it.
Definition: view.cpp:1010
virtual void dragEnterEvent(QDragEnterEvent *e)
Reimplemented in order to handle message DnD.
Definition: view.cpp:2280
bool isDisplayedWithParentsExpanded(Item *it) const
Returns true if the specified item is currently displayed in the tree and has all the parents expande...
Definition: view.cpp:1872
void changeMessageStatus(MessageItem *it, const Akonadi::MessageStatus &set, const Akonadi::MessageStatus &unset)
Performs a change in the specified MessageItem status.
Definition: view.cpp:2068
void slotShowDefaultColumns()
Handles the Show Default Columns action of the header context menu.
Definition: view.cpp:812
void slotHeaderSectionResized(int logicalIndex, int oldWidth, int newWidth)
Handles section resizes in order to save the column widths.
Definition: view.cpp:709
Definition: messageitem.h:50
const QString & label() const
Definition: groupheaderitem.cpp:35
Perform no threading at all.
Definition: aggregation.h:85
void subTreeToList(QList< MessageItem * > &list)
Appends the whole subtree originating at this item to the specified list.
Definition: messageitem.cpp:635
virtual int sizeHintForColumn(int logicalColumnIndex) const
Reimplemented in order to kill the QTreeView column auto-resizing.
Definition: view.cpp:719
void slotExpandAllGroups()
Expands all the group headers (if present in the current Aggregation)
Definition: view.cpp:2698
bool selectLastMessageItem(MessageTypeFilter messageTypeFilter, bool centerItem)
Selects the last message item in the view that matches messageTypeFilter.
Definition: view.cpp:1636
Provides a widget which has the messagelist and the most important helper widgets, like the search line and the comboboxes for changing status filtering, aggregation etc.
Definition: widgetbase.h:60
Definition: enums.h:58
Group the messages by the date of the thread leader.
Definition: aggregation.h:55
const int gHeaderContextMenuDisplayToolTipsId
Definition: view.cpp:748
QString formattedSize() const
A string with a text rappresentation of size().
Definition: item.cpp:255
void modelJobBatchTerminated()
This is called by Model to signal the end of a lengthy job batch.
Definition: view.cpp:287
const QString & receiver() const
Returns the receiver associated to this item.
Definition: item.cpp:452
Use smart (thread leader) date ranges ("Today","Yesterday","Last Week"...)
Definition: aggregation.h:56
bool selectionEmpty() const
Fast function that determines if the selection is empty.
Definition: view.cpp:901
bool isScrollingLocked() const
Returns true if the vertical scrollbar should keep to the top or bottom while inserting items...
Definition: view.cpp:182
Item * deepestExpandedChild(Item *referenceItem) const
Returns the deepest child that is visible (i.e.
Definition: view.cpp:1241
QList< MessageItem * > selectionAsMessageItemList(bool includeCollapsedChildren=true) const
Returns the currently selected MessageItems (bound to current StorageModel).
Definition: view.cpp:906
const QString & subject() const
Returns the subject associated to this Item.
Definition: item.cpp:472
unsigned int mUnreadChildCount
Definition: item.h:195
The MessageList::View is the real display of the message list.
Definition: view.h:64
void sortOrderMenuAboutToShow(KMenu *menu)
Definition: view.cpp:2748
void setExpandItem(const QModelIndex &index)
Definition: view.cpp:2769
Item * messageItemAfter(Item *referenceItem, MessageTypeFilter messageTypeFilter, bool loop)
Finds message item that comes "after" the reference item.
Definition: view.cpp:1122
The Important tag icon.
Definition: theme.h:174
Item * currentItem() const
Returns the current Item (that is bound to current StorageModel).
Definition: view.cpp:856
MessageItem * currentMessageItem(bool selectIfNeeded=true) const
Returns the current MessageItem (that is bound to current StorageModel).
Definition: view.cpp:866
Whether the message has a annotation/note.
Definition: theme.h:218
virtual void contextMenuEvent(QContextMenuEvent *e)
Reimplemented in order to handle context menu request via keyboard.
Definition: view.cpp:2252
unsigned int mTotalChildCount
Definition: item.h:194
The thread grouping is computed from the topmost message (very similar to least recent, but might be different if timezones or machine clocks are screwed)
Definition: aggregation.h:99
const int gHeaderContextMenuShowDefaultColumnsId
Definition: view.cpp:747
The Column class defines a view column available inside this theme.
Definition: theme.h:564
This class manages the huge tree of displayable objects: GroupHeaderItems and MessageItems.
Definition: model.h:77
void saveThemeColumnState()
Saves the state of the columns (width and visility) to the currently selected theme object...
Definition: view.cpp:612
void setAllGroupsExpanded(bool expand)
If expand is true then it expands all the groups (only the toplevel group item: inner threads are NOT...
Definition: view.cpp:1057
void slotShowHideColumn(int columnIndex)
Handles the actions of the header context menu for showing/hiding a column.
Definition: view.cpp:826
virtual void dragMoveEvent(QDragMoveEvent *e)
Reimplemented in order to handle message DnD.
Definition: view.cpp:2285
MessageItemSetReference createPersistentSet(const QList< MessageItem * > &items)
Creates a persistent set for the specified MessageItems and returns its reference.
Definition: view.cpp:1670
void aggregationMenuAboutToShow(KMenu *menu)
Definition: view.cpp:2753
virtual bool hasAnnotation() const
Returns true if this message has an annotation.
Definition: messageitem.cpp:286
void modelFinishedLoading()
This is called by Model to signal that the initial loading stage of a newly attached StorageModel is ...
Definition: view.cpp:1662
Akonadi::Item akonadiItem() const
Definition: messageitem.cpp:566
void ensureDisplayedWithParentsExpanded(Item *it)
Makes sure that the specified is currently viewable by the user.
Definition: view.cpp:1844
static bool message_type_matches(Item *item, MessageTypeFilter messageTypeFilter)
Definition: view.cpp:1102
Item * firstMessageItem(MessageTypeFilter messageTypeFilter)
Finds the first message item in the view.
Definition: view.h:516
MessageSorting messageSorting() const
Returns the current message sorting option.
Definition: sortorder.h:126
Group by receiver, always.
Definition: aggregation.h:59
static bool messageToolTipEnabled()
Get Display tooltips for messages and group headers.
Definition: settings.cpp:141
void modelHasBeenReset()
This is called by the model from inside setFolder().
Definition: view.cpp:293
SortDirection messageSortDirection() const
Returns the current message SortDirection.
Definition: sortorder.h:138
bool isThreaded() const
Returns true if the current Aggregation is threaded, false otherwise (or if there is no current Aggre...
Definition: view.cpp:1914
Item * itemAboveChild(Item *child)
Returns the item that is visually above the specified child if this item.
Definition: item.cpp:134
StorageModel * storageModel() const
Returns the currently displayed StorageModel.
Definition: view.cpp:241
QString tagListDescription() const
Definition: messageitem.cpp:337
virtual void updateGeometries()
Reimplemented in order to disable update of the geometries while a job step is running (as it takes a...
Definition: view.cpp:219
PreSelectionMode
Pre-selection is the action of automatically selecting a message just after the folder has finished l...
Definition: enums.h:44
Item * lastMessageItem(MessageTypeFilter messageTypeFilter)
Finds the last message item in the view.
Definition: view.h:557
void setCurrentMessageItem(MessageItem *it, bool center=false)
Sets the current message item.
Definition: view.cpp:883
void setAllThreadsExpanded(bool expand)
If expand is true then it expands all the threads, otherwise collapses them.
Definition: view.cpp:1038
void slotSelectionChanged(const QItemSelection ¤t, const QItemSelection &)
Handles selection item management.
Definition: view.cpp:1921
Item * childItem(int idx) const
Returns the child item at position idx or 0 if idx is out of the allowable range. ...
Definition: item.cpp:75
void setCollapseItem(const QModelIndex &index)
Definition: view.cpp:2763
void focusQuickSearch()
Sets the focus on the quick search line of the currently active tab.
Definition: view.cpp:2713
void setSortOrder(const SortOrder *sortOrder)
Sets the specified sort order.
Definition: view.cpp:263
void slotDisplayTooltips(bool showTooltips)
Handles the Display Tooltips action of the header context menu.
Definition: view.cpp:821
void changeMessageStatusRead(MessageItem *it, bool read)
Definition: view.cpp:2049
MESSAGELIST_EXPORT QString contentSummary(const KUrl &url)
Returns the first few lines of the actual email text This data is taken from Nepomuk, if available.
Definition: messagelistutil.cpp:145
QString formattedDate() const
A string with a text rappresentation of date() obtained via Manager.
Definition: item.cpp:260
void modelAboutToEmitLayoutChanged()
Definition: view.cpp:696
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:52
void slotCollapseAllGroups()
Collapses all the group headers (if present in the current Aggregation)
Definition: view.cpp:2693
virtual void changeEvent(QEvent *e)
Reimplemented in order to catch palette, font and style changes.
Definition: view.cpp:2295
void selectFocusedMessageItem(bool centerItem)
Selects the currently focused message item.
Definition: view.cpp:1593
void setCurrentlyVisible(bool currentlyVisible)
Sets the current shared visibility state for this column.
Definition: theme.h:752
bool selectNextMessageItem(MessageTypeFilter messageTypeFilter, ExistingSelectionBehaviour existingSelectionBehaviour, bool centerItem, bool loop)
Selects the next message item in the view.
Definition: view.cpp:1463
void deletePersistentSet(MessageItemSetReference ref)
Deletes the persistent set pointed by the specified reference.
Definition: view.cpp:1680
void 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 ...
Definition: view.cpp:1685
bool selectPreviousMessageItem(MessageTypeFilter messageTypeFilter, ExistingSelectionBehaviour existingSelectionBehaviour, bool centerItem, bool loop)
Selects the previous message item in the view.
Definition: view.cpp:1505
The QAbstractItemModel based interface that you need to provide for your storage to work with Message...
Definition: storagemodelbase.h:45
void modelEmittedLayoutChanged()
Definition: view.cpp:702
Akonadi::MessageStatus currentFilterStatus() const
Returns the Akonadi::MessageStatus in the current quicksearch field.
Definition: view.cpp:2718
A structure used with MessageList::Item::childItemStats().
Definition: item.h:191
MessageTypeFilter
This enum is used in the view message selection functions (for instance View::nextMessageItem()).
Definition: enums.h:56
QList< MessageItem * > currentThreadAsMessageItemList() const
Returns the MessageItems bound to the current StorageModel that are part of the current thread...
Definition: view.cpp:948
The thread grouping is computed from the most recent message.
Definition: aggregation.h:100
The Spam/Ham state icon.
Definition: theme.h:178
const int gHeaderContextMenuAdjustColumnSizesId
Definition: view.cpp:746
Definition: enums.h:46
void growOrShrinkExistingSelection(const QModelIndex &newSelectedIndex, bool movingUp)
This is used by the selection functions to grow/shrink the existing selection according to the newly ...
Definition: view.cpp:1375
Item * itemBelow()
Returns the item that is visually below this item in the tree.
Definition: item.cpp:109
MESSAGELIST_EXPORT void fillViewMenu(KMenu *menu, QObject *receiver)
Definition: messagelistutil.cpp:124
The ActionItem state icon.
Definition: theme.h:170
QString currentFilterSearchString() const
Returns the search term in the current quicksearch field.
Definition: view.cpp:2724
QString statusDescription(bool hasNepomukTag) const
Returns a string describing the status e.g: "Read, Forwarded, Important".
Definition: item.cpp:213
void triggerDelayedApplyThemeColumns()
Starts a short-delay timer connected to applyThemeColumns().
Definition: view.cpp:604
virtual void setRowHidden(int row, const QModelIndex &parent, bool hide)
Called to hide or show the specified row from the view.
Definition: view.cpp:2729
QList< MessageItem * > persistentSetCurrentMessageItemList(MessageItemSetReference ref)
Returns the list of MessageItems that are still existing in the set pointed by the specified referenc...
Definition: view.cpp:1675
static void setMessageToolTipEnabled(bool v)
Set Display tooltips for messages and group headers.
Definition: settings.cpp:135
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: model.cpp:545
void setStorageModel(StorageModel *storageModel, PreSelectionMode preSelectionMode=PreSelectLastSelected)
Sets the StorageModel to be displayed in this view.
Definition: view.cpp:273
virtual void dropEvent(QDropEvent *e)
Reimplemented in order to handle message DnD.
Definition: view.cpp:2290
bool focusNextMessageItem(MessageTypeFilter messageTypeFilter, bool centerItem, bool loop)
Focuses the next message item in the view without actually selecting it.
Definition: view.cpp:1547
Item * itemAbove()
Returns the item that is visually above this item in the tree.
Definition: item.cpp:149
void slotHeaderContextMenuRequested(const QPoint &pnt)
Handles context menu requests for the header.
Definition: view.cpp:750
Sort the messages by date and time.
Definition: sortorder.h:81
const Akonadi::MessageStatus & status() const
Returns the status associated to this Item.
Definition: item.cpp:402
void modelJobBatchStarted()
This is called by Model to signal a start of a lengthy job batch.
Definition: view.cpp:281
The Theme class defines the visual appearance of the MessageList.
Definition: theme.h:65
void themeMenuAboutToShow(KMenu *menu)
Definition: view.cpp:2758
void selectMessageItems(const QList< MessageItem * > &list)
Selects the specified MessageItems.
Definition: view.cpp:1084
virtual void resizeEvent(QResizeEvent *e)
Reimplemented in order to resize columns when header is not visible.
Definition: view.cpp:657
The Watched/Ignored state icon.
Definition: theme.h:182
virtual void mouseMoveEvent(QMouseEvent *e)
Reimplemented in order to handle DnD.
Definition: view.cpp:2235
Item * parent() const
Returns the parent Item in the tree, or 0 if this item isn't attached to the tree.
Definition: item.cpp:392
Group by sender (incoming) or receiver (outgoing) field.
Definition: aggregation.h:57
void reload()
Triggers a reload of the view in order to re-display the current folder.
Definition: view.cpp:268
virtual void showEvent(QShowEvent *e)
Reimplemented in order to apply theme column widths on the first show.
Definition: view.cpp:731
bool hasChildren() const
Convenience function that returns true if this item has children.
Definition: item.cpp:168
Item * nextMessageItem(MessageTypeFilter messageTypeFilter, bool loop)
Finds the next message item with respect to the current item.
Definition: view.cpp:1236
bool selectFirstMessageItem(MessageTypeFilter messageTypeFilter, bool centerItem)
Selects the first message item in the view that matches messageTypeFilter.
Definition: view.cpp:1610
long int MessageItemSetReference
Definition: messageitemsetmanager.h:33
void setChildrenExpanded(const Item *parent, bool expand)
Expands or collapses the children of the specified item, recursively.
Definition: view.cpp:968
ExistingSelectionBehaviour
This enum is used in the view message selection functions (for instance View::selectNextMessage()) ...
Definition: enums.h:65
Item * itemBelowChild(Item *child)
Returns the item that is visually below the specified child if this item.
Definition: item.cpp:91
void triggerDelayedSaveThemeColumnState()
Starts a short-delay timer connected to saveThemeColumnState().
Definition: view.cpp:649
void ignoreUpdateGeometries(bool ignore)
Used to enable/disable the ignoring of updateGeometries() calls.
Definition: view.cpp:177
void setAggregation(const Aggregation *aggregation)
Sets the aggregation for this view.
Definition: view.cpp:246
int indexOfChildItem(Item *item) const
Returns the actual index of the child Item item or -1 if item is not a child of this Item...
Definition: item.cpp:173
virtual bool containsOutboundMessages() const =0
Returns true if this StorageModel (folder) contains outbound messages and false otherwise.
void setCurrentWidth(int currentWidth)
Sets the current shared width setting for this column.
Definition: theme.h:767
void setStatus(const Akonadi::MessageStatus &status)
Sets the status associated to this Item.
Definition: item.cpp:407
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
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.