messagelist
model.cpp File Reference
#include <config-messagelist.h>
#include "core/model.h"
#include "core/model_p.h"
#include "core/view.h"
#include "core/filter.h"
#include "core/groupheaderitem.h"
#include "core/item_p.h"
#include "core/messageitem.h"
#include "core/modelinvariantrowmapper.h"
#include "core/storagemodelbase.h"
#include "core/theme.h"
#include "core/delegate.h"
#include "core/manager.h"
#include "core/messageitemsetmanager.h"
#include <akonadi/item.h>
#include <akonadi/kmime/messagestatus.h>
#include "messagecore/utils/stringutil.h"
#include <QApplication>
#include <QTimer>
#include <QDateTime>
#include <QScrollBar>
#include <KLocalizedString>
#include <KCalendarSystem>
#include <KGlobal>
#include <KIcon>
#include <KDebug>
#include "moc_model.cpp"
Include dependency graph for model.cpp:
Go to the source code of this file.
Namespaces | |
MessageList | |
MessageList::Core | |
Macros | |
#define | CHECK_IF_GROUP_NEEDS_RESORTING(_ItemDateComparator) |
#define | INSERT_GROUP_WITH_COMPARATOR(_ItemComparator) |
#define | INSERT_MESSAGE_WITH_COMPARATOR(_ItemComparator) |
Functions | |
template<class ItemComparator > | |
static bool | messageItemNeedsReSorting (SortOrder::SortDirection messageSortDirection, ItemPrivate *parent, MessageItem *messageItem) |
Macro Definition Documentation
#define CHECK_IF_GROUP_NEEDS_RESORTING | ( | _ItemDateComparator | ) |
Value:
switch ( mSortOrder->groupSortDirection() ) \
{ \
case SortOrder::Ascending: \
needsReSorting = ( *it )->parent()->d_ptr->childItemNeedsReSorting< _ItemDateComparator, true >( *it ); \
break; \
case SortOrder::Descending: \
needsReSorting = ( *it )->parent()->d_ptr->childItemNeedsReSorting< _ItemDateComparator, false >( *it ); \
break; \
default: /* should never happen */ \
needsReSorting = false; \
break; \
}
#define INSERT_GROUP_WITH_COMPARATOR | ( | _ItemComparator | ) |
Value:
switch( mSortOrder->groupSortDirection() ) \
{ \
case SortOrder::Ascending: \
mRootItem->d_ptr->insertChildItem< _ItemComparator, true >( mModelForItemFunctions, ghi ); \
break; \
case SortOrder::Descending: \
mRootItem->d_ptr->insertChildItem< _ItemComparator, false >( mModelForItemFunctions, ghi ); \
break; \
default: /* should never happen... */ \
mRootItem->appendChildItem( mModelForItemFunctions, ghi ); \
break; \
}
#define INSERT_MESSAGE_WITH_COMPARATOR | ( | _ItemComparator | ) |
Value:
if ( ( mSortOrder->messageSortDirection() == SortOrder::Ascending ) \
|| ( pParent->type() == Item::Message ) ) \
{ \
pParent->d_ptr->insertChildItem< _ItemComparator, true >( mModelForItemFunctions, mi ); \
} \
else \
{ \
pParent->d_ptr->insertChildItem< _ItemComparator, false >( mModelForItemFunctions, mi ); \
}
Function Documentation
template<class ItemComparator >
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.